
Настраиваем SNMP на Linux Debian, Ubuntu или Redhat

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