Difference between revisions of "SNMP"

From CSCWiki
Jump to navigation Jump to search
(New page: == 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 ** Under the existing com2sec l...)
 
Line 5: Line 5:
 
** Remove the 127.0.0.1 part in the SNMPDOPTS line
 
** Remove the 127.0.0.1 part in the SNMPDOPTS line
 
* sudo nano /etc/snmp/snmpd.conf
 
* sudo nano /etc/snmp/snmpd.conf
  +
** Remove the following line: com2sec paranoid default public
 
** Under the existing com2sec lines, add the following: com2sec readonly 129.97.134.36 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
 
** If you want to query locally, you can add this line: com2sec readonly 127.0.0.1/24 public

Revision as of 05:15, 26 August 2007

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 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).