Answer the question
In order to leave comments, you need to log in
[SOLVED] CGI scripts not working
Hello cheaters!
I'm trying to make server temperature graphs available in the browser
Lighttpd + Fastcgi is running on the server. Installed rdtool.
I set up lm-sensors, sensord in the background fills the ring database in the rrd file.
According to man from sensord, it automatically generated the cgi script /usr/lib/cgi-bin/sensor.cgi
As I understand it, it is this cgi script that will run the command to generate graph images and it will also display them as an html file.
Further I read:
In /var/www I make a symbolic link to /usr/lib/cgi-bin
But, unfortunately, when I try to open a cgi file in Chrome or Firefox, I am only prompted to download it. Works only in Internet Explorer 6 and then not completely:
Finally, you should be able to view your sensor readings from the URL `http://local‐
host/cgi-bin/sensord.cgi'.
I ask to help who faced a similar problem.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Is there something like this in lighttpd.conf:
cgi.assign = (".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl")
?
Set yourself munin, this is the same rrdtool + perl scripts that generate beautiful graphics. There are plugins for monitoring a lot of things (and temperature), and just write your own plugin if necessary.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question