Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11410

Add RHEL support to subagent config file

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.4
    • Affects Version/s: 2.5.3
    • Component/s: Diagnostics
    • Labels:
    • Environment:
      * EC2, RHEL 6.4 (ami-a25415cb), m1.xlarge, standalone mongod, default net-snmp version 5.5 (looks to be the same version that comes with amazon linux)
    • Linux
    • Hide

      0.) Install standard pre-req packages for SNMP.
      1.) Copy mongod.conf.subagent to /etc/snmp/mongod.conf
      2.) Start mongod with --snmp-subagent
      3.) snmpwalk e.g. snmpwalk -m MONGO-MIB -v 2c -c mongodb 127.0.0.1 1.3.6.1.4.1.34601 and get error: MONGO-MIB::mongodb = No Such Object available on this agent at this OID

      Show
      0.) Install standard pre-req packages for SNMP. 1.) Copy mongod.conf.subagent to /etc/snmp/mongod.conf 2.) Start mongod with --snmp-subagent 3.) snmpwalk e.g. snmpwalk -m MONGO-MIB -v 2c -c mongodb 127.0.0.1 1.3.6.1.4.1.34601 and get error: MONGO-MIB::mongodb = No Such Object available on this agent at this OID

      The current mongod.conf.subagent config doesn't work when running --snmp-subagent on RHEL. As per the docs (https://access.redhat.com/site/documentation/en-US/Red_Hat_Directory_Server/8.1/html/Administration_Guide/Monitoring_DS_Using_SNMP-Configuring_the_Subagent.html), if I edit /etc/snmp/mongod.conf and add the below lines to specify how to talk to the snmp master, and then restart mongod and snmpwalk, I successfully see values for the walk.

      Current config settings
      #agentXSocket tcp:localhost:707
      #agentXSocket /tmp/agentx/master

      Add below for RHEL
      #agentx-master localhost:707
      agentx-master /var/snmp/agentx

            Assignee:
            james.wahlin@mongodb.com James Wahlin
            Reporter:
            cadran.cowansage Cadran Cowansage
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: