Следите за новостями русскоязычного сообщества Ubuntu в Twitter-ленте @ubuntu_ru_loco
0 Пользователей и 1 Гость просматривают эту тему.
viniamin, а файл конфигурации существует?
sudo snmpwalk -v 2c -c public localhost
viniamin, а что говоритКод: [Выделить]sudo snmpwalk -v 2c -c public localhost
Timeout: No Response from localhost
cat /etc/snmp/snmpd.conf
################################################################################# EXTENDING THE AGENT### Arbitrary extension commands# extend test1 /bin/echo Hello, world! extend-sh test2 echo Hello, world! ; echo Hi there ; exit 35#extend-sh test3 /bin/sh /tmp/shtest# Note that this last entry requires the script '/tmp/shtest' to be created first,# containing the same three shell commands, before the line is uncommented# Walk the NET-SNMP-EXTEND-MIB tables (nsExtendConfigTable, nsExtendOutput1Table# and nsExtendOutput2Table) to see the resulting output# Note that the "extend" directive supercedes the previous "exec" and "sh" directives# However, walking the UCD-SNMP-MIB::extTable should still returns the same output,# as well as the fuller results in the above tables.## "Pass-through" MIB extension command##pass .1.3.6.1.4.1.8072.2.255 /bin/sh PREFIX/local/passtest#pass .1.3.6.1.4.1.8072.2.255 /usr/bin/perl PREFIX/local/passtest.pl# Note that this requires one of the two 'passtest' scripts to be installed first,# before the appropriate line is uncommented.# These scripts can be found in the 'local' directory of the source distribution,# and are not installed automatically.# Walk the NET-SNMP-PASS-MIB::netSnmpPassExamples subtree to see the resulting output## AgentX Sub-agents# # Run as an AgentX master agent master agentx # Listen for network connections (from localhost) # rather than the default named socket /var/agentx/master#agentXSocket tcp:localhost:705
Я так понимаю в логи нужно на аркане тащить, да?
Mar 26 19:44:52 [3487]: error on subcontainer 'ia_addr' insert (-1)Mar 26 19:44:52 [3487]: error on subcontainer 'ia_addr' insert (-1)Mar 26 19:44:52 [3487]: /etc/snmp/snmpd.conf: line 145: Warning: Unknown token: defaultMonitors.Mar 26 19:44:52 [3487]: /etc/snmp/snmpd.conf: line 147: Warning: Unknown token: linkUpDownNotifications.Mar 26 19:44:52 [3487]: Turning on AgentX master support.Mar 26 19:44:52 [3489]: /run/snmpd.pid: No such file or directoryMar 30 10:17:10 [19333]: error on subcontainer 'ia_addr' insert (-1)Mar 30 10:17:10 [19333]: error on subcontainer 'ia_addr' insert (-1)Mar 30 10:17:10 [19333]: /etc/snmp/snmpd.conf: line 145: Warning: Unknown token: defaultMonitors.Mar 30 10:17:10 [19333]: /etc/snmp/snmpd.conf: line 147: Warning: Unknown token: linkUpDownNotifications.Mar 30 10:17:10 [19333]: Turning on AgentX master support.Mar 30 10:17:10 [19335]: /run/snmpd.pid: No such file or directoryMar 30 10:17:36 [19337]: error on subcontainer 'ia_addr' insert (-1)Mar 30 10:17:36 [19337]: error on subcontainer 'ia_addr' insert (-1)Mar 30 10:17:36 [19337]: /etc/snmp/snmpd.conf: line 145: Warning: Unknown token: defaultMonitors.Mar 30 10:17:36 [19337]: /etc/snmp/snmpd.conf: line 147: Warning: Unknown token: linkUpDownNotifications.Mar 30 10:17:36 [19337]: Turning on AgentX master support.Mar 30 10:17:36 [19339]: /run/snmpd.pid: No such file or directoryMar 30 12:18:42 [21093]: error on subcontainer 'ia_addr' insert (-1)Mar 30 12:18:42 [21093]: error on subcontainer 'ia_addr' insert (-1)Mar 30 12:18:42 [21093]: /etc/snmp/snmpd.conf: line 145: Warning: Unknown token: defaultMonitors.Mar 30 12:18:42 [21093]: /etc/snmp/snmpd.conf: line 147: Warning: Unknown token: linkUpDownNotifications.Mar 30 12:18:42 [21093]: Turning on AgentX master support.Mar 30 12:18:42 [21095]: /run/snmpd.pid: No such file or directoryMar 30 12:31:45 [21919]: error on subcontainer 'ia_addr' insert (-1)Mar 30 12:31:45 [21919]: error on subcontainer 'ia_addr' insert (-1)Mar 30 12:31:45 [21919]: Turning on AgentX master support.Mar 30 12:31:45 [21919]: Warning: no access control information configured.#012 (Config search path: /etc/snmp:/usr/share/snmp:/usr/lib/i386-linux-gnu/snmp:/root/.snmp)#012 It's unlikely this agent can serve any useMar 30 12:31:45 [21921]: /run/snmpd.pid: No such file or directoryMar 30 12:33:21 [21943]: error on subcontainer 'ia_addr' insert (-1)Mar 30 12:33:21 [21943]: error on subcontainer 'ia_addr' insert (-1)Mar 30 12:33:21 [21943]: Turning on AgentX master support.Mar 30 12:33:21 [21943]: Warning: no access control information configured.#012 (Config search path: /etc/snmp:/usr/share/snmp:/usr/lib/i386-linux-gnu/snmp:/root/.snmp)#012 It's unlikely this agent can serve any useMar 30 12:33:21 [21945]: /run/snmpd.pid: No such file or directoryMar 30 12:33:24 [21947]: error on subcontainer 'ia_addr' insert (-1)Mar 30 12:33:24 [21947]: error on subcontainer 'ia_addr' insert (-1)Mar 30 12:33:24 [21947]: Turning on AgentX master support.Mar 30 12:33:24 [21947]: Warning: no access control information configured.#012 (Config search path: /etc/snmp:/usr/share/snmp:/usr/lib/i386-linux-gnu/snmp:/root/.snmp)#012 It's unlikely this agent can serve any useMar 30 12:33:24 [21949]: /run/snmpd.pid: No such file or directory [21953]: error on subcontainer 'ia_addr' insert (-1) [21953]: error on subcontainer 'ia_addr' insert (-1)
пропали все..
Страница сгенерирована за 0.056 секунд. Запросов: 25.