How to configure SNMP on Ubuntu Server for Zenoss Monitoring

So there isn’t any straightforward documents on the web as to how to configure a Ubuntu Server to setup SNMP so the device can be monitored in Zenoss Core using the LinuxMonitor zenpack.  I tested this on systems running Ubuntu 10.04 and Zenoss 3.0.1.

  • sudo apt-get install snmpd snmp
  • sudo vi /etc/snmp/snmpd.conf
  • Delete everything replace for following line, this is read only of everything and restrict access so that only systems within you IP subnet can access this.

    rocommunity public

  • sudo vi /etc/default/snmpd
  • Change the line ending with and change it to, so it should read

    SNMPDOPTS=’-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/′

  • sudo /etc/init.d/snmpd restart
  • Add the system to your Zenoss console under Server/Linux
  • If you add the system to your Zenoss console and you get a SNMP timeout error make sure you check your /etc/default/snmpd file.  The default configuration is somewhat broken and you need to make the change in order to open up SNMP to anything other than localhost.

    Tags: , , , ,

    This entry was posted on Saturday, October 2nd, 2010 at 8:09 pm and is filed under OSS, Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

    Leave a Reply