pagerduty notifications

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
scheema31
Posts: 90
Joined: Wed Jun 06, 2012 1:11 pm

pagerduty notifications

Post 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
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: pagerduty notifications

Post by agriffin »

Your notification command will need to look something like this:

Code: Select all

echo %SERVICESTATE% | grep -q CRITICAL && pagerduty command... || email command...
User avatar
admin
Site Admin
Posts: 256
Joined: Mon Oct 12, 2009 8:21 am

Re: pagerduty notifications

Post by admin »

Actually, macros in Nagios Core are enclosed in dollar signs ($), so the macro would be $SERVICESTATE$
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Ethan Galstad
President
ophir
Posts: 1
Joined: Wed Sep 11, 2013 4:13 am

Re: pagerduty notifications

Post by ophir »

Pagerduty has a nice write up on the integration process here:

http://www.pagerduty.com/docs/guides/na ... ion-guide/
Locked