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:
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.As
root
, use the yum command to install theksplice-snmp-plugin
package on the system:#
yum -y install ksplice-snmp-plugin
(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
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 syslocationOracle Linux 6
syscontact sysadmin <root@localhost> # Load the plugin # =============== dlmod kspliceUptrack /usr/lib
/ksplice-snmp/kspliceUptrack.soIn the
com2sec mynet
community entry, replacesource
with the IP address or resolvable host name of the server that hosts the SNMP monitoring software, or with a subnet address represented asIP_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
.In the
syslocation
entry, replace the argument for the identifier of the system being monitored.In the
dlmod
entry that loads thekspliceUptrack.so
plugin, replace thelib
path element withlib
on a 32-bit system andlib64
on a 64-bit system.
This sample configuration file is suitable for the purposes of testing.
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.