Page 1 of 1

Sporadic Nagios segfaults

Posted: Mon Jul 31, 2017 8:40 am
by derekbrewer
I'm occasionally seeing Nagios 4.1.1 segfault on RHEL6.4. I've been seeing these happen every few months. I've checked the nagios.log and the messages log and the only thing I can find is the following in the messages log...
Jul 30 19:37:12 btvnag01 kernel: nagios[6550]: segfault at 3030302e90 ip 0000000000470122 sp 00007fffffffd8a0 error 6 in nagios[400000+a2000]

I have daemon_dumps_core=1 in the nagios.cfg file, but I I don't see a core file anywhere on the system. What other things can I do to help track down this problem when it happens again?

I found the following in the 4.2.3 changelog fixes, so I'm assuming I need to update Nagios to get a core file...
- daemon_dumps_core=1 has no effect on Linux when Nagios started as root

Is there anything else I can do to prep for next time? Any thoughts or help are very much appreciated.

Re: Sporadic Nagios segfaults

Posted: Mon Jul 31, 2017 11:37 am
by bolson
Hello derekbrewer,

Please attach /usr/local/nagios/var/nagios.log

Also, is upgrading an option? As with most all open source software, each new release addresses issues discovered in previous releases.

Thank you!