[DOCS-11052] Improve Monitor MongoDB With SNMP on Linux page Created: 23/Nov/17  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Minor - P4
Reporter: Emilio Scalise Assignee: Brian Moss
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

https://docs.mongodb.com/manual/tutorial/monitor-with-snmp/

Please improve the following sentence:

The configuration filename is tool-dependent. For example, when using net-snmp the configuration file is snmpd.conf.

I may interpret this sentence that many distributions possibly use /etc/snmp/snmpd.conf instead of the suggested file name /etc/snmp/mongod.conf.

This may be confusing, because MongoDB if configured with the snmp-agent configuration parameter will use that configuration file /etc/snmp/mongod.conf while at the same time you may have a snmpd daemon (such as Net-snmp) using /etc/snmp/snmpd.conf file as SNMP master configuration file.

I would recommend clarifying this in the docs page.



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Comment by Brian Moss [ 29/Nov/17 ]

Hi Emilio,

I've made the distinction between users on different distros a bit more clear and mentioned that permissions for /var/agentx may need to be changed. Let me know what you think.

PR: https://github.com/mongodb/docs/pull/3117

Cheers,
Brian

Comment by Emilio Scalise [ 28/Nov/17 ]

Hi Brian,

On ubuntu there is also another issue. By default the snmpd daemon uses tha path /var/agentx which is only readable and executable by root. So even if you set the correct permissions of the socket /var/agentx/master the mongodb user can't access it.

You would need to run:

chmod 755 /var/agentx

Please remember that MongoDB on RHEL/Suse/Generic linux uses the mongod user while on Debian/Ubuntu it uses the mongodb user by default. We need to deal with this in the documentation too.

Kind regards,
Emilio

Comment by Brian Moss [ 24/Nov/17 ]

PR: https://github.com/mongodb/docs/pull/3117

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