Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. config:
  2. define command{
  3. command_name notify-host-by-sms
  4. # command_line /usr/bin/printf "%.150s" "Time: $LONGDATETIME$\n" | /bin/mail -s "$NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$" email@company.com
  5. # command_line /bin/sh /usr/local/nagios/bin/verify_then_email "$NOTIFICATIONTYPE$" "$HOSTNAME$" "$HOSTSTATE$" $LONGDATETIME$"
  6. command_line /bin/sh /usr/local/nagios/bin/verify_then_email2 "$NOTIFICATIONTYPE$" "$HOSTNAME$" "$HOSTSTATE$" $LONGDATETIME$"
  7.  
  8.  
  9. script verify_then_email2:
  10. #!/bin/sh
  11. echo "testing simple stuff" | /bin/mail
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement