no performance graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
hzsoliel
Posts: 34
Joined: Fri Sep 28, 2018 1:34 pm

no performance graph

Post by hzsoliel »

Hi:

We recently move our Nagios VM from a Redhat 6 server to Redhat 7 Server. We did an export and import. After the import, the services are not writing performance data to /usr/local/nagios/share/perfdata folder anymore. I check /usr/local/nagios/var/spool/perfdata and there are only 2 files. but in /usr/local/nagios/var/spool/xidpe, there are 17,446 files and it keeps growing fast. Please let me know what should I do to have the performance data write to /usr/local/nagios/share/perfdata.

Thanks,

Heather
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: no performance graph

Post by npolovenko »

Hi, @hzsoliel. I'd like to take a look at your system profile before I can tell what's going on.
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and send it in a private message.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hzsoliel
Posts: 34
Joined: Fri Sep 28, 2018 1:34 pm

Re: no performance graph

Post by hzsoliel »

I have send you a private message with my system profile attached. Please let me know if you didn't receive it.

Thanks,

Heather
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: no performance graph

Post by npolovenko »

@hzsoliel, Please open the /etc/cron.d/nagiosxi file and make sure that you have the following entry:
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2>&1
And run this command:
service crond restart
Then follow this tutorial and increase the TIMEOUT to 30, and load_threshold to 40.0
https://support.nagios.com/kb/article.php?id=9

And run this command:
service npcd restart
I'd also recommend deleting all files from the /usr/local/nagios/var/spool/xidpe/ folder and the /usr/local/nagios/var/spool/perfdata/ folder.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hzsoliel
Posts: 34
Joined: Fri Sep 28, 2018 1:34 pm

Re: no performance graph

Post by hzsoliel »

Thanks. Our team will test this on coming Monday and I will get back to you.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: no performance graph

Post by lmiltchev »

Any updates, @hzsoliel?
Be sure to check out our Knowledgebase for helpful articles and solutions!
hzsoliel
Posts: 34
Joined: Fri Sep 28, 2018 1:34 pm

Re: no performance graph

Post by hzsoliel »

Not yet. Thanks for the follow up.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: no performance graph

Post by lmiltchev »

Noted.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hzsoliel
Posts: 34
Joined: Fri Sep 28, 2018 1:34 pm

Re: no performance graph

Post by hzsoliel »

Our client apply the steps you proposed. Still no graph data generated.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: no performance graph

Post by lmiltchev »

but in /usr/local/nagios/var/spool/xidpe, there are 17,446 files and it keeps growing fast
Having too many files in the "/usr/local/nagios/var/spool/xidpe" directory may indicate that cron is not running or it is not allowed to run as nagios user... What is the number of files in the xidpe at the moment? With such a number of files, cron may not be able to "catch up", and move all of them to the perfdata dir for further processing. You may need to remove them and start clean.

Code: Select all

cd /usr/local/nagios/var/spool
rm -rf xidpe
mkdir xidpe
chown nagios.nagios xidpe
chmod 755 xidpe
After you recreate the xidpe directory, run the following command and watch the number if files in it to make sure it doesn't grow out of control.

Code: Select all

watch -n 1 'ls /usr/local/nagios/var/spool/xidpe | wc -l'
There are a few more things to check to make sure your cron jobs are running as intended and your nagios account is not expired. Please run the following commands and show the output in code wraps:

Code: Select all

ps -ef | grep cron
tail -100 /var/log/cron
chage nagios -l
chage apache -l
sestatus
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked