after upgrade to xi5.5.2 my performance graph went away

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

after upgrade to xi5.5.2 my performance graph went away

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

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

Post by dimsum »

My load and npcd status. find the pictures and npcd.log

Thank you.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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'
Be sure to check out our Knowledgebase for helpful articles and solutions!
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

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

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked