Решение:
1.Необходимо установить net-snmp и net-snmp-utils
для CentOS выполняем
yum install net-snmp net-snmp-devel
для Debian выполняем
aptitude install snmp snmpd
2.
net-snmp-config --create-snmpv3-user eagle -A PASSHERE -X PASSHERE- a MD5 -x DES eagle
passphrase - <PASSHERE>
3 Для debian конфиг выглядит примерно так:
# cat /etc/snmp/snmpd.conf ########################## # SECTION: support.by # ########################## syslocation "support.by" syscontact "admin@support.by; iva@support.by" 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
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