Configurer snmp sur un ESX
Configuration snmp
Installation des packages snmp :
[root@a-wing root]# yum install net-snmp
Configurer le fichier /etc/snmp/snmpd.conf
[root@a-wing root]# cat /etc/snmp/snmpd.conf # Sample snmpd.conf containing VMware MIB module entries. # This is a simple snmpd.conf that may help you test SNMP. # It is not recommended for production use. Consult the # snmpd.conf(5) man pages to set up a secure installation. syscontact adaadmins <adaadmins@peltier-net.fr> syslocation baie_ada rocommunity public trapcommunity public trapsink adacentreon com2sec notConfigUser default public group notConfigGroup v1 notConfigUser group notConfigGroup v2c notConfigUser view systemview included .1.3.6.1.2.1.1 access notConfigGroup "" any noauth exact systemview none none # VMware MIB modules. To enable/disable VMware MIB items # add/remove the following entries. dlmod SNMPESX /usr/lib/vmware/snmp/libSNMPESX.so MIBS=ALL # Allow Systems Management Data Engine SNMP to connect to snmpd using SMUX smuxpeer .1.3.6.1.4.1.674.10892.1 [root@a-wing root]#
Configurer le firewall de l’ESX pour le protocole snmp :
[root@a-wing root]# esxcfg-firewall -e snmpd
Pour connaitre le status du protocole snmp sur le firewall :
[root@a-wing root]# Esxcfg-firewall -q snmpd
Configurer le service snmp au démarrage :
[root@a-wing root]# chkconfig add snmpd [root@a-wing root]# chkconfig snmpd on
Lancer le service snmp :
[root@a-wing root]# /etc/init.d/snmpd start
0 commentaire