Page 1 of 1
Negative Durations
Posted: Mon Jun 18, 2018 11:49 am
by TCBeekley
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?
Screen Shot 2018-06-18 at 12.43.58 PM.png
Screen Shot 2018-06-18 at 12.34.52 PM.png
Screen Shot 2018-06-18 at 12.34.26 PM.png
Tim
Re: Negative Durations
Posted: Mon Jun 18, 2018 11:59 am
by TCBeekley
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 |
+---------------------+
Re: Negative Durations
Posted: Mon Jun 18, 2018 4:12 pm
by npolovenko
Hello,
@TCBeekley. It sounds like you may have multiple Nagios processes running. Please run the following commands to kill them off:
Code: Select all
service nagios stop
killall -9 nagios
service nagios start
service httpd restart
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.
Re: Negative Durations
Posted: Tue Jun 19, 2018 8:27 am
by TCBeekley
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.
Screen Shot 2018-06-19 at 9.19.55 AM.jpg
The other odd thing, at least in my opinion is that not all of the checks show negative either.
Screen Shot 2018-06-19 at 9.31.24 AM.jpg
Tim
Re: Negative Durations
Posted: Tue Jun 19, 2018 10:55 am
by npolovenko
@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?
Re: Negative Durations
Posted: Tue Jun 19, 2018 11:54 am
by TCBeekley
It is running on US Eastern time and there's about a 45-second difference between the two servers.
Re: Negative Durations
Posted: Tue Jun 19, 2018 1:04 pm
by scottwilkerson
TCBeekley wrote:It is running on US Eastern time and there's about a 45-second difference between the two servers.
That would explain it. You need the server to match exactly to not have this time drift.