nagios: Added support for SMS contacts.

This commit is contained in:
Timo Mkinen 2013-05-29 09:36:03 +03:00
parent fa1867ad40
commit ed60033f31
2 changed files with 54 additions and 0 deletions

View file

@ -287,6 +287,18 @@ define command{
}
# 'notify-host-by-sms' command definition
define command{
command_name notify-host-by-sms
command_line /bin/echo "Nagios: $HOSTNAME$ is $HOSTSTATE$ '$HOSTOUTPUT$'" > "/var/spool/smsd/OUT$CONTACTPAGER$.txt"
}
# 'notify-service-by-sms' command definition
define command{
command_name notify-service-by-sms
command_line /bin/echo "Nagios: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ '$SERVICEOUTPUT$'" > "/var/spool/smsd/OUT$CONTACTPAGER$.txt"
}
# 'check_esxi_hardware' command definition
define command{
command_name check_esxi_hardware