no performance graph
no performance graph
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
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
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.
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.
Re: no performance graph
I have send you a private message with my system profile attached. Please let me know if you didn't receive it.
Thanks,
Heather
Thanks,
Heather
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: no performance graph
@hzsoliel, Please open the /etc/cron.d/nagiosxi file and make sure that you have the following entry:
https://support.nagios.com/kb/article.php?id=9
And run this command:
And run this command:* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2>&1
Then follow this tutorial and increase the TIMEOUT to 30, and load_threshold to 40.0service crond restart
https://support.nagios.com/kb/article.php?id=9
And run this command:
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.service npcd restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: no performance graph
Thanks. Our team will test this on coming Monday and I will get back to you.
Re: no performance graph
Any updates, @hzsoliel?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: no performance graph
Not yet. Thanks for the follow up.
Re: no performance graph
Noted.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: no performance graph
Our client apply the steps you proposed. Still no graph data generated.
Re: no performance graph
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.but in /usr/local/nagios/var/spool/xidpe, there are 17,446 files and it keeps growing fast
Code: Select all
cd /usr/local/nagios/var/spool
rm -rf xidpe
mkdir xidpe
chown nagios.nagios xidpe
chmod 755 xidpeCode: Select all
watch -n 1 'ls /usr/local/nagios/var/spool/xidpe | wc -l'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!