Wednesday, May 15, 2013

Configure SNMP on SuSE 11

Reference: http://forums.cacti.net/viewtopic.php?t=15353





  • RedHat / Fedora / CentOS : install the net-snmp, net-snmp-libs and net-snmp-utils packages





  • Debian / Ubuntu: install the libsnmp-base, libsnmp5, snmp and snmpd packages
  • SuSE : install the net-snmp package



  • # vi /etc/snmp/snmpd.conf

    # Reference http://forums.cacti.net/viewtopic.php?t=15353

    syslocation NigraFalls
    syscontact Sysadmin (sysadmin@mycompany.com)

    # SNMP v1, v2c
    #rocommunity public 127.0.0.1
    #rocommunity cacti 37.15.10.143
    #agentaddress tcp:161

    # SNMP v3

    createUser cacti MD5 cactiPwd DES
    group groupv3             usm      cacti
    view    all included   .iso      80
    access groupv3         ""        any       auth      exact    all         all        all




    # service snmpd restart

    To test snmp v3
    # snmpget -v 3 -l AuthNoPriv -u cacti -A <password> 37.15.10.143 sysName.0
    SNMPv2-MIB::sysName.0 = STRING: client01

    No comments:

    Post a Comment