Nagios 4.08 caught SIGSEGV shutting down

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
nagtech2
Posts: 30
Joined: Tue Dec 17, 2013 2:09 pm

Nagios 4.08 caught SIGSEGV shutting down

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios 4.08 caught SIGSEGV shutting down

Post 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?
nagtech2
Posts: 30
Joined: Tue Dec 17, 2013 2:09 pm

Re: Nagios 4.08 caught SIGSEGV shutting down

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios 4.08 caught SIGSEGV shutting down

Post by abrist »

Ok, keep us informed if this recurs.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Nagios 4.08 caught SIGSEGV shutting down

Post 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
nagtech2
Posts: 30
Joined: Tue Dec 17, 2013 2:09 pm

Re: Nagios 4.08 caught SIGSEGV shutting down

Post by nagtech2 »

Do you know if that patch works on Ubuntu server 12.04 LTS?

Thanks
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios 4.08 caught SIGSEGV shutting down

Post by abrist »

It will, but you need to build core from source.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nagtech2
Posts: 30
Joined: Tue Dec 17, 2013 2:09 pm

Re: Nagios 4.08 caught SIGSEGV shutting down

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios 4.08 caught SIGSEGV shutting down

Post 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.
Locked