Page 1 of 2

no performance graph

Posted: Fri Nov 16, 2018 10:43 am
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

Re: no performance graph

Posted: Fri Nov 16, 2018 12:49 pm
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.

Re: no performance graph

Posted: Fri Nov 16, 2018 2:09 pm
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

Re: no performance graph

Posted: Fri Nov 16, 2018 2:39 pm
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.

Re: no performance graph

Posted: Fri Nov 16, 2018 4:15 pm
by hzsoliel
Thanks. Our team will test this on coming Monday and I will get back to you.

Re: no performance graph

Posted: Mon Nov 19, 2018 10:08 am
by lmiltchev
Any updates, @hzsoliel?

Re: no performance graph

Posted: Mon Nov 19, 2018 11:00 am
by hzsoliel
Not yet. Thanks for the follow up.

Re: no performance graph

Posted: Mon Nov 19, 2018 11:28 am
by lmiltchev
Noted.

Re: no performance graph

Posted: Tue Nov 20, 2018 9:30 am
by hzsoliel
Our client apply the steps you proposed. Still no graph data generated.

Re: no performance graph

Posted: Tue Nov 20, 2018 10:37 am
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