Re: [Nagios-devel] Segfault during pre-flight check

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] Segfault during pre-flight check

Post by Guest »

Hi Thomas -

Can you try the following to generate a backtrace? This would be
helpful in tracking down the problem...

1. Use the non-stripped nagios binary (located in the base/ subdir of
the Nagios distro) for this procedure. If you're using an RPM install,
get the source and compile it for yourself first.

2. From the command line...

cd /base
gdb nagios

3. From within gdb..

run -v /etc/nagios/nagios.cfg

4. Once it segfault, gdb will stop and display an error message. Use
the following command from within gdb to get a backtrace and see where
they problem occurred...

bt

Send the output to (preferably) the list, or directly to myself if you'd
like. Thanks!

Thomas Guyot-Sionnest wrote:
> Hi,
>
> I'm maintaining a pretty big nagios setup (about 60 hosts/ 600 services and
> plan to grow that by 3-4 times). Most of the config is using templates to
> save config lines and maintenance time. Every host has an extinfo (one
> definition for each hostsgroup).
>
> Now I started adding services extinfos to do some fancy things with e-mail
> pages, and ran in a strange segfault bug. To explain it better I'll give an
> overview of my config.
> check
[snip]
>
>
> I'm sorry I didn't have time to cleanup all the config . I'm currently
> setting another nagios box, so if I run into this problem at the very
> beginning I'll keep that config and send it over. I also tried to get a core
> dump but it didn't worked, I'm not sure if I need to enable some options at
> compile time...
>
> Thanks
>
> Thomas
>


Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org





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