Re: [Nagios-devel] Host Urgency Patch
Posted: Wed May 04, 2011 11:18 am
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.c=
gi
> with this sortoption and then check that the hosts are ordered appropri=
ately?
> 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............... =
=20
> # Failed test 'Nagios validation failed: =
=20
[...]
> # Reading configuration data... =
=20
> # Read main config file okay... =
=20
> # Unable to open main config file '/root/nagios-3.2.3+SP+MU/t/etc/nagio=
s.cfg' =20
> # Error processing object config files! =
=20
[...]
> # 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/e=
tc/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
--=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 1C2=
7
Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
Unternehmenssitz Weiterstadt, Gesch=E4ftsf=FChrer Metin Dogan, Oliver Mic=
hel
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
> Hi Jochen,
> Is it possible if you can create a test case for this? Hit the status.c=
gi
> with this sortoption and then check that the hosts are ordered appropri=
ately?
> 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............... =
=20
> # Failed test 'Nagios validation failed: =
=20
[...]
> # Reading configuration data... =
=20
> # Read main config file okay... =
=20
> # Unable to open main config file '/root/nagios-3.2.3+SP+MU/t/etc/nagio=
s.cfg' =20
> # Error processing object config files! =
=20
[...]
> # 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/e=
tc/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
--=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 1C2=
7
Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
Unternehmenssitz Weiterstadt, Gesch=E4ftsf=FChrer Metin Dogan, Oliver Mic=
hel
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]