Pivotal Knowledge Base

Follow

HowTo - Restart and verify SNMP services on DCA

Purpose

In some cases there might be a need to restart the snmp services on the DCA. this could be because the dca_check is reporting errors or Greenplum command center is not able to monitor the health of the cluster. This article provides steps to restart and verify snmpd configuration settings

Solution

Basic need to know about the /etc/snmp/snmpd.conf

The first line in the snmpd.conf is probably the most important as it is the one that gets all of the customer specific customizations

com2sec internalUser 172.28.0.0/20 public

In the above line users typically change the community string, "public" by default, to something specific to their organization. The second component in this line which might be changed is the ip subnet range ( set to "172.28.0.0/20" in this example). This subnet dictates what network interfaces the snmp service will allow requests from. It is important both the community string and ip subnet settings match Greenplum Command Centers configuration for proper health monitoring

-- DCA V1

How to restart services

  1. dataeng loads the snmpd.conf and binds all the DELL hardware MIBs
    /etc/init.d/dataeng restart
  2. snmpd is the generic snmp service that launches the dca subagent and binds all the DCA MIBs
    /etc/init.d/snmpd restart

Verfiication

  • Expected processes
    root      2870 15143  0 Aug15 ?        00:26:12 /opt/dca/bin/dca_snmpagent
    root      7396     1  0 Jul02 ?        09:56:02 /opt/dell/srvadmin/sbin/dsm_sa_snmpd
    root     15143     1  0 Aug15 ?        05:16:25 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid
  • Test the dataneg DELL specific MIBs
    snmpwalk -v 2c -c public sdw1 .1.3.6.1.4.1.674.10892.1
    
    SNMPv2-SMI::enterprises.674.10892.1.1.1.0 = INTEGER: 5
    SNMPv2-SMI::enterprises.674.10892.1.1.2.0 = INTEGER: 9
    SNMPv2-SMI::enterprises.674.10892.1.1.3.0 = INTEGER: 5
    SNMPv2-SMI::enterprises.674.10892.1.100.1.0 = STRING: "Server Administrator"
    SNMPv2-SMI::enterprises.674.10892.1.100.2.0 = STRING: "5.9.5"
    SNMPv2-SMI::enterprises.674.10892.1.100.3.0 = INTEGER: 1
    SNMPv2-SMI::enterprises.674.10892.1.100.4.0 = STRING: "Management software for Dell systems."
    .
    .
    .
    
  • Test the dca subagent
    snmpwalk -v 2c -c public sdw1 .1.3.6.1.4.1.1139.23.1
    
    SNMPv2-SMI::enterprises.1139.23.1.2.1.1 = Timeticks: (1415358298) 163 days, 19:33:02.98
    SNMPv2-SMI::enterprises.1139.23.1.2.1.2 = Timeticks: (0) 0:00:00.00
    SNMPv2-SMI::enterprises.1139.23.1.2.1.3 = INTEGER: 4
    SNMPv2-SMI::enterprises.1139.23.1.2.1.4 = INTEGER: 0
    SNMPv2-SMI::enterprises.1139.23.1.2.1.5 = STRING: "84:2B:2B:64:6B:83"
    SNMPv2-SMI::enterprises.1139.23.1.2.1.6 = INTEGER: 0
    SNMPv2-SMI::enterprises.1139.23.1.2.1.7.2 = INTEGER: 0
    SNMPv2-SMI::enterprises.1139.23.1.2.1.9 = ""
    SNMPv2-SMI::enterprises.1139.23.1.2.1.9.1 = INTEGER: 1
    SNMPv2-SMI::enterprises.1139.23.1.2.1.9.2 = STRING: "core.postgres.22444.1415354314.11.500.500, core.postgres.22545.1415354465.11.500.500, core.postgres.22646.1415354556.11.500.500, core.postgres.25354.1415358297.11.500.500"
    SNMPv2-SMI::enterprises.1139.23.1.2.1.9.3 = ""

-- DCA V2

How to restart services

NOTE: the lsi_mrdsnmpd daemon will attempt to start its own snmpd agent if one is not already running.  This will casue subsequent restarts of the snmpd to fail as this rogue daemon is has no pid file.  Please make sure snmpd is up and running healthy before restarting lsi_mrdsnmpd daemon

  1. lsi_mrdsnmpd loads the snmpd.conf and binds all the INTEL hardware MIBs
    /etc/init.d/lsi_mrdsnmpd  restart
  2. snmpd launches the dca subagent and binds all of the DCA MIBs
    /etc/init.d/snmpd restart

Verification

  • Expected Process List
    root       3729      1  0 Oct03 ?        10:20:52 /usr/sbin/lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf
    root     304971      1  0 Oct10 ?        02:00:58 /usr/sbin/snmpd -LS0-6d -Lf /dev/null -p /var/run/snmpd.pid
    root     305055 304971  0 Oct10 ?        00:11:36 /opt/dca/bin/dca_subagent
  • Test the lsi_mrdsnmp INTEL Hardware MIBs
     snmpwalk -v 2c -c public sdw1 .1.3.6.1.4.1.3582
    
    SNMPv2-SMI::enterprises.3582.4.1.1.0 = STRING: "sdw1.gphd.local"
    SNMPv2-SMI::enterprises.3582.4.1.2.0 = STRING: "Red Hat Enterprise Linux Server release 6.4 (Santiago)x86_64"
    SNMPv2-SMI::enterprises.3582.4.1.3.1.0 = STRING: "1.24-22"
    SNMPv2-SMI::enterprises.3582.4.1.3.2.0 = STRING: "lsi_mrdsnmpagent"
    SNMPv2-SMI::enterprises.3582.4.1.3.3.0 = STRING: "3.17.0.2"
    SNMPv2-SMI::enterprises.3582.4.1.3.4.0 = STRING: "26rd July, 2010"
    SNMPv2-SMI::enterprises.3582.4.1.4.1.1.0 = INTEGER: 2
    SNMPv2-SMI::enterprises.3582.4.1.4.1.2.1.1.0 = INTEGER: 0
    SNMPv2-SMI::enterprises.3582.4.1.4.1.2.1.1.1 = INTEGER: 1
    SNMPv2-SMI::enterprises.3582.4.1.4.1.2.1.2.0 = INTEGER: 30
    
  • Test the dca subagent
    snmpwalk -v 2c -c public sdw1 .1.3.6.1.4.1.1139.23.1
    
    SNMPv2-SMI::enterprises.1139.23.1.2.1.1 = Timeticks: (1414541943) 163 days, 17:16:59.43
    SNMPv2-SMI::enterprises.1139.23.1.2.1.2 = Timeticks: (0) 0:00:00.00
    SNMPv2-SMI::enterprises.1139.23.1.2.1.3 = INTEGER: 3
    SNMPv2-SMI::enterprises.1139.23.1.2.1.4 = INTEGER: 0
    SNMPv2-SMI::enterprises.1139.23.1.2.1.5 = STRING: "00:1E:67:78:F9:09"
    SNMPv2-SMI::enterprises.1139.23.1.2.1.6 = INTEGER: 0
    SNMPv2-SMI::enterprises.1139.23.1.2.1.7.1.1.1 = STRING: "bond0"
    SNMPv2-SMI::enterprises.1139.23.1.2.1.7.1.1.2 = ""
    SNMPv2-SMI::enterprises.1139.23.1.2.1.7.1.1.3.1 = STRING: "eth4"
    SNMPv2-SMI::enterprises.1139.23.1.2.1.7.1.1.3.2 = STRING: "eth5"
    SNMPv2-SMI::enterprises.1139.23.1.2.1.7.1.1.4.1 = STRING: "up"
    SNMPv2-SMI::enterprises.1139.23.1.2.1.7.1.1.4.2 = STRING: "up"
    SNMPv2-SMI::enterprises.1139.23.1.2.1.7.2 = INTEGER: 1
    SNMPv2-SMI::enterprises.1139.23.1.2.1.8 = ""
    

Comments

Powered by Zendesk