University at Buffalo - The State University of New York
Skip to Content

Configuring SNMP Daemon for Fedora Linux

Learn how to configure SNMP daemon for Fedora Linux.

Installing

Install the net-snmp daemon:

                 [hostname] ~% sudo yum install net-snmp

Configuring

  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.
      # sec.name source community
      com2sec notConfigName default
      public
    • 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 128.205.1.49 -j ACCEPT
    iptables -A INPUT -p udp -s 128.205.10.19 -j ACCEPT
    iptables -A INPUT -p udp -s 128.205.10.74 -j ACCEPT
    iptables -A INPUT -p udp -s 128.205.10.83 -j ACCEPT

  5. Verify your SNMP configuration is correct by querying it with the UB SNMP Check Utility.

 

Contact the UBIT Help Center

Have a UBITName? You may also use the UBIT Help Center Online (login required).

(Required)
 
 
(xxx) xxx-xxxx
(Required)
Use your @buffalo.edu email, if known
 
(Required)