Issue with duration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Issue with duration

Post 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)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Issue with duration

Post by slansing »

Lets start with this:

Code: Select all

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

Code: Select all

service nagios restart
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Re: Issue with duration

Post 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.
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Re: Issue with duration

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Issue with duration

Post by sreinhardt »

Did that seem to resolve your issue now, or was this just an example of past cases?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Re: Issue with duration

Post by dmitry »

This is just example.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Issue with duration

Post 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.
Locked