User Tools

Site Tools


shared_hosting:snmp_client_install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
shared_hosting:snmp_client_install [2010/11/10 07:40]
slayer
shared_hosting:snmp_client_install [2010/11/10 07:40] (current)
slayer
Line 1: Line 1:
 +Решение:​
 +
 +1.Необходимо установить net-snmp и net-snmp-utils
 +
 +для CentOS выполняем <​code>​yum install net-snmp net-snmp-devel</​code>​
 +для Debian выполняем <​code>​aptitude install snmp snmpd</​code>​
 +2. 
 +
 +<​code>​
 +net-snmp-config --create-snmpv3-user eagle -A PASSHERE -X  PASSHERE- a MD5 -x DES eagle
 +</​code>​
 +
 +passphrase - <​PASSHERE>​
 +
 +3 Для debian конфиг выглядит примерно так: ​
 +
 +<​code>​
 +# cat /​etc/​snmp/​snmpd.conf
 +
 +##########################​
 +# SECTION: support.by ​   #
 +##########################​
 +syslocation "​support.by"​
 +syscontact "​[email protected];​ [email protected]"​
 +sysservices 79
 +
 +#################################​
 +# SECTION: Access Control Setup #
 +#################################​
 +rouser eagle auth
 +
 +
 +com2sec local 127.0.0.1/​32 public
 +com2sec local 212.98.168.34/​32 PASSHERE
 +
 +group MyROGroup v1 local
 +group MyROGroup v2c local
 +group MyROGroup usm local
 +
 +view all included .1 80
 +
 +access MyROGroup ""​ any noauth exact all none none
 +</​code>​
 +
 +4. Изменить в файле /​etc/​default/​snmpd изменить 127.0.0.1 на 0.0.0.0
 +
 +5. service snmpd restart or /​etc/​init.d/​snmpd restart
 +
 +
 +/​usr/​lib/​nagios/​plugins/​check_snmp_process.pl -t 20  -l eagle -x PASSHERE -X PASSHERE -L md5,​des ​ -n httpd -H 1.2.3.4
  
shared_hosting/snmp_client_install.txt · Last modified: 2010/11/10 07:40 by slayer