Page 1 of 1

Re: [Nagios-devel] Host Urgency Patch

Posted: Wed May 04, 2011 10:18 am
by Guest
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 ... ;-)
>=20
> Introducing a new status.cgi sort mode (sortoption=3D16384) 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).
>=20
> 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.)
>=20
> 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.
>=20
> Kind regards,
> J. Bern
> --=20
> Jochen Bern, Systemingenieur --- LINworks GmbH =

> Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 =
Weiterstadt
> PGP (1024D/4096g) FP =3D 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=E4ftsf=FChrer Metin Dogan, Oliver =
Michel
> =
--------------------------------------=
----------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network=20
> management toolset available today. Delivers lowest initial=20
> acquisition cost and overall TCO of any competing solution.
> =
http://p.sf.net/sfu/whatsupgold-sd_____ ... _________=
_______
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel






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