cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2778
Views
0
Helpful
8
Replies

MRTG CONFIG FOR CPU and MEM usage on 7200 router

ddube
Level 1
Level 1

Hello does anyone have a mrtg config that theya re doing both CPU monitoring and memory monitoring. Could you post or shoot that over to me ?.

ddube23@yahoo.com

Thanks

David

8 Replies 8

jolmo
Level 4
Level 4

This is what I use for CPU monitoring of all my Cisco devices:

Target[Router_CPU_UTIL]: 1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:string@A.B.C.D MaxBytes[Router_CPU_UTIL]: 100

Options[Router_CPU_UTIL]: growright, gauge, nopercent, nobanner

where string is router's RO snmp commuunity string and A.B.C.D is router's IP address

I don't know how to do it for memory monitoring but there is a good link about the MIB objects used for memory monitoring:

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094a95.shtml

HTH

Hi,

Can u explain the above mentioned process a little bit more.I have been using mrtg for monitoring bandwidth of router interfaces in which i make cfgmaker file then running it to get mrtg graphs.

So please explain a little bit in connection to that the above e mentiond process.

Regards,

Saif Farooq

email:saif_farooq@yahoo.com

I also use cfgmaker for monitoring interfaces bandwidth. But for special monitoring like CPU and memory I usually add those lines I wrote at previous post in *.cfg file created by cfgmaker.

So build your .cfg with cfgmaker and edit it to add those lines. Check the .cfg to see how it is built and the meaning of every field used.

Here you are a CfgMaker manual:

http://people.ee.ethz.ch/~oetiker/webtools/mrtg/cfgmaker.html

Almost at the end of this document there is an example for CPU monitoring with all the fields included (legends , maxbytes, options, etc):

HTH

Hello

I tried to edit my existing *.cfg file with your lines but problem is that when i run the file,command prompt gives the message:

"ERROR: unable to open config file: saif.cfg"

I thnk i am doing some mistake editing the file.

I am enclosing the *.cfg file that i have already created so i hope u can help me edit it with your lines.

Regards

When do you receive such error? When trying to edit or when trying to run with perl?

Is this file generated by cfgmaker?

Remember to put every field for cpu monitoring. Refer to cfgmaker manual

Dear Jolmo

This is the file generated by cfgmaker.wheb i run it with perl,i receive this error. Thats why i have attached the cfgmaker file so that u can possibly edit it with the lines you said are for generating cpu graphs.

Regards.

Saif

saif_farooq@yahoo.com

Make sure you run perl from the directory where your cfg file is placed. That error looks like perl can't find your .cfg file

Dear All,

Fianlly Problem solved.I follwed the links that Jolmo forwarded to me.Plus,in the Mrtg installation,there is a file \\mrtg\doc\ntguide,there is an example similar to the one in the links that Jolmo forwarded.

It took some time but now finally I am able to take MRTG graph of Router's CPU.

I would definately like to thank Jolmo for his tips.

Regards,

Saif Farooq

saif_farooq@yahoo.com