Anybody use pushover? Can't seem to get it to work.
commands.cfg:
# 'notify-host-pushover' command definition
define command {
command_name notify-host-pushover
command_line /usr/local/src/nagios/pushover/notify_by_pushover.sh -u $CONTACTADDRESS1$ -a $CONTACTADDRESS2$ -c 'persistent' -w 'siren' -t "Nagios" -m "$NOTIFICATIONTYPE$ Host $HOSTNAME$ $HOSTSTATE$"
}
# 'notify-service-pushover' command definition
define command {
command_name notify-service-pushover
command_line /usr/local/src/nagios/pushover/notify_by_pushover.sh -u $CONTACTADDRESS1$ -a $CONTACTADDRESS2$ -c 'persistent' -w 'siren' -t "Nagios" -m "$HOSTNAME$ $SERVICEDESC$ : $SERVICESTATE$ Additional info: $SERVICEOUTPUT$"
Contacts.cfg:
define contact{
use generic-pushover
contact_name User_pushover
alias User Pushover
contactgroups pushover
address1 ***My User Key***
address2 ***My API Key***
}
define contactgroup{
contactgroup_name pushover
alias pushover
members User_pushover
}
Windows.cfg:
define service{
use generic-service,nagiosgraph
host_name Server-1
service_description S:\ Drive Space
contacts User_pushover
contact_groups pushover
check_command check_nt!USEDDISKSPACE!-l s -w 87 -c 92
}
the script I'm calling is here:
https://github.com/jedda/OSX-Monitoring ... ushover.sh
Thanks!
Nagios and Pushover
-
chris.fixter
- Posts: 22
- Joined: Wed Jun 18, 2014 4:15 am
Re: Nagios and Pushover
I am guessing it has something to do with you defining both contacts and contact_group in a service.
You can set debug_level=256 in nagios.cfg and find out what notification command and parameters are executed from the debug log.
You can set debug_level=256 in nagios.cfg and find out what notification command and parameters are executed from the debug log.