SNMP Proxy

Started by MarcMoennikes, July 31, 2013, 12:33:44 AM

Previous topic - Next topic

MarcMoennikes

Hello,

i have installed netxms agents at remote sites to poll snmp devices.
On one site it is working like expected. Other sites are not working. All windows 2008r2 server.
I have enabled:
EnableProxy = yes
EnableSNMPProxy = yes
Added the agent as poller node and snmp proxy to the snmp node which i want to discover. But when i try poll->configuration i get a snmp timeout.
I have enabled debuglevel = 6.

On the agents which are not working, i can not find the following entries (which exists on the working agent):
0-Jul-2013 23:08:42.368] [session:0] Received message CMD_SNMP_REQUEST
[30-Jul-2013 23:08:42.368] [session:0] Sending message CMD_REQUEST_COMPLETED (size 112)
[30-Jul-2013 23:08:42.383] [session:0] Received message CMD_SNMP_REQUEST
[30-Jul-2013 23:08:42.383] [session:0] Sending message CMD_REQUEST_COMPLETED (size 112)
[30-Jul-2013 23:08:42.383] [session:0] Received message CMD_SNMP_REQUEST
[30-Jul-2013 23:08:42.383] [session:0] Sending message CMD_REQUEST_COMPLETED (size 112)
[30-Jul-2013 23:08:42.399] [session:0] Received message CMD_SNMP_REQUEST
[30-Jul-2013 23:08:42.399] [session:0] Sending message CMD_REQUEST_COMPLETED (size 112)

i can find only entries like:
[30-Jul-2013 23:24:25.907] [session:1] Session with 172.31.0.84 closed
[30-Jul-2013 23:24:29.432] Incoming connection from 172.31.0.84
[30-Jul-2013 23:24:29.432] Connection from 172.31.0.84 accepted
[30-Jul-2013 23:24:29.432] [session:0] Received control message CMD_GET_NXCP_CAPS
[30-Jul-2013 23:24:29.432] [session:0] Sending message CMD_NXCP_CAPS (size 16)
[30-Jul-2013 23:24:29.432] [session:0] Received message CMD_KEEPALIVE
[30-Jul-2013 23:24:29.432] [session:0] Sending message CMD_REQUEST_COMPLETED (size 32)
[30-Jul-2013 23:24:29.448] [session:0] Received message CMD_ENABLE_AGENT_TRAPS
[30-Jul-2013 23:24:29.448] [session:0] Sending message CMD_REQUEST_COMPLETED (size 32)
[30-Jul-2013 23:24:29.448] [session:0] Received message CMD_GET_PARAMETER

Maybe somebody can help me?

Regards

Victor Kirhenshtein

Hi!

There must be some difference between sites, but it's hard to tell anything based on provided information. Can you show full agent configs from both working and non-working sites, results of configuration polls of agent nodes, and screenshots of SNMP device configuration (both working and non-working)?

Best regards,
Victor

MarcMoennikes

Hello,

working site:

Agent poll:

[01.08.2013 06:59:23] **** Poll request sent to server ****
[01.08.2013 06:59:23] Poll request accepted
[01.08.2013 06:59:23] Starting configuration poll for node s-prtg-04
[01.08.2013 06:59:23] Checking node's capabilities...
[01.08.2013 06:59:23]    Checking NetXMS agent...
[01.08.2013 06:59:23]    NetXMS native agent is active
[01.08.2013 06:59:23]    NetXMS agent version changed to 1.2.8
[01.08.2013 06:59:23]    Platform name changed to windows-x64
[01.08.2013 06:59:23]    System description changed to Windows S-PRTG-04 6.1.7601 Windows Server 2008 R2 Build 7601 Service Pack 1 AMD-64
[01.08.2013 06:59:23]    Reading list of available Windows Performance Counters...
[01.08.2013 06:59:25]    99 counters read
[01.08.2013 06:59:25]    Checking SNMP...
[01.08.2013 07:00:21] Capability check finished
[01.08.2013 07:00:21] Checking interface configuration...
[01.08.2013 07:00:21] Interface configuration check finished
[01.08.2013 07:00:21] Checking node name
[01.08.2013 07:00:21] Node name is OK
[01.08.2013 07:00:21] Reading list of installed software packages
[01.08.2013 07:00:21] Got information about 8 installed software packages
[01.08.2013 07:00:21] Finished configuration poll for node s-prtg-04
[01.08.2013 07:00:21] Node configuration was changed after poll
[01.08.2013 07:00:21] **** Poll completed successfully ****

Agent config:
MasterServers = s-netxms-01.kkrn.local
ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d
# LogFile = {syslog}
LogFile = C:\Temp\log.log
DebugLevel = 0
FileStore = C:\NetXMS\var
SubAgent = ecs.nsm
SubAgent = ping.nsm
SubAgent = logwatch.nsm
SubAgent = portcheck.nsm
SubAgent = winperf.nsm
SubAgent = wmi.nsm
EnableProxy = yes
EnableSNMPProxy = yes


Non working site:

[01.08.2013 06:59:32] **** Poll request sent to server ****
[01.08.2013 06:59:32] Poll request accepted
[01.08.2013 06:59:32] Starting configuration poll for node s-prtg-06.kkrn.local
[01.08.2013 06:59:32] Checking node's capabilities...
[01.08.2013 06:59:32]    Checking NetXMS agent...
[01.08.2013 06:59:32]    NetXMS native agent is active
[01.08.2013 06:59:32]    NetXMS agent version changed to 1.2.8
[01.08.2013 06:59:32]    Platform name changed to windows-x64
[01.08.2013 06:59:32]    System description changed to Windows S-PRTG-06 6.1.7601 Windows Server 2008 R2 Build 7601 Service Pack 1 AMD-64
[01.08.2013 06:59:32]    Reading list of available Windows Performance Counters...
[01.08.2013 06:59:33]    99 counters read
[01.08.2013 06:59:33]    Checking SNMP...
[01.08.2013 07:00:29] Capability check finished
[01.08.2013 07:00:29] Checking interface configuration...
[01.08.2013 07:00:29] Interface configuration check finished
[01.08.2013 07:00:29] Checking node name
[01.08.2013 07:00:29] Node name is OK
[01.08.2013 07:00:29] Reading list of installed software packages
[01.08.2013 07:00:29] Got information about 11 installed software packages
[01.08.2013 07:00:29] Finished configuration poll for node s-prtg-06.kkrn.local
[01.08.2013 07:00:29] Node configuration was changed after poll
[01.08.2013 07:00:29] **** Poll completed successfully ****

MasterServers = s-netxms-01.kkrn.local
ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d
LogFile = c:\temp\netxms.log
DebugLevel = 0
FileStore = C:\NetXMS\var
SubAgent = ecs.nsm
SubAgent = ping.nsm
SubAgent = logwatch.nsm
SubAgent = portcheck.nsm
SubAgent = winperf.nsm
SubAgent = wmi.nsm
EnableProxy = yes
EnableSNMPProxy = yes


MarcMoennikes

Hello,

and the attachemants.
SNMP device N9900112 is working with the agent.
SNMP device 192.168.10.10 is not working.
Both HP Procurve switches. 5308XL and 5406.

One question:
withe the configuration:
When i start configuration polling on 192.168.10.10, the netxms server is asking the agent "s-prtg-06" to do this, correct? Also querying snmp is started by s-prtg-06, also correct?
Is it needed to have a direct communication between the netxms server and the device 192.168.10.10?

Is there a log on the netxms server like the agent log? Maybe i can see there a failure?

Regards

Victor Kirhenshtein

Strange, I don't see much difference between configs. Server don't need direct communication with device if proxy agent is used. What configuration poll from console shows for 192.168.10.10?
You can enable server debug log as well, edit netxmsd.conf file and set LogFile parameter to some file, and DebugLevel parameter to 5 or 6. Seeing server log can really help.

Best regards,
Victor

MarcMoennikes

Hello,

i have installed netxms server on windows xp on same site.
Added my switch 192.168.10.10.
result of configuraiton poll:
[05.08.2013 11:56:03] **** Poll request sent to server ****
[05.08.2013 11:56:03] Poll request accepted
[05.08.2013 11:56:03] Starting configuration poll for node 192.168.10.10
[05.08.2013 11:56:03] Checking node's capabilities...
[05.08.2013 11:56:03]    Checking NetXMS agent...
[05.08.2013 11:56:04]    Checking SNMP...
[05.08.2013 11:57:16] Capability check finished
[05.08.2013 11:57:16] Checking interface configuration...
[05.08.2013 11:57:16] Unable to get interface list from node
[05.08.2013 11:57:16]    Interface "unknown" is no longer exist
[05.08.2013 11:57:16] Interface configuration check finished
[05.08.2013 11:57:16] Checking node name
[05.08.2013 11:57:16] Node name is an IP address and need to be resolved
[05.08.2013 11:57:25] Node name cannot be resolved
[05.08.2013 11:57:25] **** Poll completed successfully ****

[05.08.2013 11:57:25] Finished configuration poll for node 192.168.10.10
[05.08.2013 11:57:25] Node configuration was not changed after poll

The server log is attached. Maybe you can find some helpful information?

Regards

Victor Kirhenshtein

Hi!

Looks like switch at 192.168.10.10 does not respond to SNMP requests. I would suggest to check SNMP configuration on the switch and firewalls in between, if you have any.

Best regards,
Victor

MarcMoennikes

Hello,

i have tried the snmp test tool from paessler (http://www.paessler.com) on the windows system which is also netxms core server.
I can query snmp values (like uptime or interfaces).
This works...
Looks like an incompatibility between netxms snmp implementation and the hp device.
There is another switch with same problem. Other snmp devices are working.

Is there a way to start deeper troubleshooting?

Regards

Victor Kirhenshtein

Hi!

It will be very helpful if you can capture packets from successful communication with snmp test tool and from unsuccessful communication with NetXMS server.

Best regards,
Victor

MarcMoennikes

Hello,

do you want capture with wireshark or something like that?
Can i send this to you directly?

Regards

MarcMoennikes

Hello,

found the problem.
The procurve switches have multiple ip adresses, because they are routing.
I have to use the switch ip which is in the same subnet as the agent.
When i query ip 192.168.10.10 from the agent and the switch replies with 172.31.0.1 netxms is not accepting the packets.
This seems to be different to most other snmp tools we use.

But now it works.

Thank you.

Regards