Tried installing pnp4nagios, broke performance grapher.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ljblom
Posts: 31
Joined: Tue Feb 16, 2016 7:24 pm

Re: Tried installing pnp4nagios, broke performance grapher.

Post by ljblom »

I just added two new hosts and associated services, and the performance graphs are not being generated. The perfdata is being collected, I can see it in the "advanced" tab of the web interface, but no graphs are being generated. I restarted NPCD, but that was not successful either.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Tried installing pnp4nagios, broke performance grapher.

Post by lmiltchev »

It will take approximately 15-20 min before performance graphs start showing up. What do you mean by saying: "I restarted NPCD, but that was not successful either."? You are still not seeing graphs after NPCD was restarted or NPCD is not running?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ljblom
Posts: 31
Joined: Tue Feb 16, 2016 7:24 pm

Re: Tried installing pnp4nagios, broke performance grapher.

Post by ljblom »

And actually I jumped the gun, the performance graphing actually only came back briefly for all hosts/services. I'm back to square one...
ljblom
Posts: 31
Joined: Tue Feb 16, 2016 7:24 pm

Re: Tried installing pnp4nagios, broke performance grapher.

Post by ljblom »

I realize there is a delay before graphs engage, what I'm saying is that it appeared that all graphs were coming back up with current data, but as of 1.5 hrs ago the graphs are no longer getting data. I am still not seeing graphs after NPCD was restarted.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Tried installing pnp4nagios, broke performance grapher.

Post by lmiltchev »

It is possible that the npcd stopped running. This could happen if the system load exceeds the "load_threshold" value, that is set in the "/usr/local/nagios/etc/pnp/npcd.cfg" (default is 10.0). What is the load on the system? Run the following command and show the output:

Code: Select all

uptime
You can increase this value, provided you have enough resources - 20.0 for dual core CPU, 40.0 for quad core, etc.

Do you have many spooled perfdata files in the perfdata or xidpe directory? Run the following commands, and show the output:

Code: Select all

ls /usr/local/nagios/var/spool/perfdata/ | wc -l
ls /usr/local/nagios/var/spool/xidpe/ | wc -l
You can increase temporarily the verbosity in the "/usr/local/nagios/etc/pnp/process_perfdata.cfg" and the "/usr/local/nagios/etc/pnp/npcd.cfg" file, then post the logs on the forum for further troubleshooting.

For more information on how to increase logging verbosity, please review ou r"Nagios XI - Performance Graph Problems" KB article here:
https://support.nagios.com/kb/article/n ... ems-9.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
ljblom
Posts: 31
Joined: Tue Feb 16, 2016 7:24 pm

Re: Tried installing pnp4nagios, broke performance grapher.

Post by ljblom »

Code: Select all

[nagios@server ~]$ uptime
 17:08:38 up  3:30,  1 user,  load average: 1.20, 0.96, 0.73

Code: Select all

[nagios@server ~]$ ls /usr/local/nagios/var/spool/perfdata/ | wc -l
0
[nagios@server ~]$ ls /usr/local/nagios/var/spool/xidpe/ | wc -l
0
You do not have the required permissions to view the files attached to this post.
ljblom
Posts: 31
Joined: Tue Feb 16, 2016 7:24 pm

Re: Tried installing pnp4nagios, broke performance grapher.

Post by ljblom »

The backend is now showing an error. I ran the repair_databases command, it it ran with no errors. I'm looking through /var/log/mariadb/mariadb.log right now, would it be helpful to post that as well?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Tried installing pnp4nagios, broke performance grapher.

Post by lmiltchev »

I'm looking through /var/log/mariadb/mariadb.log right now, would it be helpful to post that as well?
If you don't see any errors/crashed tables, you don't need to.

The perfdata.log and npcd.log looked fine - I don't see any issues there. As far as tha backend errors, try running:

Code: Select all

service nagios stop
service ndo2db stop
rm -f /usr/local/nagios/var/ndo.sock
service ndo2db start
service nagios start
Verify that the services are running:

Code: Select all

service nagios status
service ndo2db status
service npcd status
service mariadb status
service crond status
Be sure to check out our Knowledgebase for helpful articles and solutions!
ljblom
Posts: 31
Joined: Tue Feb 16, 2016 7:24 pm

Re: Tried installing pnp4nagios, broke performance grapher.

Post by ljblom »

That got the backend up, thank you. We had a power outage last night, and the UPS didn't completely cover it, that is when the database started having errors, at restart - so that's a separate issue from this post all together, ugg. Thanks again.

I'll give the performance grapher more time, but as of right now it is not actually graphing even though it's all green lights on the UI.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Tried installing pnp4nagios, broke performance grapher.

Post by lmiltchev »

Can you PM me (or anyone else on the Nagios Support team) your profile? We will check to see if there are any clues in logs and configs to what might be wrong with perfgraphs.

Admin > System Profile > Download Profile
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked