LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SNMP does not work on Ubuntu (https://www.linuxquestions.org/questions/linux-networking-3/snmp-does-not-work-on-ubuntu-4175536471/)

Jerenk 03-11-2015 11:39 PM

SNMP does not work on Ubuntu
 
Hi,

I've try to install and enable SNMP for testing purpose by following guide from this website

I've follow every step shown but when I run a command

Code:

snmpwalk -Os -c mycommunityro -v 1 localhost system
the return result is

Code:

End of MIB
vim /etc/default/snmpd

Code:

# 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,mteTrigger,mteTriggerConf -p /var/run/snmpd.pid'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'

# 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'

vim /etc/snmp/snmpd.conf

Code:

rocommunity mycommunityro default system
rwcommunity mycommunitywr default system
syslocation Testing
syscontact Testing


Habitual 03-12-2015 08:46 AM

Welcome to LQ!
Have a look at http://www.linuxquestions.org/questi...6/#post4750830


All times are GMT -5. The time now is 02:55 PM.