Repository navigation
fix: send a sticky acknowledgement as type 2 - #85
Merged
Merged
Conversation
The Sticky box of Acknowledge Problem went out as 1. Nagios Core reads that field as the acknowledgement type and treats only 2 (ACKNOWLEDGEMENT_STICKY) as sticky, so every acknowledgement sent to Core was a normal one that ends at the next state change. Naemon reads 1 and 2 as sticky, so 2 is right for both. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
|
xmacan
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Intent: make the Sticky box of Acknowledge Problem give a sticky acknowledgement on Nagios Core.
Scope:
NagiosCmd::setCommand()writes a validated sticky value of 1 as 2, Core'sACKNOWLEDGEMENT_STICKY; 0 stays 0 and the dialog's values stay 0 or 1. Every backend sends the string it builds, so the command file and Livestatus both get the fix. CHANGELOG updated.Risk: low. Naemon reads 1 and 2 both as sticky, so Naemon sites see no change; Nagios Core sites get the sticky acknowledgement users asked for.
Verification (local, PHP 8.5, MariaDB, Naemon 1.6.0): full Pest suite on this branch; new unit tests check the command text of both acknowledgement commands for sticky 1, 0 and a refused raw 2, and the Livestatus e2e test now checks that Naemon records
acknowledgement_type2. The Naemon e2e test cannot tell 1 from 2 (Naemon accepts both); the unit test is the regression test, with Nagios Core 4.5.14 source cited.Base:
developat 77ba34c. Independent of the native engine branches.Fixes #84