Page 1 of 3

Tried installing pnp4nagios, broke performance grapher.

Posted: Tue Feb 13, 2018 1:47 pm
by ljblom
I tried installing pnp4nagios, and it's taken down my performance grapher entirely... I'm tried to revert back, but am having no luck getting the grapher back online, and need to get it up ASAP! Thank you in advance for any help.

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Tue Feb 13, 2018 3:08 pm
by lmiltchev
Installing pnp4nagios on Nagios XI is not supported. I would recommend reverting to a previous, working snapshot (before you install pnp4nagios).

CCM > Quick Tools > Configuration Snapshots > Restore

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Tue Feb 13, 2018 3:18 pm
by ljblom
I did that, but the performance grapher is still error-ing out.

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Tue Feb 13, 2018 4:15 pm
by lmiltchev
This means that more files (not only the nagios config files) were affected by installing the pnp4nagios. Can you describe all of the steps you took and guides that you followed while installing the pnp4nagios? This can help us troubleshoot the issue.

Also, you could try fixing the issue by going to the pnp directory, and running the install script:

Code: Select all

cd /tmp/nagiosxi/subcomponents/pnp
./install
You will also need to look under the "/etc/httpd/conf.d" directory to see if you have any added (extra) configs for php4nagios.

P.S. Is your Nagios XI instance on a physical box or on a VM? If it's on a VM, do you have any snapshots, created before installing pnp4nagios?

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Tue Feb 13, 2018 7:23 pm
by ljblom
I used a couple guides:

https://geekpeek.net/pnp4nagios-centos-install/
https://docs.pnp4nagios.org/pnp-0.6/config

And I also referred to a forum post that:

https://support.nagios.com/forum/viewto ... 6&p=156443

I also tried running the /tmp/nagiosxi/subcomponents/pnp install script, but I do not have the /tmp/nagiosxi/subcomponents/ directory...

The server is a physical box, not a VM. I tried reverting to a snapshot from before the pnp4nagios install, but the graphing is still not working.

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Wed Feb 14, 2018 10:03 am
by scottwilkerson
To get that directory run this

Code: Select all

cd /tmp
wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd /tmp/nagiosxi
Then here

Code: Select all

cd /tmp/nagiosxi/subcomponents/pnp
./install
If that doesn't work, we need to know exactly what was changed, and then I would suggest opening a ticket and send in your profile and we can look at the logs in it as will as some of the configuration.

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Wed Feb 14, 2018 2:04 pm
by ljblom
Thank you for the reply. I installed the subcomponents directory and installed pnp, unfortunately it didn't do the trick.

I have removed all the pnp4nagios files/directories that came with the download, and reverted the nagios.cfg file. But, nothing is being sent to /usr/local/nagios/var/spool/perfdata. From the UI it shows that the performance grapher is working (green), and from each of the hosts and services it shows that perf data is at least being collected. Please advise on what logs would be helpful, thank you!

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Wed Feb 14, 2018 2:38 pm
by ljblom
I actually just got it working... The pnp4nagios modified the commands.cfg file, specifically the process-service-perfdata-file and process-host-perfdata-file. They were both appended with "-bulk", once removed and the directories restored, performance graphing has resumed. Thank you for the help none the less!

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Wed Feb 14, 2018 5:10 pm
by lmiltchev
Reverting to a snapshot, prior to pnp4nagios install should have restored your modified commands... It is strange that this didn't work for you. In any case, I am glad that your issue has been resolved! Is it ok to lock this topic now?

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Wed Feb 14, 2018 5:33 pm
by ljblom
That's what I thought as well, I'm not sure why it didn't work with the snapshot. I'm hoping there's not some more bugs lurking in the future... Anyways, thanks for the quick replies!