Hi,
I built an snmp-query to a HP Switch to control the CPU-Utilisation and Temperature. The Reply is for example "5" or "21C". I want to display the Reply in Percent -> "5%" and the Temperature in °C.
How could i realize that?
Configure snmp-values in Percent (Units)
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Single test may return two type of values: 5 and 5C ?
You may use Tune up Reply vaue option with expression like the following:
if ('C' in '%SuggestedReply%') %SuggestedReply%; else %SuggestedReply%%
This expression will convert Reply the following way:
5 > 5%
5C > 5C
Please check for details at:
Tune up Reply value option: http://www.ks-soft.net/hostmon.eng/mfra ... uneupreply
You may use Tune up Reply vaue option with expression like the following:
if ('C' in '%SuggestedReply%') %SuggestedReply%; else %SuggestedReply%%
This expression will convert Reply the following way:
5 > 5%
5C > 5C
Please check for details at:
Tune up Reply value option: http://www.ks-soft.net/hostmon.eng/mfra ... uneupreply
If you use reply in format "5%" or "5C" or "5% 5C" then HostMonitor will not be able to calculate min, max, average reply. Log Analyzer will not be able to show charts and so on... because 5C does not make any sense to software, its not a number.
If you use "5 %" for reply (space after number), everything will work.
BTW:
may be you mean "23 %", not "5 %"?
5/21*100=23.8095
Regards
Alex
If you use "5 %" for reply (space after number), everything will work.
BTW:
may be you mean "23 %", not "5 %"?
5/21*100=23.8095
Regards
Alex
-
- Posts: 9
- Joined: Fri Mar 22, 2013 4:33 am
"5" is the reply which the snmp-query delivers and means the CPU Utilisation of the switch.
It works with your expression:
>>You may use Tune up Reply vaue option with expression like the following:
if ('C' in '%SuggestedReply%') %SuggestedReply%; else %SuggestedReply%%>>
"21C" is the reply which the snmp-query delivers and means the temperature of the Switch.
It works with your expression:
>>You may use Tune up Reply vaue option with expression like the following:
if ('C' in '%SuggestedReply%') %SuggestedReply%; else %SuggestedReply%%>>
"21C" is the reply which the snmp-query delivers and means the temperature of the Switch.