[SERVER-11145] Cannot get mongod SNMP stats from a remote machine Created: 11/Oct/13  Updated: 09/Jul/16  Resolved: 22/Oct/13

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 2.5.3
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Sridhar Nanjundeswaran Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mongod windows enterprise build running with --snmp-master on Windows 2008 R2


Issue Links:
Depends
Operating System: ALL
Participants:

 Description   

snmpwalk when run locally can get access to the stats.
When I run snmpwalk from my desktop against this instance it times out. Note I can access this instance from the mongoshell so it is not a firewall issue.



 Comments   
Comment by Sridhar Nanjundeswaran [ 22/Oct/13 ]

Setting agent address to only the port on mongod.conf allows connections from remote machine

agentaddress 1161

Comment by Eric Milkie [ 22/Oct/13 ]

I'm looking at what functions calls it's actually making into Winsock.

Comment by Eric Milkie [ 22/Oct/13 ]

Still need to investigate how to get 0.0.0.0 working on Windows.

Comment by Sridhar Nanjundeswaran [ 21/Oct/13 ]

Note - setting 0.0.0.0 for agent address does not work on Windows. You need to set agentaddress to actual instance IP. Hence to get this working I set
agentaddress <IP>:1161
com2sec mynetwork 0.0.0.0 mongodb

This does not work in cases where there is a VIP in front of MongoDB. I tried this with the VM on Azure Virtual Machines.The internal IP for the instance is different from the external IP. Hence the above technique of setting agent address to IP does not work

Comment by Eric Milkie [ 21/Oct/13 ]

I got it to work on Windows by modifying the conf file.

Comment by Eric Milkie [ 21/Oct/13 ]

Incidentally, I couldn't access snmp-master remotely with the server on my Linux box box either (using TCP:1161). It may just be a firewall issue there.

Comment by Eric Milkie [ 21/Oct/13 ]

I got it to work if for agentaddress I specify the IP address of the machine. "TCP:1161" does not work, despite it being an example here: http://net-snmp.sourceforge.net/docs/man/snmpd.html
Is this something we should just document, or should we investigate further?

Comment by Sridhar Nanjundeswaran [ 14/Oct/13 ]

Yes modified agentaddress in mongod.conf to be tcp:1161,udp:1161

Comment by Eliot Horowitz (Inactive) [ 12/Oct/13 ]

Do you have the bind configuration in the master config file correct?

Generated at Thu Feb 08 03:25:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.