Page 1 of 1

Issue with duration

Posted: Thu Oct 24, 2013 4:37 pm
by dmitry
Hello,
I have a problem with some of my hosts and services, the duration is a negative. For example "-13s"
The php timezone is the same as system timezone.
----
Nagios XI Version : 2012R2.3
CentOS release 5.7 (Final)

Re: Issue with duration

Posted: Thu Oct 24, 2013 4:38 pm
by slansing
Lets start with this:

Code: Select all

rm -f /usr/local/nagios/var/retention.dat

Code: Select all

service nagios restart

Re: Issue with duration

Posted: Thu Oct 24, 2013 5:13 pm
by dmitry
I have a lot of priority monitorings for some critical services. If i delete the retention.dat file then the nagios will check this service again and during this time i can get the problem with this service and will not recive the notification. Am i right ? Maybe better remove only wrong value for durations ? Thanl you.

Re: Issue with duration

Posted: Thu Oct 24, 2013 5:18 pm
by dmitry
Long time ago i had a problem with "alias" I used this solution
cp /usr/local/nagios/var/retention.dat /usr/local/nagios/var/retention.bak
grep -v ^alias /usr/local/nagios/var/retention.bak > /usr/local/nagios/var/retention.dat. Then restart nagios

Re: Issue with duration

Posted: Fri Oct 25, 2013 12:56 pm
by sreinhardt
Did that seem to resolve your issue now, or was this just an example of past cases?

Re: Issue with duration

Posted: Fri Oct 25, 2013 1:17 pm
by dmitry
This is just example.

Re: Issue with duration

Posted: Fri Oct 25, 2013 2:09 pm
by slansing
Yes they will have to re-check, however you won't truly be losing much time there since they were going to have to check again and if they swapped to a non-ok state you would still have to wait for that next check to come through. In addition, you could use the Home > Mass Acknowledgement and select your critical services, then schedule them for an immediate check after you remote retention and restart nagios. That will assure they are next in line.