pagerduty notifications
pagerduty notifications
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
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
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
Ethan Galstad
President
Re: pagerduty notifications
Pagerduty has a nice write up on the integration process here:
http://www.pagerduty.com/docs/guides/na ... ion-guide/
http://www.pagerduty.com/docs/guides/na ... ion-guide/