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
SNMP Reply format - Conversion
Re: SNMP Reply format - Conversion
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.If I use the first one, I don't get a history chart, probably normal as it is a String
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
If server returns 237 and you want to see 23.7, use div and mod operators[%SuggestedReply% div 10] I only get an INT, so 23 instead of 23.7.
https://www.ks-soft.net/hostmon.eng/mfr ... uneupreply
Regards
Alex
Re: SNMP Reply format - Conversion
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
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

Re: SNMP Reply format - Conversion
Real time chart? Its MIB Browser application, not HostMonitor.
HostMonitor version?
Regards
Alex
HostMonitor version?
Regards
Alex
Re: SNMP Reply format - Conversion
Well yes you're right, sorry for the confusion, as I launched Real Time Charts directly from HostMonitor. It's version 14.54
Re: SNMP Reply format - Conversion
We cannot reproduce the problem.
Could you send test settings to support?
support @ ks-soft.net
Regards
Alex
Could you send test settings to support?
support @ ks-soft.net
Regards
Alex
Re: SNMP Reply format - Conversion
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
Thanks for the support
Re: SNMP Reply format - Conversion
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

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