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 root, use the yum command to install the ksplice-snmp-plugin package on the system:

    # yum -y install ksplice-snmp-plugin
  3. (Optional) If you want to be able 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 entries in this file on an Oracle Linux 6 system might look:

    # 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 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:

    # service snmpd restart

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