[mrtg] How to add Max Average Current

Fehmi Dumani albadino at hotmail.com
Sat Apr 24 10:16:07 CEST 2010


Guys I am desperate how to get to put Max Average and Current in the graph?

I don't think it is a big deal for some1 that has experience with mrtg and this is my scenario:

I collect used ipv4 addresses on a log file I filter them as free and used sum of ip addresses. I give with a script as a first line value of used addresses, than the second line value of the total addresses. Everythink works no errors at all, except for that it doesn't show anythink at Max Average Current on Daily, Weekly or Monthly graphs.

Thank you for your time for reading my problem  

Best regards

Dino

From: albadino at hotmail.com
To: g.ashok1988 at gmail.com; mrtg at lists.oetiker.ch
Date: Fri, 23 Apr 2010 14:07:35 +0000
Subject: [mrtg]  How to add Max Average Current








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. See how. 		 	   		  
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100424/6e77f7bb/attachment-0001.htm 


More information about the mrtg mailing list