Core-less in Seattle

Andreas Ericsson ae at op5.se
Mon Nov 6 17:25:28 CET 2006


bobi at netshel.net wrote:
> Has anyone had problems obtaining core dumps from the main Nagios daemon
> when it segfaults?
> 
> I've enabled the option in the config file "daemon_dumps_core" but, after
> the daemon dies due to a segfault (confirmed via dmesg,) a core file never
> seems to be produced.
> 
> And yes, I've set the global ulimit for core dumps to unlimited, and yes,
> there is enough space on my disk, and yes, I've scoured the disk with
> "find" looking for files with the name of "core" or "core.<pid>", but to
> no avail.
> 
> I also completely disabled the segfault handling logic in the signal
> handler, but nothing's changed.
> 
> What am I missing here?
> 

Is Nagios' working directory writable by the user Nagios runs as?

> I'm considering running nagios in the foreground (non-daemon mode) just to
> see if I can catch the magically-missing core file.
> 

Make sure you start it in a directory where you and the nagios 
pseudo-user has write permissions.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the Developers mailing list