?
Solved

Configuring MRTG on mrtg.cfg

Posted on 2005-02-24
3
Medium Priority
?
1,800 Views
Last Modified: 2008-01-09
----------
I used used this configuration command in the /usr/local/mrtg-2/bin directory
 
./cfgmaker --global 'WorkDir: /home/httpd/mrtg'  \
             --global 'Options[_]: bits,growright' \
             --output /home/mrtg/cfg/mrtg.cfg    \
               192.168.30.1
------------
I recieved errors and information back in the form off.....    below

--base: Get Device Info on public@192.168.30.1:
SNMP Error:
no response received
SNMPv1_Session (remote host: "192.168.30.1" [192.168.30.1].161)
                  community: "public"
                 request ID: -463351953
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 627
SNMPWALK Problem for 1.3.6.1.2.1.1 on public@192.168.30.1::::::v4only
 at ./cfgmaker line 796
WARNING: Skipping public@192.168.30.1: as no info could be retrieved

--base: Writing /home/mrtg/cfg/mrtg.cfg

-----------------
It generated a mrtg.cfg file in the /usr/local/mrtg-2/bin directory......below


# Created by
# ./cfgmaker --global 'WorkDir: /home/httpd/mrtg' --global 'Options[_]: bits,growright' --output /home/mrtg/cfg/mrtg.cfg community@router.abc.xyz


### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg[root@BLIZZARD bin]#  ./cfgmaker --global 'WorkDir: /home/httpd/mrtg'               --global 'Options[_]: bits,growright'              --output /home/mrtg/cfg/mrtg.cfg                   192.168.30.1

#  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
WorkDir: /home/httpd/mrtg
Options[_]: bits,growright

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


   Write now as a test im trying to point it at a dlink router. But the purpose of the mrtg server is to monitor vlan traffic. So to monitor vlans on our 6509 I guess I supply instead of 192.168.30.1 I give it the default gateway of the router in the 6509. Etheir way its not working and was wondering if some could explain how i can get bandwidth reports off the router.
Yes , ive been to http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-unix-guide.html and have expored the documentation and the additional links provided on the website.
0
Comment
Question by:Fubyou
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
gripe earned 2000 total points
ID: 13397799
Is SNMP enabled on the router? It looks like it can't connect to the SNMP daemon. Also, are you sure you're using the 'PUBLIC' community name on the router?
0
 

Author Comment

by:Fubyou
ID: 13402939
How does the community name work extectly and what does it mean.
0
 
LVL 13

Expert Comment

by:gripe
ID: 13403363
The community name is an (often arbitrary) string that pairs your device with a set of permissions. Think of it as an extremely weak password. The community string defines what resources the incoming request has access to. So, for instance, possibly the 'PUBLIC' community string has only read-only access to values and a second string is configured as 'PRIVATE' which has access to set values as well. Generally the public community string is set up as a default. There may be a configuration option in your router to change both the string and the access it provides. Do you know what version of SNMP your router implements? Do you have any (online possibly -- pass on the link if you do) documentation that describes how SNMP is set up on the router?
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question