I have several hosts that have negative durations for checks. My php time and my system time match. Chronyd is running. Any other thoughts on what it might be?
Tim
Negative Durations
Negative Durations
You do not have the required permissions to view the files attached to this post.
Re: Negative Durations
I did a little more digging and things seem to lineup from other posts.
Code: Select all
[root@X zoneinfo]# grep "date.timezone" /etc/php.ini
; http://php.net/date.timezone
date.timezone = UTC
[root@X zoneinfo]# ls -l /etc/localtime
lrwxrwxrwx 1 root root 23 Jun 18 16:10 /etc/localtime -> /usr/share/zoneinfo/UTC
[root@X zoneinfo]# php -r 'echo date("D M j G:i:s T Y")."\n";'
Mon Jun 18 16:56:00 UTC 2018
[root@X zoneinfo]# date
Mon Jun 18 16:56:05 UTC 2018
[root@X zoneinfo]# mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
+---------------------+
| NOW() |
+---------------------+
| 2018-06-18 16:56:18 |
+---------------------+
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Negative Durations
Hello, @TCBeekley. It sounds like you may have multiple Nagios processes running. Please run the following commands to kill them off:
If this doesn't resolve the issue please send in your system profile. 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 upload it to a cloud storage of your choice.
Then share a link with me in a personal message.
After you share the link, please post something in this thread to bring it up in the support queue.
**Profile was received and shared with the support techs.
Code: Select all
service nagios stop
killall -9 nagios
service nagios start
service httpd restart
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to a cloud storage of your choice.
Then share a link with me in a personal message.
After you share the link, please post something in this thread to bring it up in the support queue.
**Profile was received and shared with the support techs.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Negative Durations
Most of the negative durations have been corrected. 2 remain, however. I gave it about 30 minutes after restarting Nagios. I have also PM'd the link to the profile.
The other odd thing, at least in my opinion is that not all of the checks show negative either.
Tim
The other odd thing, at least in my opinion is that not all of the checks show negative either.
Tim
You do not have the required permissions to view the files attached to this post.
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Negative Durations
@TCBeekley, Does the monitored host also use the UTC timezone? Can you check the time on the monitored host and then on the nagios server and let me know if it's exactly the same or a few minutes apart?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Negative Durations
It is running on US Eastern time and there's about a 45-second difference between the two servers.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Negative Durations
That would explain it. You need the server to match exactly to not have this time drift.TCBeekley wrote:It is running on US Eastern time and there's about a 45-second difference between the two servers.