PagerDuty / pagerduty-nagios-pl

Nagios Integration for PagerDuty via Perl Wrapper
11 stars 17 forks source link

Support being invoked from Icinga as well as Nagios #4

Closed tpot closed 11 years ago

tpot commented 11 years ago

Icinga prefixes it's environment variables with "ICINGA" instead of "NAGIOS". Otherwise the script works fine with either system.

ryanhoskin commented 11 years ago

This won't hurt anything, although it won't follow our default Icinga configuration which will store its temp files in a different folder. Also, the logs won't contain ICINGA accepting/rejecting/deferring the alert and will display NAGIOS instead. Here's the normal Icinga script: https://raw.github.com/PagerDuty/pagerduty-icinga-pl/master/pagerduty_icinga.pl