[Nagiosplug-devel] [ nagiosplug-Feature Requests-2100684 ] "Thresholds" syntax to support enumerated values as well
SourceForge.net
noreply at sourceforge.net
Mon Sep 8 20:00:00 CEST 2008
Feature Requests item #2100684, was opened at 2008-09-08 18:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=2100684&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interface Improvements (example)
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Mike Whittaker (mikewhit)
Assigned to: Nobody/Anonymous (nobody)
Summary: "Thresholds" syntax to support enumerated values as well
Initial Comment:
I have a case in which an SNMP operation retrieves a status value from a host.
However, the value is not an 'ordered' value in which you can assign increasing or decreasing levels of problem.
Instead the value is a value from an enumeration set.
In this case, it would be useful if the 'thresholds' plugin command-line syntax was extended to allow a list of specific values, to allow this situation to be handled concisely.
e.g.
get_device_status $HOST -w 1,3,5,7 -c 2,
This example is meant to indicate that the presence of a trailing comma introduces an enumeration set or single value in which the status (warning or critical) is returned if the enumeration value is met.
Hence the example would return WARNING if the status code was 1,3,5 or 7; CRITICAL if the status code was 2 [equivalent to "Threshold" @2:2]; OK otherwise.
It may be possible to combine comma-trailing enumerated values with additional existing threshold syntax parameters, but that would complicate decoding logic !!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=2100684&group_id=29880
More information about the Devel
mailing list