SNMP
The Computer Science Club runs Net-SNMP on all of our host machines. This provides real-time data on network, cpu and disk load, as well as memory usage. We also record temperature and fan speed data for capable hosts. On caffeine, we record apache and postfix statistics.
Debian
- sudo apt-get install snmpd
- sudo nano /etc/default/snmp
- Remove the 127.0.0.1 part in the SNMPDOPTS line
- sudo nano /etc/snmp/snmpd.conf
- Remove or comment the following line: com2sec paranoid default public
- Under the existing com2sec lines, add the following: com2sec readonly 129.97.134.36 public
- If you want to query locally, you can add this line: com2sec readonly 127.0.0.1/24 public
- Find the lines starting with syslocation and sysconact and fill them in accordingly
- sudo invoke-rc.d snmpd restart
If you want to enable sensors, you'll need to get lm-sensors installed and working. Then you'll need to restart snmpd (sudo invoke-rc.d snmpd restart).
Plugins
It would be nice to have some plugins for Net-SNMP. Currently we query caffeine's apache statistics by enabled ExtendedStatus in apache, which is said to slow down performance. For postfix statistics, we depend on a customized mailgraph package. We should be able to implement both of these statistics directly in a Net-SNMP plugin. For both we would simply need to monitor the apache and postfix log files.