Host Urgency Patch
Jochen Bern
Jochen.Bern at LINworks.de
Wed May 4 14:18:02 CEST 2011
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.
Umh, that might take a moment, I'm afraid. Not only am I not fluent in
PERL, there also seems to be something wrong with my running a "make
test", now that I actually try it:
> 900-configparsing...............
> # Failed test 'Nagios validation failed:
[...]
> # Reading configuration data...
> # Read main config file okay...
> # Unable to open main config file '/root/nagios-3.2.3+SP+MU/t/etc/nagios.cfg'
> # Error processing object config files!
[...]
> # in 900-configparsing.t at line 23.
> Cannot create precached objects file at 900-configparsing.t line 26.
> # ls -l /root/nagios-3.2.3+SP+MU/t/etc/nagios.cfg
> -rw-r--r-- 1 root root 43029 15. Mai 2009 /root/nagios-3.2.3+SP+MU/t/etc/nagios.cfg
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 ...
(I validated the patch with an actual browser and a quick additional
temp config file on a normally-running Nagios before submitting it.)
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
------------------------------------------------------------------------------
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