stripping reply message

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
menno
Posts: 158
Joined: Fri May 21, 2010 1:27 am

stripping reply message

Post by menno »

hi there

we testing via snmp the temperature from our server.
we use snmp string : 1.3.6.1.4.1.24681.1.2.5.0
most of them are OK but our NAS has a specific reply

the reply of the NAS is : 42 C/105 F

what we want is ONLY the first 2 digits
is there a way to strip the first 2 chars off the reply

the reply we want to see is : 42
we tested around with : tune up Reply value but did not succeed

can you please help us with this.
many many thanks
Menno
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

For Tune up Reply value option, you may use the following expression:
["%SuggestedReply%" getword 1]
For "Use Warning status if" field (for Bad alert triggering), expression may look like the following:
('%SuggestedReply%' getword 1) > 50

Please check for details at:
http://www.ks-soft.net/hostmon.eng/mfra ... uneupreply
menno
Posts: 158
Joined: Fri May 21, 2010 1:27 am

Post by menno »

works great ... thanks
m
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You are welcome.
Post Reply