[mrtg] Re: 14all.cgi, too much grids

Håkan Lindholm hakan at spray.se
Sun Sep 23 21:45:15 MEST 2001


Hello again.

Well, I gave it some more time the other day...

Here is a patch for anyone, use it at your own risk.

*** 14all-1.1.cgi       Tue Jul 10 19:46:47 2001
--- 14all.cgi   Sun Sep 23 21:40:22 2001
***************
*** 352,358 ****
          } elsif (yesorno($targets{'14all*logarithmic'}{$log})) {
                  push @args, '-o';
          }
!         push
@args,'--alt-y-grid','--lazy','-c','MGRID#ee0000','-c','GRID#000000';
          # now build the graph calculation commands
          # ds0/ds1 hold the normal data sources to graph/gprint
          my ($ds0, $ds1) = ('in', 'out');
--- 352,368 ----
          } elsif (yesorno($targets{'14all*logarithmic'}{$log})) {
                  push @args, '-o';
          }
!         push @args,'-c','MGRID#ee0000','-c','GRID#999999';
!         if ($q->param('png') eq 'daily') {
!             push @args,'-x','HOUR:1:DAY:1:HOUR:2:0:%H';
!         } elsif ($q->param('png') eq 'weekly') {
!             push @args,'-x','DAY:1:WEEK:1:DAY:1:86400:%a';
!         } elsif ($q->param('png') eq 'monthly') {
!             push @args,'-x','WEEK:1:MONTH:1:WEEK:1:604800:Week %W';
!         } elsif ($q->param('png') eq 'yearly') {
!             push @args,'-x','MONTH:1:YEAR:1:MONTH:1:2419200:%b';
!         }
!       
          # now build the graph calculation commands
          # ds0/ds1 hold the normal data sources to graph/gprint
          my ($ds0, $ds1) = ('in', 'out');



This gives you x axis more like rateup generated graphs, and removes the
'--alt-y-grid' feature which seems no good to me. YMMV.

Please tell me (off list) if you are interested in further hacks on
14all.cgi. I got a few more customizations.

/Hakan



> -----Original Message-----
> From: Håkan Lindholm 
> Sent: den 20 september 2001 20:10
> To: 'mrtg at list.ee.ethz.ch'
> Subject: [mrtg] 14all.cgi, too much grids
> 
> 
> 
> Dear MRTG & 14all users,
> 
> we run MRTG 2.9.17, 14all.cgi 1.1p15 and rrdtool 1.0.33 on 
> Solaris 8 as well
> as Debian 2.2. PERL version is 5.005_03.
> 
> The migration from rateup to rrdtool was a piece of cake reading
> www.geocities.com/paulcwilliamson/mrtg/rateup2rrd.html and 
> some docs from www.mrtg.org. Everything is running smooth.
> 
> 
> My colleagues though, thinks that the old "rateup" graphs 
> were more easy to
> read. They says these new RRD graphs have too much grid 
> lines. That led me
> down into the 14all CGI source code trying to understand how 
> the CGI calls
> RRDs::graph.  Now, this was a bit harder...
> 
> 
> A possibility I have identified is to exclude any grid lines 
> except the
> major grid (MGRID). Line 355 (or 357?) of 14all.cgi defines 
> the color of
> these grid lines, and setting the color of "GRID" til 
> "#FFFFFF" (white) is
> possible, but what if I would like to exclude it?
> 
>         push
> @args,'--alt-y-grid','--lazy','-c','MGRID#000000','-c','GRID#FFFFFF';
> 
> 
> It should be some tweaking to @args, but how?  Anyone 
> familiar with this
> willing to share their experiences?
> 
> 
> Thanks in advance
>  Hakan Lindholm
>  Senior Network Administrator
>  Lycos Europe / Spray Network
> 
> 
> -- 
>                                           SPRAY NETWORK SERVICES AB
>        System, Network and Security Architecture and Administration
>               for Lycos Europe (http://pressroom.lycos.de/english/)
> *  S o l a r i s  *  I O S  *  L i n u x  *  W i n d o w s   N T  * 
> 
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
> 
> 

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list