Page 2 of 2
Re: NagiosXI and Pagerduty
Posted: Wed Jun 20, 2012 9:31 am
by scottwilkerson
Here's what I think you will need to do.
Go to Configure -> CCM -> Tools -> Import Config Files
Select just the /usr/local/nagios/etc/pagerduty_nagios.cfg
Click Import
Then go to Configure -> CCM -> Advanced -> Nagios Core Main Config
Remove the line
Code: Select all
cfg_file=/usr/local/nagios/etc/pagerduty_nagios.cfg
Click Save
Apply Configuration
Re: NagiosXI and Pagerduty
Posted: Wed Jun 20, 2012 10:17 am
by lmiltchev
You will have to rename it, for example to "pagerduty.cfg" before you import it. If you don't remove the "nagios" out of the name, you wouldn't be able to see it the import file list.
Hope this helps.
Re: NagiosXI and Pagerduty
Posted: Wed Jun 20, 2012 11:58 am
by jparker
Did everything you specified and it looks like it took it perfectly. I was able to apply the configuration and it looks like the proper settings were setup. So I went ahead and testing a notification and never got it to notify pagerduty. So I looked at the messages.log and found this:
Jun 20 16:42:55 nagios1 nagios: Warning: Attempting to execute the command "/usr/local/bin/pagerduty_nagios.pl enqueue -f pd_nagios_object=host" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
It looks like something is trying to still look at pagerduty_nagios.pl....
Re: NagiosXI and Pagerduty
Posted: Wed Jun 20, 2012 12:05 pm
by jparker
Oops nevermind, I see what is wrong and corrected it! It appears to be working great now! thanks a ton for your guys help!