Perfdata with incorrect timet attribute

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
[email protected]
Posts: 9
Joined: Fri May 16, 2014 5:48 am

Perfdata with incorrect timet attribute

Post by [email protected] »

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.
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: Perfdata with incorrect timet attribute

Post by lmiltchev »

Are you having the same issue will all hosts/services?

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
Note: Modify the last command if you have mysql offloaded to a remote server.

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

Post by [email protected] »

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.
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Perfdata with incorrect timet attribute

Post by Box293 »

You did not type this command correctly:

Code: Select all

echo 'select now();' | mysql -t -pnagiosxi
As 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

Post by [email protected] »

Hello,

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

Post by [email protected] »

And the current state of graphs.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Perfdata with incorrect timet attribute

Post by tgriep »

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

Post by [email protected] »

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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Perfdata with incorrect timet attribute

Post by tgriep »

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

Code: Select all

/usr/local/nagios/etc/pnp/process_perfdata.cfg
And increase the following setting. You can double or quadruple it.

Code: Select all

TIMEOUT = 5
Next, edit this file

Code: Select all

/usr/local/nagios/etc/pnp/npcd.cfg
And increase the following setting. You can double or quadruple it.

Code: Select all

load_threshold = 10.0
Save the files out and run the following to restart the processes so they will reload the changed settings.

Code: Select all

service npcd restart
service nagios restart
Post if you have any more questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked