Hi,
Wondering if it is possible for a check command that has multiple possible values for error feedback to trigger warnings and critical.
I have found the information about defining thresholds, but what it doesn't explain for me is if I can do multiple vaules...
Example, I have an SNMP feedback for HDD monitoring, I want SNMP return values 6,7,24,34 to trigger a warning and values 0,2,4,11,39,41,53 to trigger a critical. I have used the following as my syntax
-w @5:8,@23:25,@33:35 -c 1:,@1:3,@3:5,@10:12,@38:40,@40:42,@52:54
is this correct?
Thank you for any assistance...
Check command thresholds
Re: Check command thresholds
This depends on the plugin defined in the command. Nagios sets status based on the return value of a check.
Re: Check command thresholds
Thankyou for your response
I am using the check_snmp command, however what I have found with testing is that when I have multiple thresholds it doesn't recognize the defined values as I mentioned in my question.
What I have done in the mean time is create individual services using the check_snmp command with a single defined threshold, it means a lot more programming but it seems the only way for me to proceed. I was trying to find a way of simplifying the process as each drive will require 11 services...
Cheers
Re: Check command thresholds
Have a look at the plugins web page referenced at the end of check_snmp -h. It suggests that multiple -w and -c options can be defined.
It's still a bit gruesome but it might work depending on whether check_snmp conforms to the document.
It's still a bit gruesome but it might work depending on whether check_snmp conforms to the document.