Scheduled downtime not reported

Doug Ritchie dritchie at advanstar.com
Thu Mar 27 04:39:15 CET 2003


Hey there,

I've been running Nagios 1.0b6 on a RedHat Linux 7.3 box for about 5 or 6
months now, but just this week I noticed something I had not seen before.
Earlier this week I scheduled a fixed 1-day downtime period for a
maintenance window, but now that I'm looking over the availability report,
I'm seeing that period counted as downtime rather than scheduled downtime.

The reporting looks something like this:

03-18-2003 20:02:08 03-18-2003 20:21:00 0d 0h 18m 57s HOST UP
03-24-2003 19:00:00 03-24-2003 21:12:24 0d 2h 12m 24s HOST DOWNTIME START
03-24-2003 21:12:24 03-25-2003 11:19:05 0d 14h 6m 41s HOST DOWN
03-25-2003 11:19:05 03-25-2003 19:00:00 0d 7h 40m 55s HOST UP
03-25-2003 19:00:00 03-26-2003 21:48:27 1d 2h 48m 27s+ HOST DOWNTIME END

The HOST DOWNTIME END is currently the last log entry for this host.

Our downtime window began at 7pm on Mar24 and lasted a day.  During that
period, the host was down for 14 hours and 6 minutes.  I would expect to see
this listed as 'Scheduled Downtime', but it is instead counted as actual
downtime, and no scheduled downtime is reported at all.  The 7 hours and 40
minutes of uptime during the maintenance window is correctly registered as
'scheduled uptime'.

Has anybody seen this kind of behavior, or any ideas what might lead to it?

Just to add, I have tried defining DEBUG2 in avail.c, and it does seem like
the routine that appears to register downtime
(compute_subject_downtime_part_times) is only being called once at the very
end of the processing for this host.  Based on the value of subject_state
and state_duration, this appears to be where it's adding the 7h and 40m.
This routine seems to get called on an 'archive state list ran out'
condition.  Don't know if that means anything or not.

Thanks much,
Doug



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list