Outils pour utilisateurs

Outils du site


tech:monitoring_procedure_centreon_snmp_redhat

Monitoring procedure Centreon SNMP RedHat

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 <SNMPCOMMUNITY>):

/etc/snmp/snmpd.conf #com2sec notConfigUser default <SNMPCOMMUNITY
com2sec notConfigUser default public

Comment all the lines which begin by view:

/etc/snmp/snmpd.conf
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:

/etc/snmp/snmpd.conf
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 <SNMPCOMMUNITY> <IPSERVER> .1.3.6.1.2.1.1.1

You should get a response looking like the following:

SNMPv2-MIB::sysDescr.0 = STRING: Linux <SERVER> 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

tech/monitoring_procedure_centreon_snmp_redhat.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki