Negative Durations

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TCBeekley
Posts: 20
Joined: Thu May 26, 2016 6:40 am

Negative Durations

Post 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
You do not have the required permissions to view the files attached to this post.
TCBeekley
Posts: 20
Joined: Thu May 26, 2016 6:40 am

Re: Negative Durations

Post 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 |
+---------------------+
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Negative Durations

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
TCBeekley
Posts: 20
Joined: Thu May 26, 2016 6:40 am

Re: Negative Durations

Post 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
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Negative Durations

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
TCBeekley
Posts: 20
Joined: Thu May 26, 2016 6:40 am

Re: Negative Durations

Post by TCBeekley »

It is running on US Eastern time and there's about a 45-second difference between the two servers.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Negative Durations

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked