-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
monitor-with-snmp.txt
74 lines (51 loc) · 2.01 KB
/
monitor-with-snmp.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
==================================
Monitor MongoDB With SNMP on Linux
==================================
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: singlecol
.. admonition:: Enterprise Feature
SNMP is only available in `MongoDB Enterprise
<http://www.mongodb.com/products/mongodb-enterprise-advanced?tck=docs_server>`_.
.. |mongod-program| replace:: :binary:`~bin.mongod`
Overview
--------
MongoDB Enterprise can provide database metrics via SNMP, in
support of centralized data collection and aggregation. This procedure
explains the setup and configuration of a |mongod-program| instance
as an SNMP subagent, as well as initializing and testing of SNMP
support with MongoDB Enterprise.
.. seealso:: :doc:`/tutorial/troubleshoot-snmp` and
:doc:`/tutorial/monitor-with-snmp-on-windows` for
complete instructions on using MongoDB with SNMP on Windows
systems.
Considerations
--------------
- SNMP support is only available in :binary:`~bin.mongod`.
Other MongoDB tools such as :binary:`~bin.mongos` do not support SNMP.
- :binary:`~bin.mongod` does not support the use of SNMP traps.
Configuration Files
-------------------
.. include:: /includes/fact-snmp-configuration-files.rst
Procedure
---------
.. include:: /includes/steps/monitor-with-snmp.rst
Optional: Run MongoDB as SNMP Master
------------------------------------
.. include:: /includes/fact-snmp-run-mongodb-as-snmp-master.rst
.. code-block:: sh
cp mongod.conf.master /etc/snmp/mongod.conf
.. note::
To bind your master to a non-localhost IP address, add that IP
address to the ``agentaddress`` field in the
``/etc/snmp/mongod.conf`` file, and update the appropriate network
security ACLs to permit a valid address range. An address
range of 10.0.0.0/8 with a security name of "mynetwork" has been
provided in the master configuration file as an example.
Then, start |mongod-program| with the :setting:`snmp-master`
option:
.. code-block:: sh
mongod --snmp-master