SNMP Reply format - Conversion

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
vcatuor
Posts: 13
Joined: Thu Dec 28, 2023 3:57 am

SNMP Reply format - Conversion

Post by vcatuor »

Hi,

We just installed a temperature monitoring unit (HWg STE2 r2)

The thing is we have 2 OIDs for C temperature, the first is the correct temperature but returned in 'String' and the second is without separator, and returns an INT, as shown below

1.3.6.1.4.1.21796.4.9.3.1.4.1 23.7 1. Sensor String Value ASN_OCTET_STR RO
1.3.6.1.4.1.21796.4.9.3.1.5.1 237 1. Sensor Value ASN_INTEGER RO

If I use the first one, I don't get a history chart, probably normal as it is a String, if I use the second one with a 'Tuned up Reply value ' [%SuggestedReply% div 10] I only get an INT, so 23 instead of 23.7.

Is there a good practice to get a number value like float, that would allow to chart it more precisely ?

Thanks in advance
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: SNMP Reply format - Conversion

Post by KS-Soft »

If I use the first one, I don't get a history chart, probably normal as it is a String
HostMonitor can convert strings to numbers for charts and statistics. I assume its not a "valid" number. E.g. string with dot returned from the server while you are using comma as decimal separator on HostMonitor system.
So you may change Windows regional settings (but this affect other tests and other applications) or use TuneUp Reply value option
See getnumberwithdot, getnumberwithcomma, replace operators
https://www.ks-soft.net/hostmon.eng/mfr ... uneupreply
[%SuggestedReply% div 10] I only get an INT, so 23 instead of 23.7.
If server returns 237 and you want to see 23.7, use div and mod operators
https://www.ks-soft.net/hostmon.eng/mfr ... uneupreply

Regards
Alex
vcatuor
Posts: 13
Joined: Thu Dec 28, 2023 3:57 am

Re: SNMP Reply format - Conversion

Post by vcatuor »

Thanks for the reply,

In fact the return Number is OK (with a dot), and shown correctly by the 'real time chart', and I can do alerts based on the reply with decimal, but the 'history charts' only show data when I use results without decimals, as soon as I have decimals as replies, it shows blank :o
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: SNMP Reply format - Conversion

Post by KS-Soft »

Real time chart? Its MIB Browser application, not HostMonitor.
HostMonitor version?

Regards
Alex
vcatuor
Posts: 13
Joined: Thu Dec 28, 2023 3:57 am

Re: SNMP Reply format - Conversion

Post by vcatuor »

Well yes you're right, sorry for the confusion, as I launched Real Time Charts directly from HostMonitor. It's version 14.54
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: SNMP Reply format - Conversion

Post by KS-Soft »

We cannot reproduce the problem.
Could you send test settings to support?
support @ ks-soft.net

Regards
Alex
vcatuor
Posts: 13
Joined: Thu Dec 28, 2023 3:57 am

Re: SNMP Reply format - Conversion

Post by vcatuor »

It finally worked, I had to change the locales (to use a . instead of a ,) on the account that was running Advanced Host Monitor Windows Service on the server, and that solved it

Thanks for the support
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: SNMP Reply format - Conversion

Post by KS-Soft »

You are welcome :)
I said this in my 1st reply - I assume its not a "valid" number. E.g. string with dot returned from the server while you are using comma as decimal separator on HostMonitor system.

Regards
Alex
Post Reply