Changeset 428 for noc/nagios/misccommands.cfg
- Timestamp:
- Sep 26, 2007, 12:21:57 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
noc/nagios/misccommands.cfg
r48 r428 46 46 ################################################################################ 47 47 48 49 48 # 'host-notify-by-email' command definition 50 49 define command{ 51 50 command_name host-notify-by-email 52 51 command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ 52 } 53 54 55 # 'host-notify-by-zephyr' command definition 56 define command{ 57 command_name host-notify-by-zephyr 58 command_line /usr/bin/printf "%b" "Host $HOSTSTATE$ alert for $HOSTNAME$!\n$HOSTOUTPUT$" | /usr/bin/zwrite -d -s "Nagios" -c $CONTACTEMAIL$ -i "nagios.$HOSTALIAS$" 53 59 } 54 60 … … 64 70 command_name notify-by-email 65 71 command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ 72 } 73 74 75 # 'notify-by-zephyr' command definition 76 define command{ 77 command_name notify-by-zephyr 78 command_line /usr/bin/printf "%b" "$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$\n$SERVICEOUTPUT$" | /usr/bin/zwrite -d -s "Nagios" -c $CONTACTEMAIL$ -i "nagios.$HOSTALIAS$.$SERVICEDESC$" 66 79 } 67 80
Note: See TracChangeset
for help on using the changeset viewer.