If you would like to monitor a server running freebsd/linux/solaris, follow these instructions to get snmpd up and running so you can then use MRTG to see the various stats available.
(I am updating these docs to reflect some changes with snmpd, so please email me if you find problems).

  1. The following items are generic to any *NIX. For more system-specific info, click on your flavor:
  2. You need to obtain the source code for an snmp daemon. I recommend net-snmp (formerly ucd-snmp). You can get it from Sourceforge's net-snmp Project Home Page
  3. Unpack the source:
  4. go into the source directory:
  5. Read all the documentation (in a perfect world, maybe). In all seriousness, at the very least read the INSTALL file, and the FAQ file before installing.

  6. Install ucd-snmp - (you will be prompted for a few things during configure, such as Location, syscontact, etc. Answer these appropriately): (If you get any errors while doing these steps, consult the documentation that came with ucd-snmp)

  7. Build an snmpd.conf file - if you want to know the specifics of the file, look at EXAMPLE.conf in the source directory or look at http://net-snmp.sourceforge.net/#Documentation. Otherwise, feel free to use my example here:
    		com2sec local     ip.of.mrtg.server(or localhost if snmpd and mrtg are on the same server)        community-string-you-want
    		group MyROGroup v1         local
    		group MyROGroup v2c        local
    		group MyROGroup usm        local
    		view all    included  .1                               80
    		access MyROGroup ""      any       noauth    exact  all    none   none
    		
  8. Start snmpd using the new snmpd.conf file:
  9. Test it out. Go to the server running mrtg (or localhost if mrtg is on the same box):
  10. Put snmpd into your startup scripts (ie: /etc/rc.d/rc.local) so it will autostart upon machine reboots:

  11. Congratulations, you now have snmpd up and running on your system. See my page at http://netophilia.net/linux-oids.html for examples of what you can now monitor

  12. Please let me know at drk-at-netophilia.net if you notice any errors, if you need something cleared up, or if you just want to comment on this page (PLEASE do comment)



1