SNMP: Difference between revisions

From CSCWiki
Jump to navigation Jump to search
m (Fix spelling)
No edit summary
Line 1: Line 1:
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.
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.


Installation of snmpd on our machines is done via puppet.
== Debian ==


If you want to enable sensors:
* sudo apt-get install snmpd
* sudo nano /etc/default/snmp
* sudo apt-get install lm-sensors
* sudo sensors-detect
** Remove the 127.0.0.1 part in the SNMPDOPTS line
* sudo modprobe the recommended modules and them to /etc/modules as needed; run sensors to verify that correct modules are loaded and working
* 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.0/24 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 syscontact and fill them in accordingly
* sudo invoke-rc.d snmpd restart
* 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).

== Windows ==

There is a Windows distribution of Net-SNMP.

Revision as of 00:49, 15 January 2008

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.

Installation of snmpd on our machines is done via puppet.

If you want to enable sensors:

  • sudo apt-get install lm-sensors
  • sudo sensors-detect
  • sudo modprobe the recommended modules and them to /etc/modules as needed; run sensors to verify that correct modules are loaded and working
  • sudo invoke-rc.d snmpd restart