nagios cvs and perfdata bug

Andreas Ericsson ae at op5.se
Fri Oct 1 18:49:09 CEST 2004


Yves Mettier wrote:
> 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 (SIGSEGV).
> Enable perfdata, but disable the following 2 lines and it will crash
> 
> host_perfdata_file=/opt/nagios/var/host-perfdata
> service_perfdata_file=/opt/nagios/var/service-perfdata
> 

This was fixed yesterday.

> 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
> 

Did you look up the reason? This has the 'feel' of a permission error on 
the directory where the files should be stored.

> When the files are defined and created, everything is working well. Thanks Ethan and all :)
> 
> 
> $ grep perf nagios.cfg |egrep -v "^#"
> perfdata_timeout=5
> process_performance_data=0
> host_perfdata_file=/opt/nagios/var/host-perfdata
> service_perfdata_file=/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
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl




More information about the Developers mailing list