Caught SIGSEGV, shutting down... nagios 3.5.1

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
klajosh2
Posts: 38
Joined: Thu Jan 16, 2014 5:22 am

Caught SIGSEGV, shutting down... nagios 3.5.1

Post by klajosh2 »

Hi,

I am using nagios 3.5.1 on RedHat 6.5 (Santiago).
I am using the following NEBs:
mod_gearman.o
livestatus.o

It is a distributed environment. One of my colleague setup a downtime period for 2 hosts.
Since then, nagios has given SIGSEGV error every midnight.

I found this:
http://tracker.nagios.org/view.php?id=516
but I cannot open this link:
http://support.nagios.com/forum/viewtop ... 16&t=24172

Does anybody know any solution for this problem?

Thanks in advance,

klajosh
prandal
Posts: 8
Joined: Mon Nov 19, 2012 5:23 am

Re: Caught SIGSEGV, shutting down... nagios 3.5.1

Post by prandal »

If you're using Nagios 3.5.1 with mk-livestatus you need this patch for Nagios:

http://git.mathias-kettner.de/git/?p=om ... 10;hb=HEAD

Cheers,

Phil
klajosh2
Posts: 38
Joined: Thu Jan 16, 2014 5:22 am

Re: Caught SIGSEGV, shutting down... nagios 3.5.1

Post by klajosh2 »

Phil,
thank you for your quick answer.
Just a quick question:

the code on the url says:

Code: Select all

1 --- nagios-3.5.0/include/downtime.h
and I am using RedHat package 3.5.1. Is this link, ok?

Thanks,

klajosh
prandal
Posts: 8
Joined: Mon Nov 19, 2012 5:23 am

Re: Caught SIGSEGV, shutting down... nagios 3.5.1

Post by prandal »

It still applies.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Caught SIGSEGV, shutting down... nagios 3.5.1

Post by sreinhardt »

Thanks prandal, klajosh, if you continue to run into issues, please let us know again! However this does appear to be an issue with livestatus and log rotation more than anything else. The particular post you referenced, the end resolve was to downgrade mk-livestatus to 1.2.0p3, although the patch may not have been known or out at that time.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
prandal
Posts: 8
Joined: Mon Nov 19, 2012 5:23 am

Re: Caught SIGSEGV, shutting down... nagios 3.5.1

Post by prandal »

The issue was that at some point in the 3.x branch the internal nagios downtime structure changed.

Livestatus is compiled against the old format, hence the problem.

You may find that the problem recurs without patching and rebuilding nagios.

In our setup, the crash didn't always happen at every log rotation.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Caught SIGSEGV, shutting down... nagios 3.5.1

Post by sreinhardt »

Ah nice to have some full clarification on that point, thanks again prandal. We rarely deal with livestatus as of late, so some of these slip by.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked