[mrtg] Re: 14all/rrd graph problem

Nicolas Sayer Nick at loplop.net
Tue Jun 26 08:50:03 MEST 2001


Your browser will NOT (I'd like to say never) execute a script directly.
Either:
	- setup a http server (apache, jigsaw, whatever) on the system ;
	- execute your script by hand (or cron) ./14all.cgi "" (see section
	  DEBUGGING of "perldoc CGI.pm") and dump it into > foo.html, then
      read foo.html. Only problem, you'll have to generate, every XXminutes
      every page you could want to see...

Go for the first solution...


		cheers, Nick


On Mon, Jun 25, 2001 at 11:37:46AM -0500, Christopher Poetzel said:
> 
> 
> just switched from mrtg2.9.2 to 2.9.16 and rrd tool.
> To test this am collection some cpu values with
> the config file cpu.cfg.  This file gets updated
> every 5 minutes and has read write permission and
> is the rrd format.
> 
> i put 14all.cgi script in my /home/httpd/cgi-bin
> directory and edited the line
> 
> # if RRDs (rrdtool perl module) is not in the module search path (@INC)
> # uncomment the following line and change the path appropriatly:
> use lib qw(/usr/local/mrtg-2.9.16/lib/mrtg2);
> 
> to point to right place.
> 
> i created a simple html file with the link
> 
> file:/home/httpd/cgi-bin/14all.cgi?cpu=cfg=/home/httpd/html/cpu.cfg
> 
> When i click on this link all that happens is the 14all.cgi script
> appears in the broweser.  by this i mean that you see the code
> for the script and nothing happens.
> 
> Let me say that i have working with MRTG for over a year and also know
> my way around a perl script but i have no experience with cgi or
> with much web management stuff.  Currently there is no web server
> on the macnine where this is running.  It will be installed later
> this week.  Should this make a differnce when testing a cgi-script?
> i don't know.  if anyone out there can help me find the error of my
> ways i would appreciate it.
> 
> thanks,
> 
> chris poetzel
> cpoezel at anl.gov
> argonne national lab
> 
> 
> --
> 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
> 

-- 
Nicolas Sayer <Nick at loplop.net>
       +33 6 63.44.02.27

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