Page 1 of 1

Caught SIGSEGV, shutting down... nagios 3.5.1

Posted: Wed Mar 19, 2014 3:00 am
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

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

Posted: Wed Mar 19, 2014 4:18 am
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

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

Posted: Wed Mar 19, 2014 7:17 am
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

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

Posted: Wed Mar 19, 2014 10:17 am
by prandal
It still applies.

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

Posted: Wed Mar 19, 2014 1:49 pm
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.

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

Posted: Wed Mar 19, 2014 4:49 pm
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.

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

Posted: Wed Mar 19, 2014 5:00 pm
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.