Page 1 of 1
pagerduty notifications
Posted: Fri Jun 08, 2012 1:56 pm
by scheema31
i want to use pagerduty with Nagios, i want to set it up so that when nagios detects a warning state, it send an email but when it detects a critical state it sends an alert to pagerduty. how can i configure nagios to accomplish this. thanks
Re: pagerduty notifications
Posted: Mon Jun 11, 2012 12:11 pm
by agriffin
Your notification command will need to look something like this:
Code: Select all
echo %SERVICESTATE% | grep -q CRITICAL && pagerduty command... || email command...
Re: pagerduty notifications
Posted: Tue Jun 19, 2012 9:24 pm
by admin
Actually, macros in Nagios Core are enclosed in dollar signs ($), so the macro would be $SERVICESTATE$
Re: pagerduty notifications
Posted: Thu Sep 19, 2013 12:59 pm
by ophir
Pagerduty has a nice write up on the integration process here:
http://www.pagerduty.com/docs/guides/na ... ion-guide/