nagios3 + livestatus: SIGSEGV everyday at midnight
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
check-mk (Debian) |
Fix Released
|
Unknown
|
|||
check-mk (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned | ||
Zesty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
- Ubuntu 14.04, 16.04, 16.10, and 17.04
Nagios goes down everyday at midnight with livestatus enabled and downtime configured.
Here are bug reports in other trackers:
https:/
http://
http://
People say this patch helps:
http://
[Test Case]
* Enable check-mk-livestatus plugin (add broker_
* Wait for log rotation (or update log_rotation_method in nagios3/nagios.cfg to rotate hourly so it happens more often)
* Without the fix, nagios segfaults, entry in /var/log/
| [1486857600] Caught SIGSEGV, shutting down...
* With the fix, nagios logrotation succeeds and rotated logs present in /var/log/
[Regression Potential]
Nagios will continue to segfault during logrotation.
[Other Info]
check-mk ships out a different version of nagios/downtime.h which differs from nagios3's downtime.h (defined struct scheduled_
summary: |
- nagios3: SIGSEGV everyday at midnight + nagios3 + livestatus: SIGSEGV everyday at midnight |
Changed in check-mk (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Haw Loeung (hloeung) |
tags: | added: trusty |
affects: | check-mk (Fedora) → ubuntu |
Changed in ubuntu: | |
importance: | Unknown → Undecided |
status: | Unknown → New |
no longer affects: | ubuntu |
Changed in check-mk (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: xenial |
tags: | added: canonical-bootstack |
Changed in check-mk (Ubuntu Trusty): | |
status: | New → Triaged |
Changed in check-mk (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in check-mk (Ubuntu Yakkety): | |
status: | New → Triaged |
description: | updated |
Changed in check-mk (Debian): | |
status: | Unknown → New |
description: | updated |
Changed in check-mk (Ubuntu Zesty): | |
assignee: | Haw Loeung (hloeung) → nobody |
tags: |
added: verification-done-trusty verification-needed-xenial removed: verification-needed |
Changed in check-mk (Debian): | |
status: | New → Fix Released |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Looks like the check-mk source package embeds a copy of nagios' downtime.h (along with other header files), and that Nagios has updated a struct since then.
Patching Nagios doesn't make sense here, from a distribution perspective. The real fix is to fix check-mk's packaging to use a build dependency on some kind of nagios-dev package which provides the required headers. So this is a bug in check-mk, not in nagios.
This is probably relevant to Debian's check-mk packaging, too. Checking in Debian and reporting there if this bug applies to Debian would be appropriate.