Potential bug in availability report - custom report period includes outages _outside_ the report period.

Stanley Hopcroft stanleyhopcroft at gmail.com
Fri Aug 11 04:21:56 CEST 2006


Dear Folks

There may be a small bug in the availability report (avail.cgi)
distrinuted with Nagios 2.5.

Here is an example illustrating the problem.

host_down_report is basically a wrapper around avail.cgi

 perl  host_down_report -t '1.8.2006 - 3.8.2006'

                          24x7

HOST_NAME                 DOWN                            UP
                   OUTAGE

Armidale_Foo_router_PE_ 02-08-2006 01:47:29             02-08-2006
02:15:59             28m 30s

Wyong_Foo_router_PE_int 02-08-2006 01:50:49             02-08-2006
02:15:59             25m 10s

MandMandMan                  02-08-2006 10:03:47
02-08-2006 10:10:46             6m 59s

Wyong_Foo_router_PE_int 07-08-2006 10:14:36             07-08-2006
10:37:46             23m 10s

The problem is that the last entry should have been excluded by the
custom report period.

Here is the query string (set as an environment var)

show_log_entries=&host=all&t1=1154354400&t2=1154440800&rpttimeperiod=24x7&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringnotrunning=yes&includesoftstates=no&initialassumedhoststate=3&initialassumedservicestate=6&backtrack=0&csvoutput

[sh1517 at acisf011 examples]$ perl -e '@_ = qw(1154354400 1154440800);
map { print localtime($_)."\n"} @_ '
Tue Aug  1 00:00:00 2006
Wed Aug  2 00:00:00 2006


Can anyone see what I am doing wrong or is this a bug ?

Thank you,

Yours sincerely.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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