Page 2 of 3

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Wed Feb 14, 2018 5:43 pm
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.

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Wed Feb 14, 2018 5:46 pm
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?

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Wed Feb 14, 2018 5:56 pm
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...

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Wed Feb 14, 2018 5:59 pm
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.

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Thu Feb 15, 2018 10:13 am
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

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Thu Feb 15, 2018 12:31 pm
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

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Thu Feb 15, 2018 1:08 pm
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?

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Thu Feb 15, 2018 2:45 pm
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

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Thu Feb 15, 2018 3:16 pm
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.

Re: Tried installing pnp4nagios, broke performance grapher.

Posted: Thu Feb 15, 2018 4:08 pm
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