[mrtg] How to add Max Average Current

Fehmi Dumani albadino at hotmail.com
Fri Apr 23 16:07:35 CEST 2010


Hi guys

I am using mrtg creating graphs from local text files, and the graph doesnt show any Max Average Current. Where did I go wrong.

My mrtg.cfg file looks like this
---------------------------------------------------------------
# Created by
# /usr/bin/cfgmaker --global "workdir: /var/www/mrtg" -ifref=ip --output /etc/mrtg/mrtg.cfg --global "options[_]: growright,bits" 
### Global Config Options

#  for UNIX
# WorkDir: /home/http/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
workdir: /var/www/mrtg
options[_]: growright,bits

Interval: 5

######################################################################
# System: CORE02.dardanet.net
# Description: Cisco Internetwork Operating System Software
#          IOS (tm) s72033_rp Software (s72033_rp-PK9SV-M), Version 12.2(18)SXD7b, RELEASE SOFTWARE (fc1)
#          Technical Support: http://www.cisco.com/techsupport
#          Copyright (c) 1986-2006 by cisco Systems, Inc.
#          Compiled Fr
# Contact:
# Location:
######################################################################


Title[usage]: IP usage
PageTop[usage]: <H1>IP usage</H1>
Options[usage]: nobanner,gauge,
Target[usage]: `/home/mrtg/mrtg/ip.sh`
MaxBytes[usage]: 255
YLegend[usage]: IP total/used
Unscaled[usage]: ymwd
LegendI[usage]:
LegendO[usage]:
Suppress[usage]: y
---------------------------------------------------------------
on my script I do some loging and I provide only one value as VAL1 variable :

---------------------------------------------------------------

VAL1=$USED96
echo $VAL1
echo 0
echo 0
echo 0
---------------------------------------------------------------


Thanks Dino


 		 	   		  
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100423/744596f6/attachment.htm 


More information about the mrtg mailing list