Help!
I am trying to get smokeping.cgi to work.
The command line works ( I get emails when a router is dropping packets)
It runs fine from command line 'sudo -u apache ./smokeping.cgi'
>From web page: I get
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.
More information about this error may be available in the server error log.
Log file entry:
[Fri Oct 19 14:42:08 2007] [error] Smokeping does not define
$Smokeping::VERSION--version check failed at
/var/www/vhosts/wtecpartners.com/httpdocs/smokeping.pl line 9.\nBEGIN
failed--compilation aborted at
/var/www/vhosts/wtecpartners.com/httpdocs/smokeping.pl line 9.\n
------ smokeping.cgi ( not using speedy intentionally)
#!/usr/bin/perl -w
# -*-perl-*-
use lib qw(/usr/local/rrdtool-1.2.23/lib/perl);
use lib qw(/var/www/vhosts/wtecpartners.com/httpdocs/smk/lib);
use CGI::Carp qw(fatalsToBrowser);
use Smokeping 2.002004 ;
Smokeping::cgi("/var/www/vhosts/wtecpartners.com/httpdocs/smk/etc/config.dis
t");
---- config file
owner = Peter Random
contact = [EMAIL PROTECTED]
mailhost = my.mail.host
sendmail = /usr/sbin/sendmail
imgcache = /var/www/vhosts/wtecpartners.com/httpdocs/smokeping/cache
imgurl = http://www.wtecpartners.com/smokeping/cache
datadir = /tmp/smokeping-ms/data
piddir = /tmp/smokeping-ms/var
cgiurl = http://www.wtecpartners.com/smokeping.pl
smokemail = /var/www/vhosts/wtecpartners.com/httpdocs/smk/etc/smokemail.dist
tmail = /var/www/vhosts/wtecpartners.com/httpdocs/smk/etc/tmail.dist
# specify this to get syslog logging
syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no
*** Alerts ***
to = [EMAIL PROTECTED]
from = [EMAIL PROTECTED]
+someloss
type = loss
# in percent
pattern = >0%,*12*,>0%,*12*,>0%
comment = loss 3 times in a row
*** Database ***
step = 300
pings = 20
# consfn mrhb steps total.
-----
James Gorman
Principal
Working Technology Partners
http://www.workingtechnologypartners.com
(888) 644-9206
(301) 448-5964 (cell)
[EMAIL PROTECTED]
_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users