Host Urgency Patch
Ton Voon
tonvoon at gmail.com
Wed May 4 13:17:53 CEST 2011
Hi Jochen,
Is it possible if you can create a test case for this? Hit the status.cgi with this sortoption and then check that the hosts are ordered appropriately? There are some examples of tests in t/ that do similar tricks.
Ton
On 4 May 2011, at 10:26, Jochen Bern wrote:
> Quick patch just 'cause I felt like it ... ;-)
>
> Introducing a new status.cgi sort mode (sortoption=16384) where hosts
> are sorted by state, but with the order being based on "urgency"
> (down>unreachable>pending>ok) instead of the historically assigned (?)
> state IDs (unreachable>down>up>pending).
>
> Note 1: Patch does not include any hyperlink pointing to the new mode.
> (I'll put one straight into the static menu HTML for ourselves.)
>
> Note 2: I'm working on top of an already-patched 3.2.3, so the line
> numbers in status.c and cgiutils.h are likely off WRT official release.
>
> Kind regards,
> J. Bern
> --
> Jochen Bern, Systemingenieur --- LINworks GmbH <http://www.LINworks.de/>
> Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt
> PGP (1024D/4096g) FP = D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E 1C27
> Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
> Unternehmenssitz Weiterstadt, Geschäftsführer Metin Dogan, Oliver Michel
> <nagios-3.2.3-HostUrgency-patch.txt>------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today. Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd_______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
More information about the Developers
mailing list