Configure snmp-values in Percent (Units)

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
berlin2013
Posts: 9
Joined: Fri Mar 22, 2013 4:33 am

Configure snmp-values in Percent (Units)

Post by berlin2013 »

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?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
berlin2013
Posts: 9
Joined: Fri Mar 22, 2013 4:33 am

Post by berlin2013 »

"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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

So you are talking about 2 different tests?
Still, its better to use space before %

Regards
Alex
berlin2013
Posts: 9
Joined: Fri Mar 22, 2013 4:33 am

Post by berlin2013 »

Yes, 2 different tests.
Post Reply