[Nagios-devel] 2.0b3 availability report has changed ? now outputs down and up log records outside date range ?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] 2.0b3 availability report has changed ? now outputs down and up log records outside date range ?

Post by Guest »

This is a multi-part message in MIME format...

------------=_1114754494-9491-230
Content-Type: text/plain; charset=unknown-8bit
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by guinness.lyn.gwy id j3T61Ynt026932

Dear Folks,

I am writing to say that avail.cgi seems to have changed its action in=20
that a report for a given service and a nominated interval, outputs=20
down and up records __outside__ the interval (although the availability=20
computation does seem to consist of the ups and downs in the intervals).

Here's an example (edited somewhat)

tsitc> lynx -dump -nolist -width=3D160 -auth=3Dfoo:bar
'http://tsitc/nagios/cgi-bin/avail.cgi?s ... 3Dintrane=
t&service=3DCorporate+Intranet+-+business+hours&timeperiod=3Dcustom&smon=3D=
4&sday=3D29&syear=3D2005&shour=3D0&smin=3D0&ssec=3D0&
emon=3D4&eday=3D29&eyear=3D2005&ehour=3D24&emin=3D0&esec=3D0&rpttimeperio=
d=3D&assumeinitialstates=3Dyes&assumestateretention=3Dyes&assumestatesdur=
ingnotrunning=3Dyes&includesoftstates=3Dno&
initialassumedservicestate=3D0&backtrack=3D1'=20
| perl -ne 'print substr($_, 0, 80), "\n"'


Service Availability Report

Last Updated: Fri Apr 29 15:49:24 EST 2005

Nagios=AE - www.nagios.org

Logged in as foo

.. snipped ..

Service 'Corporate=20
Intranet - busi


Availability Report



29-04-2005=20
00:00:00 to=20


=20
Duration: 0d 1


First assumed service state:

[Unspecified.....] =20

Report period: Backtracked archives:

[[ Current time range ]] __

Update



[ Availability=20
report comp


Service=20
State B


=20
Service State


State Type / Reason =
=20
T
OK Unscheduled =
=20
0d 15h
Scheduled =
=20
0d 0h=20
Total =
=20
0d 15h
=20

..

=20
Service Log=20


[ View=20
full log


Event Start Time Event End Time Event Duration Event/State Type=20
Event/State I
13-04-2005 17:22:09 13-04-2005 17:46:13 0d 0h 24m 4s SERVICE CRITICAL=20
(HARD)=20
response. Unix error number 2 occurred: No such file or directory

13-04-2005 17:46:13 14-04-2005 08:22:16 0d 14h 36m 3s SERVICE OK=20
(HARD) Intra
14-04-2005 08:22:16 14-04-2005 08:24:19 0d 0h 2m 3s SERVICE CRITICAL=20
(HARD) I
response. Unix error number 2 occurred: No such file or directory

14-04-2005 08:24:19 14-04-2005 13:52:19 0d 5h 28m 0s SERVICE OK=20
(HARD) Intran
14-04-2005 13:52:19 14-04-2005 13:53:22 0d 0h 1m 3s SERVICE CRITICAL=20
(HARD) I
500 (Internal Server Error) read timeout Content-Type: text/plain=20
Client-Date
read timeout

.. lots of intervening ups and downs snipped

22-04-2005 08:04:18 22-04-2005 11:03:06 0d 2h 58m 48s SERVICE OK=20
(HARD) Intra
22-04-2005 11:37:14 22-04-2005 11:41:12 0d 0h 3m 58s SERVICE CRITICAL=20
(HARD)=20
response. Unix error number 2 occurred: No such file or directory

22-04-2005 11:41:12 22-04-2005 11:45:12 0d 0h 4m 0s SERVICE OK (HARD)=20
Intrane

=20
.. more downs and ups snipped

28-04-2005 16:00:40 28-04-2005 16:06:40 0d 0h 6m 0s SERVICE OK (HARD)=20
Intrane
28-04-2005 16:06:40 28-04-2005 16:08:33 0d 0h 1m 53s SERVICE CRITICAL=20
(HARD)=20
response. Unix error number 2 occurred: No such file or directory

28-04-2005 16:08:33 28-04-2005 17:34:48 0d 1h 26m 15s SERVICE OK=20
(HARD) Intra
29-04-2005 10:06:22 29-04-2005 10:08:26 0d 0h 2m 4s SERVICE CRITICAL=20
(HARD) I
response. Unix error number 2 occurred: No such file or directory

29-04-2005 10:08:26 29-04-2005 14:29:30 0d 4h 21m 4s SERVICE OK=20
(HARD) Intran
29-04-2005 14:29:30 29-04-2005 14:31:29 0d 0h 1m 59s SERVICE CRITICAL=20
(HARD)=20
response. Unix error number 2 occurred: No such file or directory

29-04-2005 14:31:29 29-04-2005 15:49:24 0d 1h 17m 55s+ SERVICE OK=20
(HARD) Intr
tsitc>=20


IIRC formerly it would only display log messages for the requested=20
interval. In this case, I expect only ups and downs for today (Apr 29).

This is no big deal but I have a small application that extracts the log=20
entries (since they show up time, down time and interval down or up),=20
formats them as CSV and mails them as an attachmen

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked