[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: |
|
||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Description |
|
snmpwalk when run locally can get access to the stats. |
| Comments |
| Comment by Sridhar Nanjundeswaran [ 22/Oct/13 ] | |
|
Setting agent address to only the port on mongod.conf allows connections from remote machine
| |
| 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 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 | |
| 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? |