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
Nagios 4.08 caught SIGSEGV shutting down
-
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
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
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
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.
"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.
Re: Nagios 4.08 caught SIGSEGV shutting down
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
http://tracker.nagios.org/view.php?id=634
http://tracker.nagios.org/view.php?id=668
Re: Nagios 4.08 caught SIGSEGV shutting down
Do you know if that patch works on Ubuntu server 12.04 LTS?
Thanks
Thanks
Re: Nagios 4.08 caught SIGSEGV shutting down
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.
"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.
Re: Nagios 4.08 caught SIGSEGV shutting down
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
Thanks
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios 4.08 caught SIGSEGV shutting down
Download and untar the source to /somepath/nagios-4.0.8
Download the patch and save it /somepath/nagios.patch
At this point you could
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.
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 allCode: Select all
make install; make install-init; make install-commandmode; make install-config; make install-webconfAlternatively 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.