Host Urgency Patch

Jochen Bern Jochen.Bern at LINworks.de
Wed May 4 16:33:13 CEST 2011


On 05/04/2011 02:18 PM, Jochen Bern wrote:
> On 05/04/2011 01:17 PM, Ton Voon wrote:
>> 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.
> Does a "nagios -v" do the nagios_user:nagios_group set[ug]id() stuff
> before starting the check? Because I work under a mode-750 /root while
> t/etc/nagios.cfg specifies nagios:nagios ...

Apparently it does; moving stuff over to ~nagios fixed "make test-perl"
at least. ("make test-tap" is lacking an appropriate configuration, but
it's operating outside the t/ subdir you referred me to, anyway.)

Additional t/ stuff in the attached tarfile (it's all *new* files, not
much sense in providing a "diff", is there? ;-), a verbose run gives:

> [nagios at nagios t]$ prove -v 611cgistatus-hosturgencies.t
> 611cgistatus-hosturgencies....1..3
> ok 1 - List of hosts sorted by ascending name
> ok 2 - List of hosts sorted by ascending status
> ok 3 - List of hosts sorted by descending urgency
> ok
> All tests successful.
> Files=1, Tests=3,  0 wallclock secs ( 0.06 cusr +  0.01 csys =  0.07 CPU)

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-3.2.3-HostUrgency-tests.tgz
Type: application/x-compressed-tar
Size: 18430 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20110504/7718fab7/attachment.bin>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list