2,187
edits
(→Ubuntu 10.04.1 LTS: Updated) |
(→SNMP: Added v10 changes) |
||
Line 178: | Line 178: | ||
== SNMP == | == SNMP == | ||
=== Setup (Pre v10) === | |||
=== Setup === | |||
# Run the following command to update the package database | # Run the following command to update the package database | ||
#* <code> apt-get update </code> | #* <code> apt-get update </code> | ||
Line 198: | Line 196: | ||
rocommunity public | rocommunity public | ||
syslocation "CR DC" | |||
syscontact info@sandfordit.com | |||
=== Setup (v10) === | |||
# Run the following command to update the package database | |||
#* <code> apt-get update </code> | |||
# Run the following command to install SNMP | |||
#* <code> apt-get install snmpd </code> | |||
# Create config file with contents as shown below the procedure | |||
#* <code> vi /etc/snmp/snmpd.conf </code> | |||
# Edit SNMPD config to allow remote polls | |||
#* <code> vi /etc/default/snmpd </code> | |||
# Remove <code> 127.0.0.1 </code> from line below | |||
#* <code> <nowiki>#</nowiki>snmpd options (use syslog, close stdin/out/err). </code> | |||
#* <code> SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1' </code> | |||
# Restart SNMP | |||
#* <code> /etc/init.d/snmpd restart </code> | |||
# Test with the following, replacing <hostname> with server's hostname (must be run from a machine with snmp installed, not just snmpd) | |||
#* <code> snmpwalk -v 1 -c public <hostname> system <hostname> </code> | |||
#### | |||
# First, map the community name (COMMUNITY) into a security name | |||
# (local and mynetwork, depending on where the request is coming | |||
# from): | |||
# sec.name source community | |||
#com2sec paranoid default public '''<- Comment''' | |||
com2sec readonly default public '''<- Uncomment''' | |||
'''... then later ...''' | |||
syslocation "CR DC" | syslocation "CR DC" | ||
syscontact info@sandfordit.com | syscontact info@sandfordit.com |