nagios: Added support for SMS contacts.
This commit is contained in:
parent
fa1867ad40
commit
ed60033f31
2 changed files with 54 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue