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)
Issue with duration
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Issue with duration
Lets start with this:
Code: Select all
rm -f /usr/local/nagios/var/retention.datCode: Select all
service nagios restartRe: Issue with duration
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
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
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
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Issue with duration
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.