Re: [Nagios-devel] Nagios config verify failing with "garbage"

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Nagios config verify failing with "garbage"

Post by Guest »

=0A>=0A>Fr=E5n: Jim Smythe =0A>Till: nagios-devel@lis=
ts.sourceforge.net=0A>Skickat: s=F6n 22 maj 2011 11:26:40=0A>=C4mne: [Nagio=
s-devel] Nagios config verify failing with "garbage" characters in =0A>outp=
ut=0A>=0A>I am currently running 3.2.3. =0A>=0A>I have quite a few machines=
running nagios and all but one are running happily =0A=0A>with very simil=
ar configs (hosts/services differ from machine to machine, but =0A>all oth=
er files are identical).=0A>=0A>I get a config check error on one that is =
very strange.=0A>=0A>#### Snipit of hostgroup config file that doesn't work=
(identical on all =0A>machines)=0A>define hostgroup {=0A> hostgroup_nam=
e Consumer Electronics=0A> alias Consumer Electronics=0A>}=0A>=0A>#### r=
unning nagios -v ../nagios.cfg get this (please note, the corrupt =0A>chara=
cters change every time I run the verify process)=0A>.... lines ommited ...=
.=0A> Checked 15 hosts.=0A>Checking host groups...=0A>Error: Host '=
=E8=F0' specified in host group 'Consumer Electronics' is not defined =0A>a=
nywhere!=0A> Checked 11 host groups.=0A>.... lines ommited ....=0A>T=
otal Errors: 1=0A>=0A>#### changing the "C" in consumer electronics to a =
"c" fixes it (or, from a =0A>cursory check, any letters except "A", "B", or=
"C") - see modified snipit=0A>define hostgroup {=0A> hostgroup_name con=
sumer Electronics=0A> alias Consumer Electronics=0A>}=0A>=0A>##### confi=
g check runs perfectly!!!=0A>=0A>Note: It so happens that this hostgroup is=
not even in use on this particular =0A>machine. I just have a standard ho=
stgroup config file that gets distributed to =0A=0A>all machines. =0A>=0A>=
=0A>I think this is a bug, but I cannot find any information that shows one=
already =0A=0A>logged, and I don't really know how to confirm exactly what=
is causing the =0A>verify process to believe there is a host with the garb=
age characters.=0A>=0A>Any suggestions would be great!=0A=0AHi,=0A=0AI reco=
gnize the behaviour and it could be the same problem I had.=0ATry the lates=
t GIT/SVN (whatever) or look at the patch below and=0Aapply it to the clean=
3.2.3 version.=0A=0Ahttp://sourceforge.net/mailarchive/message.php?msg_id=
=3D26565601=0A=0AUnfortnately, I do not have commit ID for it.=0AHope this =
will solve your problem.=0A=0ABrgds=0A/Sven=0A_____________________________=
_________________=0A=0ASven-G=F6ran Bergh, Systemasis AB=0A________________=
______________________________





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