{{tag>SNMP Supervision}}
= Monitoring procedure Centreon SNMP RedHat
Source http://centreon/centreon/main.php?p=65099&min=1&slug=operatingsystems-linux-snmp
== Prerequisites
This chapter describes the prerequisites installation needed by plugins to run.
Centreon Plugin
Install this plugin on each needed poller:
yum install centreon-plugin-Operatingsystems-Linux-Snmp
Prerequistes concerns a RHEL like distribution, you may need to adapt it if you run an other Linux distro.
Be sure to have with you the following information:
* Read-Only SNMP community
* IP Address of the monitoring server
Install the SNMP service
With the root user, install the following package and its dependencies:
yum install net-snmp
Configure SNMP on your server
Open the file /etc/snmp/snmpd.conf with your favorite text editor
Modify the following lines (Replace the ):
com2sec notConfigUser default public
Comment all the lines which begin by view:
view systemview included .1.3.6.1.2
view systemview included .1.3.6.1.2.1.25
Just after the previous lines, add the following line:
view systemview included .1
save the file
start the snmp service:
service snmpd start
Add SNMP to booting services:
chkconfig --add snmpd; chkconfig --level 2345 snmpd on
Check your SNMP installation
snmpwalk -v 1 -c .1.3.6.1.2.1.1.1
You should get a response looking like the following:
SNMPv2-MIB::sysDescr.0 = STRING: Linux 2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:39:21 EDT 2009 i686
SNMP Permissions
You need a SNMP read access on following OIDs:
HOST-RESOURCES-MIB: .1.3.6.1.2.1.25 (cpu, uptime, storage, process)
UCD-SNMP-MIB: .1.3.6.1.4.1.2021 (swap, memory, inodes, diskio)
IF-MIB: .1.3.6.1.2.1.2 (traffic)
Troubleshooting
Read Troubleshooting SNMP