Difference between revisions of "Ubuntu"

Jump to navigation Jump to search
947 bytes added ,  11:33, 9 November 2010
→‎SNMP: Added v10 changes
(→‎SNMP: Added v10 changes)
Line 178: Line 178:


== SNMP ==
== SNMP ==
Be aware that SNMP may already be installed on your system, but not in the default place, for example it can be installed with Zimbra, in which case the config file can be found in a different place (eg <code> /opt/zimbra/snmp/conf/snmp.conf </code>.  If there's an existing snmpd service running, its unlikely you'll want to install a second!
=== 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

Navigation menu