Page 1 of 1
Nagios 4.08 caught SIGSEGV shutting down
Posted: Mon Jan 26, 2015 10:19 am
by nagtech2
Running Nagios 4.08 on Ubuntu Server 12.04 LTS . Event Log shows "caught sigsegv shutting down", this was on 1/23. At that point it appears nagios stop monitoring devices until a server reboot on 1/26 which is when the event log restarts. No event log entries between the time of that error and the time of the reboot. I'm not sure what to look at for a cause of this event. I don't run any graphing add on's. I'm still using the last plugins prior to v2.
Thanks
Re: Nagios 4.08 caught SIGSEGV shutting down
Posted: Mon Jan 26, 2015 11:17 am
by slansing
Are you using mod_gearming, mklivestatus or any other modified broker modules? There is usually some event around segfaults such as these, any chance you can get us the 50 lines prior to the segfault in the log? And either attach them here or wrap them in code tags?
Re: Nagios 4.08 caught SIGSEGV shutting down
Posted: Mon Mar 30, 2015 2:53 pm
by nagtech2
I'm thinking this was related to a OS patch that had come down the day prior to my posting this. I installed new patches that came out a week later and have only seen this happen 1 time since. That said, I have been rebooting the box on Fridays.
Re: Nagios 4.08 caught SIGSEGV shutting down
Posted: Mon Mar 30, 2015 3:07 pm
by abrist
Ok, keep us informed if this recurs.
Re: Nagios 4.08 caught SIGSEGV shutting down
Posted: Mon Mar 30, 2015 3:12 pm
by cmerchant
There have several reports of SIGSEGV on this tracker bug report, with a patch available.
http://tracker.nagios.org/view.php?id=634
http://tracker.nagios.org/view.php?id=668
Re: Nagios 4.08 caught SIGSEGV shutting down
Posted: Mon Mar 30, 2015 5:36 pm
by nagtech2
Do you know if that patch works on Ubuntu server 12.04 LTS?
Thanks
Re: Nagios 4.08 caught SIGSEGV shutting down
Posted: Tue Mar 31, 2015 12:31 pm
by abrist
It will, but you need to build core from source.
Re: Nagios 4.08 caught SIGSEGV shutting down
Posted: Wed Apr 08, 2015 10:07 am
by nagtech2
That code appears to be for BSD, I'm running Ubuntu server 12.04, is there a document some place that explains how to apply this patch?, system crashed again sunday morning.
Thanks
Re: Nagios 4.08 caught SIGSEGV shutting down
Posted: Wed Apr 08, 2015 10:53 am
by jdalrymple
Download and untar the source to /somepath/nagios-4.0.8
Download the patch and save it /somepath/nagios.patch
Code: Select all
cd /somepath/nagios-4.0.8/
patch lib/iobroker.c < /somepath/nagios.patch
./configure
make all
At this point you could
Code: Select all
make install; make install-init; make install-commandmode; make install-config; make install-webconf
But you probably already did some sort of apt-get install or used some .deb package or something? If so this will likely break that and not work itself.
Alternatively you could just replace the binaries that rely on that lib, but that would probably be equally unsafe.
You probably want to backup your configs and do this on a fresh system.