Настраиваем SNMP на Linux Debian, Ubuntu или Redhat
Настраиваем SNMP на Linux Debian, Ubuntu или Redhat
Устанавливаем snmp
Debian/Ubuntu
apt-get install snmpd |
RedHat/Centos
yum install net-snmp |
Проверяем, что SNMPDOPTS строка в /etc/default/snmpd выглядит следующим образом:
Ubuntu/Debian
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -p /var/run/snmpd.pid' |
Проверяем, что строка OPTIONS в /etc/sysconfig/snmpd выглядит следующим образом:
Redhat/Centos
OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid" |
Заменяем стандартный конфиг /etc/snmp/snmpd.conf на свой и меняем community, location и contact
com2sec readonly default <COMMUNITY> |
Скачиваем distro скрипт
cd /tmp |
Перезагружаем SNMPD
/etc/init.d/snmpd restart |