SNMP Test not works.

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
Serjevski
Posts: 2
Joined: Wed Jun 02, 2010 12:22 am

SNMP Test not works.

Post by Serjevski »

I tried to create SNMP test whish should read some values from APC Smart-UPS. The MIB browser succesfully reads these values both from pc that runs HM service and my, administrating PC. But the service does NOT! I'm using snmp v1. Community names are same.
But HM service responds 'No such name'.
HM service runs on Windows 2008 server as service under LocalSystem account.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What exactly OID do you use for the test?

Regards
Alex
Serjevski
Posts: 2
Joined: Wed Jun 02, 2010 12:22 am

Post by Serjevski »

KS-Soft wrote:What exactly OID do you use for the test?

Regards
Alex
I tried many OID, result the same. MIB Browser shows values normally but HM itself - not. I.e. OIDs:
.1.3.6.1.4.1.318.1.1.1.2.1.1
.1.3.6.1.4.1.318.1.1.1.2.1.2
.1.3.6.1.4.1.318.1.1.1.2.2.1
etc.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

1.3.6.1.4.1.318.1.1.1.2.2.1? upsAdvBatteryCapacity?
I think this is single instance counter, this means you have to add .0 to the end.
1.3.6.1.4.1.318.1.1.1.2.2.1.0

Why MIB Browser works in such case and HostMonitor does not?
MIB Browser uses Windows API which does not work correctly in some cases.
E.g. if you request "1.3.6.1.4.1.232.6.2.6.8.1.4.0.1" while there is no such counter (because incorrect index is specified) and SNMP agent returns nearest valid counter (so it performs SNMP GETNEXT request instead of GET request), MIB Browser will display this value.
Its not a problem for MIB Browser because its actually purpose of the browser - show available counters.

While HostMonitor will check for specific counter only (counter that was speciied in request).
If you are not sure what indexes are present, please use GET NEXT function of MIB BROWSER to receive valid OID and then use this OID for the test.

Regards
Alex
Post Reply