Question

Cisco 1812 and MRTG

Asked by: kdyresen

Hey!

I got a problem with adding my (the ISPs) Cisco 1812 to MRTG. also got the same issue with a Cisco Catalyst 360

I'm running MRTG version 2.16.2 on a Debian 5 installation.

The system, that already got 40 hosts added and working, got full access to this Cisco router, but since this is my ISPs router I dont have any other access than SNMP.

If I do a snmpwalk -v1 -c public xxx.xxx.xxx.18 I get this output:

-----------------------------------------
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifDescr.1 = STRING: FastEthernet0
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 100000000
IF-MIB::ifPhysAddress.1 = STRING: 0:1b:53:52:b0:ae
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifLastChange.1 = Timeticks: (268487582) 31 days, 1:47:55.82
IF-MIB::ifInOctets.1 = Counter32: 3156062826
IF-MIB::ifInUcastPkts.1 = Counter32: 15842129
IF-MIB::ifInNUcastPkts.1 = Counter32: 1595
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInUnknownProtos.1 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 3646213967
IF-MIB::ifOutUcastPkts.1 = Counter32: 20769365
IF-MIB::ifOutNUcastPkts.1 = Counter32: 806800
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
End of MIB
-----------------------------------------

So I know SNMP is working against it, but when I try to run cfgmaker I get this:

-----------------------------------------
cfgmaker public@xxx.xxx.xxx.18
WARNING: Skipping public@xxx.xxx.xxx.18: as no info could be retrieved

# Created by
# /usr/bin/cfgmaker public@xxx.xxx.xxx.18


### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg

#  for Debian
WorkDir: /var/www/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no

######################################################################
# System:
# Description:
# Contact:
# Location:
######################################################################
-----------------------------------------

So, how to I get cfgmaker to create me a working config? or are there anyone out there with a working config I can get a copy of?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-09-23 at 00:23:16ID24754057
Tags

mrtg

,

snmp

,

cisco

,

network

,

surveillance

Topics

Network Analysis Software

,

Network Routers

,

Miscellaneous Networking

Participating Experts
2
Points
0
Comments
13

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Mrtg not Graphing
    I have ran MrtG against a Cisco 2600 router and it is not graphing the results. I ran: perl cfgmaker public@172.20.11.1 --global "Workdir: C:\Inetpub\Wwwroot\Mrtg\Bel" --ifref=ifdescr --output bel.cfg then I edited the bel.cfg # Created by # cfgmaker public@172....
  2. Cisco 1700 and SNMP MRTG
    Hey Got some routers, got a box runnning MRTG... everything worked fine ! Then I did some config changes, inserted some BR ISDN cards, got attacked by hackers ( just another week in the life of net admin right ? ) Now my MRTG is not loggin any trafic on any routers ? I...
  3. Config. MRTG with Cisco RTR
    Hello, all. I've got a basic 806 Cisco router, it has a healthy IOS. I don't know much about SNMP, but I have MRTG installed properly but I am unsure about what to enter on the router to monitor the two ethernet interfaces. I have the MRTG running on IP 10.0.0.200. The ...
  4. MRTG
    Hey now, I have a few questions about MRTG. We're trying to set MRTG so we can monitor our Cisco router and some of are Ts. We have a Linux box that we were hoping to use for MRTG. We compiled everything correctly, and followed the installation instructions from http://people...
  5. MRTG installation
    Sirs, Please help me to install and configure MRTG for my WAN links terminated on my cisco router. Please give me the steps. what are the software i should install? Dont have sufficient net facility..Please get back with details Thanks
  6. MRTG Incorrect bandwith with IOS SNMP Traps
    I am monitoring the bandwith utilisation with MRTG. The bandwidth is supposed to be 6Mbps, but MRTG is only showing 1B. I believe the MRTG settings are correct, but I don't know if I got my SNMP config right. Please advise: Cisco 2811: ------------- version 12.3 service ti...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: giltjrPosted on 2009-09-23 at 18:25:11ID: 25409578

try

cfgmaker --snmp-options=:::::1  public@xxx.xxx.xxx.18

 

by: kdyresenPosted on 2009-09-23 at 23:15:43ID: 25410456

I still get the same error as mentioned above.

 cfgmaker --snmp-options=:::::1 public@xxx.xxx.xxx.18
WARNING: Skipping public@xxx.xxx.xxx.18:::::1 as no info could be retrieved

 

by: giltjrPosted on 2009-09-24 at 04:47:50ID: 25412235

Umm, you may want to try doing a packet capture and see what is being sent out when you do the snmpwalk and the cfgmaker.  There has to be something different between the two.  This does assume you are doing the snmpwalk and the cfgmaker commands from the same computer.

 

by: kdyresenPosted on 2009-09-24 at 06:11:25ID: 25412921

yes I ofc do it from the same computer.

you think of a tcpdump or something? if so, any special options I should use?

 

by: packetguyPosted on 2009-09-24 at 06:17:51ID: 25412993

Is that actually the start of the snmpwalk output? If so, you're missing the System section, which MRTG's configmaker needs.  This could happen if your ISP has limited the snmp view to just the interfaces for security reasons. You can still add the device to your mrtg config manually; you just won't be able to use configmaker to generate the .conf lines for this device.

 

by: giltjrPosted on 2009-09-24 at 08:27:51ID: 25414360

Sorry, I missed the fact there was no system information.  packetguy is correct, cfgmaker needs to have the system information.

 

by: kdyresenPosted on 2009-09-24 at 23:13:43ID: 25420339

OK.

To make mrtg conf's on my own is not my speciality :-) You guys got any suggestions on where I can find a config that might work?

I tried to copy on from an other router and change the parts that was wrong, but that didn't work.

 

by: packetguyPosted on 2009-09-24 at 23:55:17ID: 25420518

Show me one from another router and I'll convert it for you.

 

by: kdyresenPosted on 2009-09-25 at 00:59:03ID: 25420819

Here is an example of one that workes on an layer 3 switch, our internal router.

WorkDir: /var/www/mrtg/router
EnableIPv6: no

### Interface 1 >> Descr: '' | Name: '1/e1' | Ip: '' | Eth: '00-5e-4f-08-9e-3e' ###
Target[xxx.xxx.xxx.240_1]: 1:public@xxx.xxx.xxx.240:
SetEnv[xxx.xxx.xxx.240_1]: MRTG_INT_IP="" MRTG_INT_DESCR=""
MaxBytes[xxx.xxx.xxx.240_1]: 1250000
Title[xxx.xxx.xxx.240_1]: Traffic Analysis for port 1
PageTop[xxx.xxx.xxx.240_1]: <h1>Traffic Analysis for port 1 </h1>
                <div id="sysdetails">
                        <table>
                                <tr>
                                        <td>System:</td>
                                        <td> in </td>
                                </tr>
                                <tr>
                                        <td>Maintainer:</td>
                                        <td></td>
                                </tr>
                                <tr>
                                        <td>Description:</td>
                                        <td>  </td>
                                </tr>
                                <tr>
                                        <td>ifType:</td>
                                        <td>ethernetCsmacd (6)</td>
                                </tr>
                                <tr>
                                        <td>ifName:</td>
                                        <td>1/e1</td>
                                </tr>
                                <tr>
                                        <td>Max Speed:</td>
                                        <td>12.5 MBytes/s</td>
                                </tr>
                        </table>
                </div>


### Interface 2 >> Descr: '' | Name: '1/e2' | Ip: '' | Eth: '00-7d-4e-25-99-af' ###
Target[xxx.xxx.xxx.240_2]: 2:public@xxx.xxx.xxx.240:
SetEnv[xxx.xxx.xxx.240_2]: MRTG_INT_IP="" MRTG_INT_DESCR=""
MaxBytes[xxx.xxx.xxx.240_2]: 1250000
Title[xxx.xxx.xxx.240_2]: Traffic Analysis for port 2
PageTop[xxx.xxx.xxx.240_2]: <h1>Traffic Analysis for port 2 </h1>
                <div id="sysdetails">
                        <table>
                                <tr>
                                        <td>System:</td>
                                        <td> in </td>
                                </tr>
                                <tr>
                                        <td>Maintainer:</td>
                                        <td></td>
                                </tr>
                                <tr>
                                        <td>Description:</td>
                                        <td>  </td>
                                </tr>
                                <tr>
                                        <td>ifType:</td>
                                        <td>ethernetCsmacd (6)</td>
                                </tr>
                                <tr>
                                        <td>ifName:</td>
                                        <td>1/e2</td>
                                </tr>
                                <tr>
                                        <td>Max Speed:</td>
                                        <td>12.5 MBytes/s</td>
                                </tr>
                        </table>
                </div>

 

by: packetguyPosted on 2009-09-25 at 01:27:32ID: 25420981

OK, here's the code for FastEthernet0 on you 1841 (the only interface you can monitor via SNMP). Just paste this into the bottom of one of your existing config files. Replace xxx.xxx.xxx.18 with your 1841's actual IP address.

WorkDir: /var/www/mrtg/router
EnableIPv6: no

### Interface 1 >> Descr: '' | Name: 'FastEthernet0' | Ip: 'xxx.xxx.xxx.18' | Eth: '00-1b-53-52-b0-ae' ###
Target[xxx.xxx.xxx.18_1]: 1:public@xxx.xxx.xxx.18:
SetEnv[xxx.xxx.xxx.18_1]: MRTG_INT_IP="" MRTG_INT_DESCR=""
MaxBytes[xxx.xxx.xxx.18_1]: 1250000
Title[xxx.xxx.xxx.18_1]: Traffic Analysis for FastEthernet0
PageTop[xxx.xxx.xxx.18_1]: <h1>Traffic Analysis for FastEthernet0 </h1>
                <div id="sysdetails">
                        <table>
                                <tr>
                                        <td>System:</td>
                                        <td> in </td>
                                </tr>
                                <tr>
                                        <td>Maintainer:</td>
                                        <td></td>
                                </tr>
                                <tr>
                                        <td>Description:</td>
                                        <td>  </td>
                                </tr>
                                <tr>
                                        <td>ifType:</td>
                                        <td>ethernetCsmacd (6)</td>
                                </tr>
                                <tr>
                                        <td>ifName:</td>
                                        <td>FastEthernet0</td>
                                </tr>
                                <tr>
                                        <td>Max Speed:</td>
                                        <td>12.5 MBytes/s</td>
                                </tr>
                        </table>
                </div>

 

by: kdyresenPosted on 2009-09-25 at 01:41:33ID: 25421050

I get this error when I entered the right IP and the right community setting.

#env LANG=C /usr/bin/mrtg /home/mrtg/primrouter.cfg

SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 3 (OID: 1.3.6.1.2.1.1.3.0)
SNMPv1_Session (remote host: "xxx.xxx.xxx.18" [xxx.xxx.xxx.18].161)
                  community: "public"
                 request ID: 111652448
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/share/perl5/SNMP_util.pm line 492
SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on public@xxx.xxx.xxx.18::::::v4only
 at /usr/bin/mrtg line 2207
2009-09-25 10:36:53: ERROR: Target[xxx.xxx.xxx.18_1][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
2009-09-25 10:36:53: ERROR: Target[xxx.xxx.xxx.18_1][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data

 

by: kdyresenPosted on 2009-10-01 at 02:06:35ID: 25466958

EnableIPv6: no
WorkDir: /var/www/mrtg/primrouter
NoMib2: Yes

Target[Pri-Router]: ifInOctets.10101&ifOutOctets.10101:public@xxx.xxx.xxx.18
.
.
.

 

by: packetguyPosted on 2009-10-01 at 07:08:53ID: 25468773

Ok, the problem is that apparently MRTG is still trying to retrieve some system data, although not essential system data, that your ISP is filtering. The sysname and sysuptime values are the culprits. You could contact your ISP and see if they are willing to unfiltered the system values in snmp. Or you might try another tool, such as PRTG, which although a commercial product has a free edition that let you monitor a handful of devices. Prtg is a Windows-only thing though (http://www.paessler.com).

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...