Hello there:
I am having problems with viewing the smokeping process results, the
smokeping.cgi file. I am on RED HAT 9. When I installed and run the s/w, it was
all error free:
[EMAIL PROTECTED] smokeping-1.30]# ./bin/smokeping
Daemonizing ./bin/smokeping ...
After the s/w was up and running, I tried to view smokeping.cgi through the
browser, which i uploaded to my website before, it returns me "Internal server
error".
I wanted to check the log file of the apache server. I assume it is in the dir
/usr/local/apache2/logs/, however, it is empty...(no log file??!!!)
Can anybody please help me out here? I spent a week to try to make the
smokeping work properly. It seems like I am just a step away.
This is the modification I made to the bin/smokeping:
#!/usr/bin/perl -w
# -*-perl-*-
use lib qw(/root/suzy_project/smokePing/rrdtool-1.0.33/perl-shared/blib/lib);
use lib qw(/root/suzy_project/smokePing/rrdtool-1.0.33/perl-shared/blib/arch);
use lib qw(/root/usr/local/rrdtool-1.0.33/lib/perl/);
use lib qw(/root/suzy_project/smokePing/smokeping-1.30/lib/);
use Smokeping 1.30;
Smokeping::main("/root/suzy_project/smokePing/smokeping-1.30/etc/config");
This is part of the modification I made to the etc/config:
*** General ***
owner = Jia Hui Wu
contact = [EMAIL PROTECTED]
mailhost = smtp.mailhost.abc
sendmail = /usr/lib/sendmail
imgcache = /usr/local/apache2/manual/images/
imgurl = /usr/local/apache2/manual/images/
datadir = /root/suzy_project/smokePing/suzyPro/myVar/
piddir = /root/suzy_project/smokePing/suzyPro/myVar/
pagedir = /root/suzy_project/smokePing/suzyPro/myVar/
cgiurl = http://sodee.netfirms.com/cgi-bin/smokeping.cgi
smokemail = /root/suzy_project/smokePing/smokeping-1.30/etc/smokemail
This is the cgi file I uploaded onto my websites:
#!/usr/bin/speedy -w
# -*-perl-*-
use lib qw(/usr/local/rrdtool-1.0.33/lib/perl/);
use lib qw(/root/suzy_project/smokePing/smokeping-1.30/lib/);
use Smokeping 1.30;
Smokeping::cgi("/root/suzy_project/smokePing/smokeping-1.30/etc/config");
BEGIN {
if ($ENV{SERVER_SOFTWARE}) {
$SIG{__WARN__} = sub { print "Content-Type:
text/plain\n\n".(shift)."\n"; };
$SIG{__DIE__} = sub { print "Content-Type:
text/plain\n\n".(shift)."\n"; exit 1 }
};
}
Thanks...
Suzy
--
Unsubscribe mailto:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi