Nagios and Pushover

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
csward
Posts: 46
Joined: Fri Mar 08, 2013 4:37 pm

Nagios and Pushover

Post by csward »

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!
chris.fixter
Posts: 22
Joined: Wed Jun 18, 2014 4:15 am

Re: Nagios and Pushover

Post by chris.fixter »

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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios and Pushover

Post by tmcdonald »

Any update on this, csward?
Former Nagios employee
Locked