Problem with reply that has decimal.

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

Post by KS-Soft Europe »

You may try to apply regional settings for local system account:
When you set your regional settings in Control Panel > Regional and Language Options, just mark checkbox "Apply all settings to the current user account and to the default user profile" that is located on the Advanced tab.
Is there any option to work directly with the service? Without restarting?
There are several tools to manage HostMonitor: Web Service, Telnet Service, RCC (Remote Control Console).
RCC is most advanced management tool. It can do almost anything that HostMonitor GUI can do.
If RCC works slowly, it looks like you've enabled "Show tests in subfolders (recursive)" option. This option can be disabled using HostMonitor menu User -> GUI preferences...
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Is there any option to work directly with the service? Without restarting?
(I do not want to work with RCC as it is quite slow sometimes...)
Service can interact with desktop when its started under local system account on Windows 2000, XP, 2003.
RCC slow? For some specific operations? How many test items did you setup? Have you used Auditing Tool (menu View) to check for possible problems?

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

In next version we will add couple new commands to process such "numbers"

Regards
Alex
sysadmber
Posts: 50
Joined: Tue Dec 08, 2015 1:26 am

Post by sysadmber »

We are using v10.14.

I didn't see any changes reagarding snmp opaque support. The test still fails.

Did i miss something?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

There are new operators for string->number processing
http://www.ks-soft.net/hostmon.eng/news.htm#v10_vars

Regards
Alex
sysadmber
Posts: 50
Joined: Tue Dec 08, 2015 1:26 am

Post by sysadmber »

Sorry i don't get it. My problem is, that i don't know the syntax of the data. If i use iReasoning MIB browser the data are shown as 10.0, if i use HM Mibbrowser i get the following data (i converted this to Hex values) 9F 78 04 41 A8. This should mean 21.0 (according to iReasoning MIB Browser).

Even it the data format is known i fail to use it. I thougth, that i must use "Tune up reply value" but if i use the following statement:

[%SuggestedReply% getnumberwithdot 2]

i get the following Reply:

Error in expression [0.00 getnumberwithdots 2]: Unknown operator: "0.00"

So any help is welcome...
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What exactly device and OID you are checking?

Regards
Alex
sysadmber
Posts: 50
Joined: Tue Dec 08, 2015 1:26 am

Post by sysadmber »

The device is leunig ePowerSwitch 4m+

the OID is 1.3.6.1.4.1.24734.15.4.1.1.5.1.1 (Temperature sensor)

you can access a sample via http://eps4mplus.leunig.de/admin/tools.htm (user: admin / password: admin)

Under general -> Tools you can download the mib file.

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

Post by KS-Soft »

Tried to request 1.3.6.1.4.1.24734.15.4.1.1.5.1.1 from eps4mplus.leunig.de - server responds "no such object"

Checked MIB file - 1.3.6.1.4.1.24734.15.4.1.1.5.1.1 declared as STRING.
Sorry, I do not understand how string with bytes 9F 78 04 41 A8 can be translated as 21.0??

Regards
Alex
sysadmber
Posts: 50
Joined: Tue Dec 08, 2015 1:26 am

Post by sysadmber »

I testet now snmpget from cygwin net-snmp package and here are the results:

$ snmpget -v 1 -c public [IP-Adress] 1.3.6.1.4.1.24734.15.4.1.1.5.1.1
SNMPv2-SMI::enterprises.24734.15.4.1.1.5.1.1 = Opaque: Float: 22.000000

Debug Output:

$ snmpget -v 1 -c public -d [IP-Adress] 1.3.6.1.4.1.24734.15.4.1.1.5.1.1

Sending 50 bytes to UDP: [IP-Adress]:161->[0.0.0.0]:0
0000: 30 30 02 01 00 04 06 70 75 62 6C 69 63 A0 23 02 00.....public.#.
0016: 04 7C 9B BF 0C 02 01 00 02 01 00 30 15 30 13 06 .|.........0.0..
0032: 0F 2B 06 01 04 01 81 C1 1E 0F 04 01 01 05 01 01 .+..............
0048: 05 00 ..


Received 57 byte packet from UDP: [IP-Adress]:161->[0.0.0.0]:0
0000: 30 37 02 01 00 04 06 70 75 62 6C 69 63 A2 2A 02 07.....public.*.
0016: 04 7C 9B BF 0C 02 01 00 02 01 00 30 1C 30 1A 06 .|.........0.0..
0032: 0F 2B 06 01 04 01 81 C1 1E 0F 04 01 01 05 01 01 .+..............
0048: 44 07 9F 78 04 41 B0 00 00 D..x.A...

SNMPv2-SMI::enterprises.24734.15.4.1.1.5.1.1 = Opaque: Float: 22.000000
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We added "Check OPAQUE data for float numbers" option long time ago (8 or may be 10 years ago), you may enable this option in SNMP profile.
http://ks-soft.net/hostmon.eng/tests.htm#snmpaccount

Number represented by these bytes: 41 B0 00 00

Regards
Alex
sysadmber
Posts: 50
Joined: Tue Dec 08, 2015 1:26 am

Post by sysadmber »

This option is already checked. If i click on the button "Get Value" i always receive 0,00 as result.

You said that in the mib file the data type is string. The question is will the option "Check OPAQUE data for float numbers" be used or only if the data type is specified as opaque ????
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

There is update www.ks-soft.net/download/hm1015.zip
Should work...

Regards
Alex
sysadmber
Posts: 50
Joined: Tue Dec 08, 2015 1:26 am

Post by sysadmber »

Hello Axel,

I tested the new build. The Reply is now received correct. If i enter the value with dots in the condition field the test works as expected. The only issue is that "get value" still don't works, but for me this is not so important.

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

Post by KS-Soft »

Get Value (Test Properties dialog) should work fine as well.
Unless you are using RCC application, it should be updated as well.

Probably we will release version 10.18 next week, it will include this fix

Regards
Alex
Post Reply