Difference between revisions of "SNMP/MRTG"
From Briki
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | == Initial snmpd setup == | ||
+ | * Add mappings from client IPs to security policies by adding the lines: | ||
+ | <pre> | ||
+ | com2sec readonly 127.0.0.1 public | ||
+ | com2sec readonly <hostname> public | ||
+ | com2sec readonly 192.168.1.0/24 public | ||
+ | </pre> | ||
+ | |||
+ | * Bind snmpd to all interfaces by removing '''127.0.0.1''' from '''SNMPDOPTS''' in ''/etc/default/snmpd'' | ||
+ | |||
+ | == List SNMP OIDs == | ||
+ | <pre> | ||
+ | snmpwalk -v2c -c public <hostname> . | ||
+ | </pre> | ||
+ | |||
== Converting textual MIB names to numeric == | == Converting textual MIB names to numeric == | ||
<pre> | <pre> | ||
snmptranslate -m /usr/share/snmp/mibs/UCD-SNMP-MIB.txt -On -IR dskPercent | snmptranslate -m /usr/share/snmp/mibs/UCD-SNMP-MIB.txt -On -IR dskPercent | ||
</pre> | </pre> |
Latest revision as of 20:26, 27 August 2007
Initial snmpd setup
- Add mappings from client IPs to security policies by adding the lines:
com2sec readonly 127.0.0.1 public com2sec readonly <hostname> public com2sec readonly 192.168.1.0/24 public
- Bind snmpd to all interfaces by removing 127.0.0.1 from SNMPDOPTS in /etc/default/snmpd
List SNMP OIDs
snmpwalk -v2c -c public <hostname> .
Converting textual MIB names to numeric
snmptranslate -m /usr/share/snmp/mibs/UCD-SNMP-MIB.txt -On -IR dskPercent