nagios: Added support for Pushover notifications

This commit is contained in:
Ossi Salmi 2013-04-07 16:49:55 +03:00
parent c8a2ff7436
commit 313d847e6a
2 changed files with 59 additions and 4 deletions

View file

@ -259,6 +259,20 @@ define command{
}
# 'notify-host-by-pushover' command definition
define command{
command_name notify-host-by-pushover
command_line /usr/bin/curl -s -o /dev/null -F user="$CONTACTADDRESS1$" -F token="$CONTACTADDRESS2$" -F title="Nagios $NOTIFICATIONTYPE$ Host Alert" -F message="$HOSTNAME$ is $HOSTSTATE$ '$HOSTOUTPUT$'" "https://api.pushover.net/1/messages.json"
}
# 'notify-service-by-pushover' command definition
define command{
command_name notify-service-by-pushover
command_line /usr/bin/curl -s -o /dev/null -F user="$CONTACTADDRESS1$" -F token="$CONTACTADDRESS2$" -F title="Nagios $NOTIFICATIONTYPE$ Service Alert" -F message="$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ '$SERVICEOUTPUT$'" "https://api.pushover.net/1/messages.json"
}
# 'check_esxi_hardware' command definition
define command{
command_name check_esxi_hardware