NagiosXI and Pagerduty

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI and Pagerduty

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NagiosXI and Pagerduty

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jparker
Posts: 10
Joined: Fri Mar 16, 2012 12:37 pm

Re: NagiosXI and Pagerduty

Post 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....
jparker
Posts: 10
Joined: Fri Mar 16, 2012 12:37 pm

Re: NagiosXI and Pagerduty

Post 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!
Locked