3.9.1 Installing and Configuring the SNMP Plugin

The following prerequisites apply to the system that you want to monitor:

  • The net-snmp package must be installed.

  • The net-snmp-utils package must be installed if you want to be able to test the configuration using the snmpwalk command.

  • The snmpd service must be configured to start automatically.

  • SELinux must either be disabled or set to permissive mode on the system.

To install and configure the SNMP plugin on a system that you want to monitor using SNMP, follow these steps:

  1. Subscribe the system to the appropriate Ksplice channel for the installed Oracle Linux distribution and system architecture, for example, ol6_x86_64_ksplice for Oracle Linux 6 on x86_64.

  2. As the root use, install the ksplice-snmp-plugin package on the system:

    # yum -y install ksplice-snmp-plugin
  3. (Optional) If you plan to test the configuration by using the snmpwalk command, install the net-snmp-utils package as follows:

    # yum -y install net-snmp-utils
  4. Configure the system to use the SNMP plugin by editing the /etc/snmp/snmpd.conf file.

    The following example shows how the entries in this file might look on an Oracle Linux 6 system:

    # Setting up permissions
    # ======================
    com2sec local localhost public
    com2sec mynet source public
    
    group local v1 local
    group local v2c local
    group local usm local
    group mynet v1  mynet
    group mynet v2c mynet
    group mynet usm mynet
    
    view all included .1 80
    
    access mynet "" any noauth exact all none none
    access local "" any noauth exact all all none
    
    syslocation Oracle Linux 6
    syscontact sysadmin <root@localhost>
    
    # Load the plugin
    # ===============
    dlmod kspliceUptrack /usr/lib/ksplice-snmp/kspliceUptrack.so
    1. In the com2sec mynet community entry, replace source with the IP address or resolvable host name of the server that hosts the SNMP monitoring software, or with a subnet address represented as IP_address/netmask, for example, com2sec mynet 192.168.10.0/24 private.

      For IPv6 configuration, specify an IPv6 address and netmask to a com2sec6 mynet community entry, for example, com2sec6 mynet fec0::/64 private.

    2. In the syslocation entry, replace the argument for the identifier of the system being monitored.

    3. In the dlmod entry that loads the kspliceUptrack.so plugin, replace the lib path element with lib on a 32-bit system and lib64 on a 64-bit system.

    This sample configuration file is suitable for the purposes of testing.

  5. Restart the SNMP service:

    # systemctl restart snmpd

    For Oracle Linux 5 and Oracle Linux 6 clients, use the following command:

    # service snmpd restart

For information about configuring SNMP, refer to the documentation at http://www.net-snmp.org/docs/readmefiles.html. See also the snmpd(8) and snmpd.conf(5) manual pages.