WEIGEL FORUM
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Debian SNMP setup

    Linux
    1
    1
    24
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DerMeldosD
      DerMeldos
      last edited by DerMeldos

      Install the service

      apt-get install snmpd
      

      Config the service

      mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.ori
      

      create config file

      nano /etc/snmp/snmpd.conf
      

      edit config

      #Listen on all interfaces, IPv4 only
      agentAddress udp:161
      #ACCESS CONTROL
      view   all  included   .1.3.6.1.2.1.1
      view   all  included   .1.3.6.1.2.1.25.1
      #SNMP v2 (Read only) with community "public" restricted to Network
      #Please change IP 192.168.1.0/24 to your Network.
      rocommunity public 10.73.0.0/16
      #Run as root
      agentuser  root
      

      ggf firewall rule

      iptables -A INPUT -s 192.168.0.0/16 -p udp --dport 161 -j ACCEPT
      

      service starten und auto starten

      service snmpd restart
      systemctl enable snmpd
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors