Plugin.EvaluateThreshold
reduces severity of plugin exit status code on later perfdata evaluations
#280
Labels
bug
Something isn't working
performance data
question
Further information is requested
range
thresholds
Milestone
While working on #278 I reviewed the logic for this method:
go-nagios/range.go
Line 147 in d9dbfd9
and it appears that the current logic may have a bug.
From what I can tell the method:
This can lead to a performance data metric warranting a CRITICAL exit code being ignored if a later performance data metric in the input collection is evaluated which indicates that a WARNING exit code should be set.
Whether a single plugin should support checking multiple separate thresholds, each of which can lead to having separate state evaluations is something to consider but is likely supported (unverified) by stock / standard plugins.
The text was updated successfully, but these errors were encountered: