nagios3 crashes with livestatus and downtimed checks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nagios3 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Issue
-------
When nagios3 is configured to have livestatus from check-mk-livestatus as a broker module, and checks have a downtime applied to them it will crash when the logs rotate. This shows up in /var/log/
[1445238000] Caught SIGSEGV, shutting down...
Steps to reproduce
-------
* Install nagios3 and check-mk-livestatus
* Edit /etc/nagios3/
broker_
* To speed up testing, edit /etc/nagios3/
log_
This will cause log rotation to occur hourly, rather than weekly or daily.
* Restart nagios to apply these fixes.
* Apply a downtime on any host or service to last until the top of the next hour
* Wait until that time, and see that nagios crashes with the SIGSEGV error.
Solution
-------------
After some searching around I found a patch at http://
The testing was done with latest patched Trusty, specifically:
$ lsb_release -d
Description: Ubuntu 14.04.3 LTS
$ dpkg-query -W nagios3
nagios3 3.5.1-1ubuntu1
$ dpkg-query -W check-mk-livestatus
check-mk-livestatus 1.2.2p3-1
Please let us know if you need any further information, or any testing done.
Patching nagios3 is the wrong thing to do and may cause other things to break by changing nagios' ABI. The bug is in check-mk which assumes an incorrect nagios3 ABI. See duplicate bug.