Page 1 of 1

after upgrade to xi5.5.2 my performance graph went away

Posted: Thu Aug 09, 2018 3:12 am
by dimsum
Hi Support,

I upgraded xi to 5.5.2 from 5.4.x and my performance graph is not working anymore.

Please find my attached server profile. How can I fix it?

Thank you.

Moderator's Edit: profile.zip was shared with Nagios Support team but removed from the public forum.

Re: after upgrade to xi5.5.2 my performance graph went away

Posted: Thu Aug 09, 2018 10:51 am
by lmiltchev
If there are way too many files in "/usr/local/nagios/var/spool/perfdata", this means that npcd is not running and not processing these files. At the time you created the profile you had 41690 files. I am pretty sure that npcd stopped running because of a high load on your system.
top - 14:57:29 up 2:06, 2 users, load average: 122.68, 69.18, 56.33
What is the load_threshold set at in the /usr/local/nagios/etc/pnp/npcd.cfg file? Can you also post the /usr/local/nagios/var/npcd.log?

If you are able to bring the load down, and keep npcd running, you may be able to "catch up", but most probably, you would need to delete the perfdata files that got piled in in the perfdata directory.

Code: Select all

cd /usr/local/nagios/var/spool
rm -rf perfdata
mkdir perfdata
chown nagios.nagios perfdata
chmod 755 perfdata
Note: This will wipe out only the perfdata that is currently in /usr/local/nagios/var/spool/perfdata directory, not all of the perfdata.

Re: after upgrade to xi5.5.2 my performance graph went away

Posted: Thu Aug 09, 2018 11:47 am
by dimsum
My load and npcd status. find the pictures and npcd.log

Thank you.

Re: after upgrade to xi5.5.2 my performance graph went away

Posted: Thu Aug 09, 2018 1:04 pm
by lmiltchev
Have you increased the load_threshold value in the npcd.cfg file from the default of 10.0? The npcd will stop again if your load is higher than the load_threshold's value!

Please follow the steps, outlined in our KB article on the topic here:
https://support.nagios.com/kb/article.php?id=9

Make sure that you clean up the spooled files in the perfdata directory, increase the timeout in the process_perfdata.cfg, and the load_threshold's value. Restart ncpd and watch the spooled files in the perfdata directory to see if they are getting processed.

Code: Select all

watch 'ls /usr/local/nagios/var/spool/perfdata/ | wc -l'

Re: after upgrade to xi5.5.2 my performance graph went away

Posted: Thu Aug 09, 2018 11:32 pm
by dimsum
I was changed npcd load_threshold to 20 and wipe data in /usr/local/nagios/var/spool/perfdata/ then restart npcd. It worked, the performance graph shows up.

Thank you.

Re: after upgrade to xi5.5.2 my performance graph went away

Posted: Fri Aug 10, 2018 9:12 am
by lmiltchev
I am glad I could help! :)

I am locking this topic. If you have any more issues/questions, please start a new thread. Thank you!