Where is Nagios Core Dump file ?

Andreas Ericsson ae at op5.se
Wed Nov 14 10:20:51 CET 2007


Yana Millis wrote:
> Hello,
> nagios crashes on me with an error:
> Starting nagios:/etc/init.d/nagios: line 121: 28073 Segmentation fault
>      $NagiosBin -d $NagiosCfgFile
> 
> when i try to run it with ndoUtils.
> Can somebody please tell me where exactly is the core dump file,



There is no coredump, otherwise it would have read
Segmentation fault (core dumped)

Make sure you have your system configured to allow core dumps. Usually
this is done by saying

	ulimit -c unlimited

in your /etc/profile or other equivalent shell initializer. You can also
type it on the prompt before you run nagios' init-script.

> what is that file called,

Usually just 'core', although it could be 'core.<pid>' where <pid> is the
process id of the process that caused the coredump.

> and how
> to open it in a humanly-readable format ?
> 

Use gdb.
$ gdb /path/to/nagios core
gdb> bt

Send the output of the "bt" command from gdb to
nagios-devel at lists.sourceforge.net along with nagios and ndoutils version
info and someone will look into it. You'll have to subscribe to nagis-devel
before you can post there. If you don't wish to do so, send your email here
and I'll make sure it reaches the right people.

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list