Newbie SNMP Question

setzer at placemark.com setzer at placemark.com
Fri Jan 17 21:35:41 CET 2003


> From: "Vernon A. Fort" <vfort at provident-solutions.com>
> To: <nagios-users at lists.sourceforge.net>
> Date: Fri, 17 Jan 2003 11:22:29 -0600
> 
> I have managed to get nagios running very well, works like a champ - great
> software.  I now need to start the snmp setup and have very little
> experience with snmp.  Can anyone point me do basic documentation,
> "Snmp-for-dummies" so to speak?
> 
> I am wanting to monitor my 45 cisco routers as well and some unix server vi
> snmp (specifically network traffic monitoring as well as real-time router

1) Make sure SNMP is enabled on your routers.  Quick and dirty (and
   unsafe):
   router#conf t
   router(config)#snmp-server community public ro
   router(config)#^Z

2) Make sure snmpd is installed on your linux boxes.  If you have
solaris, disable the snmpd master agent as well as dmi.  Install
net-snmp from http://www.net-snmp.org/ per the instructions.

3) Edit your /etc/snmp/snmpd.conf.  You will need to have disk and
load entries in order for the snmpd to report those.  You will also
need to allow access for your nagios server.  Quick, dirty, unsafe:
  # /etc/snmp/snmpd.conf
  rocommunity public 192.168.1.3   # nagios server IP
  syslocation Somewhere
  syscontact Me
  disk / 10000
  disk /var 55
  load 5 5 5

4) From the nagios server (which has snmp installed, right?), test the
   above with:
  snmpwalk -m ALL -v 1 -c public myserver.mydomain.com laLoad.1
  
  For your unix servers, you'll want:
  laLoad.1   # Load now
  laLoad.2   # Load over 5m
  laLoad.3   # Load over 15m
  dskPercent.1  # Percent used of first disk in snmpd.conf
  dskPercent.2  # Percent used of second disk in snmpd.conf

5) The checkcommands.cfg that comes with nagios already has a
check_snmp command built in.  So, you can go ahead and make a service
definition using it.

6) Rather than fooling around with Cisco MIBs, I found it simpler to
   use the numeric OIDs for monitoring cisco gear.  These should get you
   started.

   ether0  traffic in  bits/sec .1.3.6.1.4.1.9.2.2.1.1.6.1
   serial0 traffic in  bits/sec .1.3.6.1.4.1.9.2.2.1.1.6.2
   serial1 traffic in  bits/sec .1.3.6.1.4.1.9.2.2.1.1.6.3

   ether0  traffic out bits/sec .1.3.6.1.4.1.9.2.2.1.1.8.1
   serial0 traffic out bits/sec .1.3.6.1.4.1.9.2.2.1.1.8.2
   serial1 traffic out bits/sec .1.3.6.1.4.1.9.2.2.1.1.8.3

   ether0  traffic in  pkts/sec .1.3.6.1.4.1.9.2.2.1.1.7.1
   serial0 traffic in  pkts/sec .1.3.6.1.4.1.9.2.2.1.1.7.2
   serial1 traffic in  pkts/sec .1.3.6.1.4.1.9.2.2.1.1.7.3

   ether0  traffic out pkts/sec .1.3.6.1.4.1.9.2.2.1.1.9.1  
   serial0 traffic out pkts/sec .1.3.6.1.4.1.9.2.2.1.1.9.2
   serial1 traffic out pkts/sec .1.3.6.1.4.1.9.2.2.1.1.9.3   

   avgBusy0 CPU-load sampled over 5s .1.3.6.1.4.1.9.2.1.56.0
   avgBusy1 CPU-load sampled over 1m .1.3.6.1.4.1.9.2.1.57.0
   avgBusy5 CPU-load sampled over 5m .1.3.6.1.4.1.9.2.1.58.0

> monitoring), looking for bottle-necks and telco line errors and such.  From
> what I have read, snmp is the way to go so any suggestions would be most
> helpful.

The cisco gear has all kinds of interesting snmp capabilities (e.g.,
copying configs).  In order to go further, you may need to install
the cisco mibs.  http://www.mibdepot.com is a good place to start.
Cisco's official mib download site is:
http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml


> -----------------------------------
> Vernon A. Fort (Andy)
> Provident Solutions, LLC
> (615) 427-4016 http://www.provident-solutions.com
> 
> 
> ------=_NextPart_000_0094_01C2BE1A.B8BA27F0
> Content-Type: application/ms-tnef;
> 	name="winmail.dat"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment;
> 	filename="winmail.dat"
> 
> eJ8+Ih0RAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
> b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANMHAQARAAsAFgAAAAUAEgEB

winmail.dat

yuck.


Kelly

--
Kelly Setzer, System Administrator/Architect - Placemark Investments
14180 Dallas Pkwy, Suite 200, Dallas, TX 75240
kelly.setzer at placemark.com  http://www.placemark.com
(972)404-8100x41 (work)       (214) 287-3464 (cell)


-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your 
clients even if they use browsers that are limited to 40 bit encryption. 
Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en




More information about the Users mailing list