Re: [Nagios-devel] Core-less in Seattle

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] Core-less in Seattle

Post by Guest »

Oh, sorry about that:

The OS is Linux, 64-bit, SLES-9:

Linux CHQPVUL0888 2.6.5-7.267-smp #1 SMP Wed Jun 21 10:50:51 UTC 2006
x86_64 x86_64 x86_64 GNU/Linux

I grepped for "core" through the sysctl output, and found the following:

kernel.core_pattern = core
kernel.core_uses_pid = 0

But then I grepped for "suid" and found this more promising entry:

kernel.suid_dumpable = 0

Thanks for the quick reply Bill!

I hope changing this does the trick!

Bob

> In response to [email protected]:
>
>> 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.", 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?
>>
>> I'm considering running nagios in the foreground (non-daemon mode) just
>> to
>> see if I can catch the magically-missing core file.
>
> What OS is this on?
>
> FreeBSD has sysctls that control how core dumps are handled, and can even
> disable them at the OS level. I assume that other POSIX systems have
> similar capabilities:
>
> $ sysctl -a | grep core
> kern.sugid_coredump: 0
> kern.coredump: 1
> kern.nodump_coredump: 0
> kern.corefile: %N.core
> $ sysctl -d kern.sugid_coredump
> kern.sugid_coredump: Enable coredumping set user/group ID processes
>
> Notice that the default in FreeBSD is to _not_ allow setu/gid programs to
> create core files ...
>
> --
> Bill Moran
> Collaborative Fusion Inc.
>
> -------------------------------------------------------------------------
> 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 ... dat=121642
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>







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