Hello,
I have been looking around for a while but i can't seem to find this question asked before so her it is.
Im querying some of our UPS systems using SNMP test, some values are simple to test but the other values don't always return the same number without being bad. e.g. The input voltage on line 1 can be anything between 225V through 240v.
But i cant seem to find any way to get his set up.
Hopefully anyone here can show me the way?
SNMP OID value ><
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
I think, you may use "Optional status processing" feature: http://www.ks-soft.net/hostmon.eng/mfra ... processing
For instance, in "Test Properties" window for the "SNMP Get" test method, you may specify alert threshold as 225 ("Alert when OID: some OID is <> from 225"). It means you will get "Ok" status when test replies with 225 value only. Otherwise test status becomes "Bad". After that, you should enable "Use Normal staus if" option, located in "Optional status processing" area of the "Test Properties window", and specify expression like the following: ('%SuggestedSimpleStatus%'=='DOWN') and ('%SuggestedReply%'>'225') and ('%SuggestedReply%'<='240')
In this case you will get "Ok" status, when returned value is exactly 225, "Normal" status when returned value is between 225 and 240, and "Bad" status otherwise. Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... rmalstatus
==================================
Use Normal status
You may mark this option and provide logical expression to specify when HostMonitor should use "Normal" status for the test item (examples).
"Normal" status is processed similar to other "good" statuses ("Ok" and "Host is alive"). When HostMonitor sets "Normal" status, it increases "Alive" statistics counters and executes specified "good" actions. When test status changes from "Ok" to "Normal" or vice versa, HostMonitor does not reset "Recurrences" counter. The only difference between Normal and Ok (or "Host is alive") status is that you may use different colors for Normal and Ok statuses and sort test items by status so "Normal" items will be located below (or above) of "Ok" and "Host is alive" items.
==================================
Regards,
Max
For instance, in "Test Properties" window for the "SNMP Get" test method, you may specify alert threshold as 225 ("Alert when OID: some OID is <> from 225"). It means you will get "Ok" status when test replies with 225 value only. Otherwise test status becomes "Bad". After that, you should enable "Use Normal staus if" option, located in "Optional status processing" area of the "Test Properties window", and specify expression like the following: ('%SuggestedSimpleStatus%'=='DOWN') and ('%SuggestedReply%'>'225') and ('%SuggestedReply%'<='240')
In this case you will get "Ok" status, when returned value is exactly 225, "Normal" status when returned value is between 225 and 240, and "Bad" status otherwise. Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... rmalstatus
==================================
Use Normal status
You may mark this option and provide logical expression to specify when HostMonitor should use "Normal" status for the test item (examples).
"Normal" status is processed similar to other "good" statuses ("Ok" and "Host is alive"). When HostMonitor sets "Normal" status, it increases "Alive" statistics counters and executes specified "good" actions. When test status changes from "Ok" to "Normal" or vice versa, HostMonitor does not reset "Recurrences" counter. The only difference between Normal and Ok (or "Host is alive") status is that you may use different colors for Normal and Ok statuses and sort test items by status so "Normal" items will be located below (or above) of "Ok" and "Host is alive" items.
==================================
Regards,
Max