"Cannot connect to remote SNMP agent".

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
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

"Cannot connect to remote SNMP agent".

Post by Dubolomov »

Hi.
I'm trying to use SNMP get test for recieving some information from APC ups but get message: "Cannot connect to remote SNMP agent". From server where HostMonitor is installed i recieve that information by using "PRTG Traffic Monitor" software. In HostMonitor SNMP get test i paste oid, smnp community and ip address of remote APC ups from PRTG.
Version of HostMonitor is 6.20 (now is 6.21).
Whats that?
Thank you.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Could you add ".0" to the appropriate OID? Or you may enable "Automatically append the single instance sub-identifier (.0)" option (Options > Settings for SNMP Get test tab).

Regards,
Max
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

Post by Dubolomov »

Yes, the same result. :(
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Could you provide here the exact OID you want to get? Do you have mib file? Please, note: HostMonitor supports snmp v2c compatible devices, and does not support snmp v3 compatible devices. Is your APC snmp v3 compatible?

Regards,
Max
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

Post by Dubolomov »

OID: 1.3.6.1.4.1.318.1.1.1.3.2.1.0
UPS: APC Symmetra 16000
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

HostMonitor shows "cannot connect" message when Windows API returns SNMP_MGMTAPI_TIMEOUT (The request timed-out) or SNMP_MGMTAPI_SELECT_FDERRORS (Unexpected error file descriptors indicated by the Windows Sockets select function) error.
May be you have installed some antivirus monitor or personal firewall that blocks requests from HostMonitor?

BTW: RMA does not use mgmtapi.dll, it works directly with winsock. Could you try to use RMA for SNMP Get test? Does it show the same error?

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

Post by KS-Soft »

PS What Windows do you use? Windows 2003 has bug in mgmtapi.dll, problem was fixed in Service Pack 1

Regards
Alex
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

Post by Dubolomov »

I found the problem. If i create SNMP get test directly from HostMonitor interface it's work fine. But if i create test from RCC and in this test set "test by" to "HostMonitor" and push "Get value" button i have this error. If i press "OK" for creating this test from RCC it is work on next check. I think when i press "Get value" in "Test properties" window using RCC it try to check using computer where RCC is insalled.
Thanks! :D
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

Post by Dubolomov »

With using RMA Agent this test works too. :)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I think when i press "Get value" in "Test properties" window using RCC it try to check using computer where RCC is insalled
If address field shows "localhost" then yes, RCC requests local system. However test will be performed by HostMonitor on the system where HostMonitor is running.

Regards
Alex
Post Reply