Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MRTG

Status
Not open for further replies.

vedo

MIS
Mar 20, 2002
30
US
Anyone out there knows how to install and configure MRTG under Linux 9.0. Your help is appriciated.
 
Matt,

After I try to run MRTG I get this error any idea?

mrtgwill most likely not work propperly when the envireoment variable LANG is set to UTF-8. please run mrtg in an envireoment where this is not the case:

I am almost there... Thank you for all your help.

Tony Banks
 
first check that mrtg is installed if u did a full install
then mrtg will be installed by default

if mrtg is not installed u can install its RPM from the cd
also u need some packages which u will find from MRTG's home page but again if some package is missing install it as RPM from the original cd

After all that u can run this command or put it in your crontab to run it after every 5 minutes or what u like
# /usr/bin/mrtg path to cfg file

i have done it on RedHat 9.0


 
Thanks for the info. I think my snmp is not working? here is the error I get:


[root@MRTG bin]# ./cfgmaker --global 'WorkDir: /var/ --global 'Options[_]: bits,growright' --output /var/ --ifref=ip jetha@10.13.1.91
--base: Get Device Info on jetha@10.13.1.91:
SNMP Error:
no response received
SNMPv1_Session (remote host: "10.13.1.91" [10.13.1.91].161)
community: "jetha"
request ID: 1441859059
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/mrtg-2.9.29/bin/../lib/mrtg2/SNMP_util.pm line 570
SNMPWALK Problem for 1.3.6.1.2.1.1 on jetha@10.13.1.91:
at ./cfgmaker line 709


And here is the snmp output from my cisco as5300:

mica#sh snmp
Chassis: 17409612
0 SNMP packets input
0 Bad SNMP version errors
0 Unknown community name
0 Illegal operation for community name supplied
0 Encoding errors
0 Number of requested variables
0 Number of altered variables
0 Get-request PDUs
0 Get-next PDUs
0 Set-request PDUs
8 SNMP packets output
0 Too big errors (Maximum packet size 1500)
0 No such name errors
0 Bad values errors
0 General errors
0 Response PDUs
8 Trap PDUs

SNMP logging: enabled
Logging to 10.13.1.91.162, 0/10, 8 sent, 0 dropped.
 
I am using another router to test this darn program...

I started debug on it and here is the error:

lsystem.5.0 = 10.13.1.91
00:38:33: SNMP: authentication failure
00:38:33: SNMP: Packet sent via UDP to 10.13.1.91
00:38:35: SNMP: Packet received via UDP from 10.13.1.91 on Ethernet0
00:38:35: SNMP: Queuing packet to 10.13.1.91
00:38:35: SNMP: V1 Trap, ent products.113, addr 10.13.1.90, gentrap 4, spectrap
0
lsystem.5.0 = 10.13.1.91
00:38:35: SNMP: authentication failure
00:38:35: SNMP: Packet sent via UDP to 10.13.1.91
00:38:37: SNMP: Packet received via UDP from 10.13.1.91 on Ethernet0
00:38:37: SNMP: Queuing packet to 10.13.1.91
00:38:37: SNMP: V1 Trap, ent products.113, addr 10.13.1.90, gentrap 4, spectrap
0


any help is appriciated

Tony
 
do you have a username/password on the routers?

Burke
 
Yes I do. Actully got that part working now iam getting this error:


[root@MRTG root]# /usr/local/mrtg-2.9.29/bin/mrtg /var/-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work propperly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case:

env LANG=C /usr/local/mrtg-2.9.29/bin/mrtg ...
-----------------------------------------------------------------------

[root@MRTG root]# env LANG=C /usr/local/mrtg-2.9.29/bin/mrtg
Usage: mrtg <config-file>

mrtg-2.9.29 is the Multi Router Traffic Grapher.

If you want to know more about this tool, you might want
to read the docs. They came together with mrtg!

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

This example above will create an mrtg config file in /home/mrtg/cfg assuming this is a directory visible on your webserver.


I want to make these directory available on the webserver


 
For mine, I didn't use that directory. Instead of entering the line like that, substitute /var/ for the appropriate places. If you've already set it up, you can edit the mrtg.cfg files and your cron file. But I am still rather new to Linux, I just found it easier to work with the default web directory...

Thanks,

Matt Wray
MCSE, MCSA, MCP, CCNA

 
Thanks Matt. Needed a couple of more tweaks but that did it.

Tony Banks
 
Hi,

I am installing MRTG on a win 2K based system.

Couple of questions?

1. I know the documentation says to

Add the following to the top of the mrtg.cfg file:

WorkDir: D:\InetPub\
This is where the web pages are created, usually a web root

However my inetpub\ dir is on c: then would this statement be correct:

WorkDir: C:\InetPub\
IF so when I run perl mrtg mrtg.cfg I get this error,

ERROR:cfg error in &quot;workdir&quot;, line 19: working directory c:\inetpub\ does not exist

by the way I am adding the statement above enableipv6:n0


2. I need to run this ODI for cisco AS5300

Active DS0s 1.3.6.1.4.1.9.10.19.1.1.4 The total number of calls connected.

Where do I input this info?


I would appreciate any help,
Tony Banks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top