On Thu, 2003-12-11 at 10:53, Travis Rabe wrote:
> Good Morning Everyone,
>
> I will start by saying that I am new to SNMP and to MRTG.
>
> _Environment:_
> 2 Cisco 2600 Routers
> MRTG 2.10.11 installed on a Windows 2000 Server
>
> I have already configured mrtg to monitor the two routers for traffic flow
> but I cannot seem to figure out how or if mrtg can be used to monitor CPU
> usage. Is this possible? I have read through various pages on Google and it
> seems there are people that say yes and no.
cpu monitoring is very easy.
>
> If it is possible, how so? I have read I need to get an OID or MIB. Is
> this correct? I have I have found a link to the Cisco site that shows
> these, but I don't see one specifically for the 2600, I see a 2610 and a
> 2611. Will this work?
Yes, the mib is the same for all IOS products, depending on version, not
hardware. The difficulty is knowing whether to use the ancient
lsystem.cpu5sec OID (officially deprecated since IOS 10.3!) or one of
the new cpmCPUTotal5sec or cpmCPUTotal5secR oids.
Since I assume there is very little IOS 10.2 or 9.27 still running in
the wild, my template at www.austinnetworkdesign.com/mrtg/cpu.template
queries the box and figures out which of the CISCO-PROCESS-MIB values to
use.
>
> I guess the best thing to do would be to please help me by giving me the
> step-by-step. I have read the documentation but I do not see a config makes
> for CPU usage.
first, grab the v1 mibs from Cisco (SNMP_Utils.pm can't parse v2 mibs).
Drop them in the /usr/share/snmp/mibs directory with all of your other
mibs.
Second, add the following mibs to your LoadMibs line in your mrtg.cfg
file. The parser will only accept one LoadMibs variable, so if you have
one for some other purpose, just append these.
LoadMibs: /usr/share/snmp/mibs/CISCO-SMI-V1SMI.my
/usr/share/snmp/mibs/CISCO-TC-V1SMI.my
/usr/share/snmp/mibs/CISCO-PROCESS-MIB-V1SMI.my
/usr/share/snmp/mibs/CISCO-MEMORY-POOL-MIB-V1SMI.my
then, using the cfgmaker template you copied from my website, run a
command like:
/usr/local/mrtg-2/bin/cfgmaker --host-template=cpu.template
--directory=2600 --ifref=name --ifdesc=alias --output=the2600.cfg
[EMAIL PROTECTED]
You can then include the config in your main mrtg.cfg file with:
Include: /path/to/the2600.cfg
to do this same thing on Windows, just change the paths from
/usr/share/snmp/mibs to wherever you keep your mibs...
>
> Thanks in Advance,
>
> Travis
>
>
>
>
> --
> Unsubscribe mailto:[EMAIL PROTECTED]
> Archive http://www.ee.ethz.ch/~slist/mrtg
> FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
> WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
--
Daniel J McDonald <[EMAIL PROTECTED]>
Austin Energy
--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi