После серии попыток настроить работу данного сервиса аналогично рекомендациям мануалов и статей, к сожалению, не пришел к положительному результату.
SNMP настраивается для работы в Nagios. Система - Ubuntu Server 10.04.
Что имеется:
# cat /etc/snmp/snmpd.conf
rocommunity public
# cat /etc/default/snmpd
# This file controls the activity of snmpd and snmptrapd
# Don't load any MIBs by default.
# You might comment this lines once you have the MIBs downloaded.
export MIBS=
# snmpd control (yes means start daemon).
SNMPDRUN=yes
# snmpd options (use syslog, close stdin/out/err).
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf'
# snmptrapd control (yes means start daemon). As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run. See snmpd.conf(5) for how to do this.
TRAPDRUN=no
# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
# create symlink on Debian legacy location to official RFC path
SNMPDCOMPAT=yes
Сам выхлоп:
# /usr/local/nagios/libexec/check_snmp -H x.x.x.x -o 1.3.6.1.4.1.9.9.13.1.3.1.6.1 -C public
External command error: Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.9.9.13.1.3.1.6.1
Просьба помочь.
Пользователь решил продолжить мысль [time]Mon Apr 4 15:29:29 2011[/time]:
Исчо вот:
snmpwalk -v 2c -c public x.x.x.x 1.3.6.1.2.1.2.2.1.2.40
IF-MIB::ifDescr.27 = No more variables left in this MIB View (It is past the end of the MIB tree)
Пользователь решил продолжить мысль [time]Mon Apr 4 15:41:53 2011[/time]:
При это, если я делаю snmpwalk с другой Linux-овой машины, то машина с Ubuntu на запрос отвечает:
#snmpwalk -v 2c -c public y.y.y.y sysUpTime
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (27980530) 3 days, 5:43:25.30А вот по OID не хочет.