[Nagios-devel] nagios cvs and perfdata bug

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

[Nagios-devel] nagios cvs and perfdata bug

Post by Guest »

Hi,

I noticed 2 bugs with nagios (cvs snapshot 2.0a1 downloaded today 2004.10=
.01 08am GMT+1):

1st bug :
---------
if perfdata files are not defined in nagios.cfg, nagios will crash (SIGSE=
GV).
Enable perfdata, but disable the following 2 lines and it will crash

host_perfdata_file=3D/opt/nagios/var/host-perfdata
service_perfdata_file=3D/opt/nagios/var/service-perfdata

2nd bug :
---------
Now, I consider that those files are defined.
If I start nagios with nothing in /opt/nagios/var (except archive/ and rw=
/), nagios will
run, but nagios -d won't. Workaround : touch service-perfdata; touch host=
-perfdata

When the files are defined and created, everything is working well. Thank=
s Ethan and all :)


$ grep perf nagios.cfg |egrep -v "^#"
perfdata_timeout=3D5
process_performance_data=3D0
host_perfdata_file=3D/opt/nagios/var/host-perfdata
service_perfdata_file=3D/opt/nagios/var/service-perfdata

If you need more info to reproduce the bug, please ask.
I don't know nagios enough yet to provide a patch. One day maybe ? :)

Yves

--=20
- Homepage - http://ymettier.free.fr - http://www.logicacmg.com -
- GPG key - http://ymettier.free.fr/gpg.txt -
- Maitretarot - http://www.nongnu.org/maitretarot/ -
- GTKtalog - http://www.nongnu.org/gtktalog/ -








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