[mrtg] Re: mrtg rrdtool mrtg-rrd.cgi

Aldo Salinas aesalinas at plant.pp.panam.edu
Fri Sep 6 19:58:57 MEST 2002


i changed the permissions on the folder but I still get the same errors.
Does it matter that I have both cgis (14all and mrtg-rrd) in the same
folder?  Mrtg works fine with 14all.cgi but i cannot get mrtg-rrd to work.

Aldo

-----Original Message-----
From: McDonald, Dan [mailto:Dan.McDonald at austinenergy.com]
Sent: Friday, September 06, 2002 10:19 AM
To: 'Aldo Salinas'
Subject: RE: [mrtg] Re: mrtg rrdtool mrtg-rrd.cgi


hopefully /path/to/mrtg1.cfg has been replaced with your actual path, e.g.
/var/www/html/mrtg/mrtg.cfg

then you have to give apache access to write the graph files, so you would
need to do something like:

chgrp apache /var/www/html/mrtg
chmod g+w /var/www/html/mrtg

That assumes that the user that runs the web browser is in the apache group.

Daniel J McDonald, CCIE #2495, CNX
Lan/Wan Integrator
Austin Energy
1.512.322.6739
dan.mcdonald at austinenergy.com


-----Original Message-----
From: Aldo Salinas [mailto:aesalinas at plant.pp.panam.edu]
Sent: Friday, September 06, 2002 10:13 AM
To: 'Mrtg at List.Ee.Ethz.Ch'
Subject: [mrtg] Re: mrtg rrdtool mrtg-rrd.cgi



This is what I have 

BEGIN { @config_files = qw(/path/to/mrtg1.cfg); }

and I still don't see any graphics.

I also tried

http://host/cgi-bin/mrtg-rrd.cgi/target.html 

and i get this

Error: RRDs::graph failed, Opening
'/var/www/html/mrtg/129.113.104.1_1-day.png' for write: Permission denied

What does this mean?

Thanks


-----Original Message-----
From: Will Saxon [mailto:WillS at housing.ufl.edu]
Sent: Friday, September 06, 2002 9:59 AM
To: Aldo Salinas
Subject: RE: [mrtg] Re: mrtg rrdtool mrtg-rrd.cgi


You have to tell it what config file to use. Near the top of the script is a
BEGIN {} block where you have to place the path(s) for your mrtg config file
in there. 

Something like:

BEGIN { @config_files = qw(/path/to/mrtg1.cfg /path/to/mrtg2.cfg); }

In windows I guess the /path/to would be replaced by something like
c:\path\to or whatever. I havent tried this in Windows.

-Will
	

> -----Original Message-----
> From: Aldo Salinas [mailto:aesalinas at plant.pp.panam.edu]
> Sent: Friday, September 06, 2002 10:53 AM
> To: 'Mrtg at List.Ee.Ethz.Ch'
> Subject: [mrtg] Re: mrtg rrdtool mrtg-rrd.cgi
> 
> 
> 
> I modified the mrtg-rrd.cgi use lib to point to where my 
> rrds.pm file is.
> Now I get the page but it does not display the graphs.  What 
> do i need to
> check for now?
> 
> -----Original Message-----
> From: Will Saxon [mailto:WillS at housing.ufl.edu]
> Sent: Friday, September 06, 2002 9:49 AM
> To: Aldo Salinas; Mrtg at List. Ee. Ethz. Ch (E-mail)
> Subject: RE: [mrtg] mrtg rrdtool mrtg-rrd.cgi
> 
> 
> mrtg-rrd requires that you put the config files you want to 
> see specifically
> in the .cgi file itself. Then, you access the page by:
> 
> http://your.webserver.com/<your_cgi_dir>/mrtg-rrd.cgi
> 
> The index page generated by mrtg-rrd.cgi uses the same daily 
> graphs as the
> detailed pages do, whereas 14all uses a smaller, legendless 
> graph (at least
> by default - is this changeable?).
> 
> The output from mrtg-rrd is a little easier on my eyes, 
> though probably a
> little less precise (?). I actually like it better. However, 
> the (perceived)
> precision and the ability to specify config files in the url were so
> important to us that we are using 14all instead, until we 
> figure out how to
> modify mrtg-rrd to accept url parameters or write our own cgi. 
> 
> Also, using mod_perl it seems like 14all might be a little faster than
> mrtg-rrd. I don't know if I have FastCGI set up correctly 
> though, so it may
> be using 'normal' cgi. mrtg-rrd quit working altogether when 
> I installed
> mod_perl and told it to handle all .cgi files. 
> 
> -Will
> 
> 
> 
> > -----Original Message-----
> > From: Aldo Salinas [mailto:aesalinas at plant.pp.panam.edu]
> > Sent: Friday, September 06, 2002 10:38 AM
> > To: Mrtg at List. Ee. Ethz. Ch (E-mail)
> > Subject: [mrtg] mrtg rrdtool mrtg-rrd.cgi
> > 
> > 
> > 
> > I've successfully configured mrtg with rrdtool and 14all.cgi. 
> >  It works just
> > the way I want to, but now I want to try mrtg-rrd.cgi I want 
> > to see the
> > difference between them but I cant seem to figure out how to 
> > access the
> > output from mrtg-rrd.cgi.  Can anyone out there give me a 
> > hand?  What do I
> > need to type on the address bar to see the graphs?  This is 
> > really a stupid
> > question, but bare with me since I'm not too familiar with 
> > mrtg, rrdtool, or
> > even cgi's   :)   at least not yet.
> > 
> > Redhat 7.2
> > MRTG 2.9.22
> > RRDTOOL 1.0.39
> > mrtg-rrd.cgi 0.5
> > 
> > I want to thank everyone for your time and help.
> > 
> > 
> > Aldo
> > 
> > --
> > 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
> 
> 

--
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