Perfdata with incorrect timet attribute
-
[email protected]
- Posts: 9
- Joined: Fri May 16, 2014 5:48 am
Perfdata with incorrect timet attribute
Good morning,
our nagios XI platform is drawing perfdata with incorrect time. Machine time is configured OK (clock, timezone,..), but perfdata files have NAGIOS_TIMED attribute is incorrect.
By using time conversion tool we found that it is about 3 days ago.
What can be done to fix this? I am uploading screenshots of everything.
Thank you.
our nagios XI platform is drawing perfdata with incorrect time. Machine time is configured OK (clock, timezone,..), but perfdata files have NAGIOS_TIMED attribute is incorrect.
By using time conversion tool we found that it is about 3 days ago.
What can be done to fix this? I am uploading screenshots of everything.
Thank you.
You do not have the required permissions to view the files attached to this post.
Re: Perfdata with incorrect timet attribute
Are you having the same issue will all hosts/services?
Can you run the following commands, and show the output?
Note: Modify the last command if you have mysql offloaded to a remote server.
Have you tried rebooting the server?
Can you run the following commands, and show the output?
Code: Select all
strings /etc/localtime | tail -1
grep timezone /etc/php.ini
echo 'select now();' | mysql -t -pnagiosxi
Have you tried rebooting the server?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
[email protected]
- Posts: 9
- Joined: Fri May 16, 2014 5:48 am
Re: Perfdata with incorrect timet attribute
Hello,
yes its the same for all graphs.
I have tried to reboot server several times with no luck. Also cannot find any related information by searching it on google, seems to be a strange behaviour. I am considering to reinstall full nagios server but I will prefer not to do it...
Here I am uploading the output of these commands. Seems that sql one has failed.
Thank you.
yes its the same for all graphs.
I have tried to reboot server several times with no luck. Also cannot find any related information by searching it on google, seems to be a strange behaviour. I am considering to reinstall full nagios server but I will prefer not to do it...
Here I am uploading the output of these commands. Seems that sql one has failed.
Thank you.
You do not have the required permissions to view the files attached to this post.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Perfdata with incorrect timet attribute
You did not type this command correctly:
Code: Select all
echo 'select now();' | mysql -t -pnagiosxiAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
[email protected]
- Posts: 9
- Joined: Fri May 16, 2014 5:48 am
Re: Perfdata with incorrect timet attribute
Hello,
here it is the correct output.
here it is the correct output.
You do not have the required permissions to view the files attached to this post.
-
[email protected]
- Posts: 9
- Joined: Fri May 16, 2014 5:48 am
Re: Perfdata with incorrect timet attribute
And the current state of graphs.
You do not have the required permissions to view the files attached to this post.
Re: Perfdata with incorrect timet attribute
Could you post the following files so we can review them?
Code: Select all
/usr/local/nagios/etc/nagios.cfg
/usr/local/nagios/etc/pnp/process_perfdata.cfg
/usr/local/nagios/etc/pnp/config.php
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
[email protected]
- Posts: 9
- Joined: Fri May 16, 2014 5:48 am
Re: Perfdata with incorrect timet attribute
Hello,
seems that I found the problem: the server was too overloaded (200+ charge). It had over 500 services configured to be checked every second. I had to configure it to 3 seconds and graphs are being displayed. Could this be the reason?
Thanks
seems that I found the problem: the server was too overloaded (200+ charge). It had over 500 services configured to be checked every second. I had to configure it to 3 seconds and graphs are being displayed. Could this be the reason?
Thanks
Re: Perfdata with incorrect timet attribute
Yes, that could be it. If the load is high for a period of time, the NPCD daemon and the process_perfdata script will stop graphing the performance data.
The settings can be changed to a higher value so the will continue to process the performance data. Here is how to do that.
Edit the following file on the XI server
And increase the following setting. You can double or quadruple it.
Next, edit this file
And increase the following setting. You can double or quadruple it.
Save the files out and run the following to restart the processes so they will reload the changed settings.
Post if you have any more questions.
The settings can be changed to a higher value so the will continue to process the performance data. Here is how to do that.
Edit the following file on the XI server
Code: Select all
/usr/local/nagios/etc/pnp/process_perfdata.cfgCode: Select all
TIMEOUT = 5Code: Select all
/usr/local/nagios/etc/pnp/npcd.cfgCode: Select all
load_threshold = 10.0Code: Select all
service npcd restart
service nagios restartBe sure to check out our Knowledgebase for helpful articles and solutions!