graphing large values (k/M/T/etc) with 14all.cgi

graphing large values (k/M/T/etc) with 14all.cgi

Post by Brendon Caligar » Wed, 23 Apr 2003 00:32:10

    RH7.3 + stock net-snmp (latest rh patch releases)

mrtg is running in 'rrdtool' mode

Appended to this message is the mrtg.cfg extract which I am using to graph
the available space versus size of my '/' partition.

The snmp gets are retrieving the right information (disk size / availability
in megabytes).

The values of the preview screen are ok (the right number of Gbs) whilst the
5min/weekly/monthly/yearly graphs  give the X-axis in megabytes.  I would
like to 'coerce' 14all.cgi into displaying 'G' instead of 'k' and 'M'
instead of nothing as I trying to graph megabytes not bytes (I am already
extracting the values in megabytes).

I have tried toying with the kMG[target] variable but it seems to be ignored

Any help welcome!!!!


SetEnv[localhost_part_]: MRTG_INT_IP="" MRTG_INT_DESCR="/"
MaxBytes[localhost_part_]: 1048675
Kilo[localhost_part_]: 1024
#MaxBytes1[localhost_part_]: 1024
#MaxBytes2[localhost_part_]: 1024
Options[localhost_part_]: gauge,nopercent,integer
Title[localhost_part_]: /
YLegend[localhost_part_]: Mb
ShortLegend[localhost_part_]: B
kMG[localhost_part_]: f,s,p,g,o
#kMG[localhost_part_]: k,M,G,T,P
#kMG[localhost_part_]: a,b,c,,e,f,g,h,i
LegendI[localhost_part_]: Disk Used
LegendO[localhost_part_]: Disk Size
#LegendO[localhost_part_]: CPU Load (5min)
Legend1[localhost_part_]: Disk Used (hrStorageUsed)
Legend2[localhost_part_]: Disk Size (hrStorageSize)
#Legend3[localhost_part_]: Max load per interval:
#Legend4[localhost_part_]: .
Colours[localhost_part_]: BLUE#8888FF,BLACK#000000,GRAY#AAAAAA,GRAY#AAAAAA
PageTop[localhost_part_]: <H1>Disk Usage on / -- localhost</H1>
   <TR><TD>System:</TD>     <TD>localhost</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>synerr</TD></TR>


1. Changing graph size and scale in 14all.cgi

I would like to make the graphs displayed by 14all.cgi larger.

I would also like to change the 5 minute graph so that the x axis
covers about an 8 hour time period. My goal is to see more detail.

Is this possible? I am not a programmer, so detailed instructions
would be much appreciated. I intend on writing a MRTG RRDTool 14all
web page for people trying to run this combination on Win2000 Pro --
something that will be easy for "router guys" to follow.

Thanks in advance

2. Differences PPP <--> SLIP

3. 14all.cgi Error:Cannot Create Graph

4. XP Windows Picture and Fax Viewer

5. Need help w/ 14all.cgi

6. how to get attribute in xslt?

7. 14all.cgi-script problem

8. Mailing 50 people every day

9. 14all cgi script help

10. mrtg 2.9.10/rrdtool/14all - problem: W, M, Y, graphs not created

11. MRTG: graph decimal values?

12. Graphing multiple values in MRTG

13. Plotting Absolute values - was Graphing small counters