Configuring SNMP Daemon for Fedora Linux

Learn how to configure SNMP daemon for Fedora Linux.


Install the net-snmp daemon:

                 [hostname] ~% sudo yum install net-snmp


  1. Configure preferences.
    • [hostname] ~% sudo vi /etc/snmp/snmpd.conf
      Leave the community name set to the default public. Security will be sufficient because you will restrict SNMP UDP traffic to the OSS Network Management Service (NMS) servers in the firewall configuration step, below.
      # source community
      com2sec notConfigName default
    • Set sysdescr to a description of the system, e.g., NASA World Wind Server
    • Set syscontact to a value in the Monitored Devices web page System Contacts section, e.g., oss-unix
    • Set syslocation to the room and building where the device is located, e.g., 244 Computing Center
  2. Configure the SNMP daemon to start at boot time.
    • [hostname] ~% sudo chkconfig snmpd on
  3. Activate the daemon.
    • [hostname] ~% sudo /etc/init.d/snmpd start
  4. If the monitored device is running a firewall (as it should), permit SNMP monitoring through the firewall. Configure these rules in your firewall configuration file to allow our monitoring servers to communicate with your device. This example uses iptables syntax, but syntax will vary depending on your choice of firewall:

    # Network Monitoring (snmp)
    iptables -A INPUT -p udp -s -j ACCEPT
    iptables -A INPUT -p udp -s -j ACCEPT
    iptables -A INPUT -p udp -s -j ACCEPT
    iptables -A INPUT -p udp -s -j ACCEPT

Still need help?

Contact the UBIT Help Center.