[smokeping-users] smokeping.cgi webpage problems

Priebe, Mike mp at rice.willmar.mn.us
Fri Dec 2 16:59:24 MET 2005

Hello List!
I'm having a problem accessing the smokeping.cgi webpage on my Mandrake/Apache server. When I try to access, the browser displays the following message.........
"The Server encountered an internal error or misconfiguration and was unable to complete your request"

Checked the apache logs...

[Fri Dec 02 09:05:25 2005] [error] [client] Can't locate Smokeping.pm in @INC (@INC contains: /home/mp/tmp/smokeping_stuff/smokeping-2.0.5/lib /usr/local/rrdtool-1.2.6/lib/perl/5.8.5/i386-linux-thread-multi /usr/local/rrdtool-1.2.6/lib/perl/5.8.5 /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl .) at /var/www/cgi-bin/smokeping.cgi line 7.
[Fri Dec 02 09:05:25 2005] [error] [client] BEGIN failed--compilation aborted at /var/www/cgi-bin/smokeping.cgi line 7.
[Fri Dec 02 09:05:25 2005] [error] [client] speedy_backend[14737]: perl_parse error
[Fri Dec 02 09:05:26 2005] [error] [client] speedy[14735]: Cannot spawn backend process
[Fri Dec 02 09:05:26 2005] [error] [client] Premature end of script headers: smokeping.cgi

The smokeping.cgi is located in the default cgi directory /var/www/cgi-bin from which I can execute other cgi's. 

When I execute the cgi manually, I do not see any errors.. /var/www/cgi-bin perl smokeping.cgi

The weblog states that it can't locate Smokeping.pm, but when I use the path mentioned in the error log from /var/www/cgi-bin, it finds it no problem..

[root at nagios2 cgi-bin]# ls -la /home/mp/tmp/smokeping_stuff/smokeping-2.0.5/lib
total 240
drwxr-xr-x  4 root   root     4096 Nov 22 13:43 ./
drwxr-xr-x  9 root   root     4096 Nov 28 10:51 ../
-rw-r--r--  1    510     50  26178 Feb 22  2005 BER.pm
drwxr-xr-x  2 root   root     4096 Nov 22 13:43 Config/
drwxr-xr-x  4 root   root     4096 Nov 22 13:43 Smokeping/
-rwxr-xr-x  1 apache apache 116238 Nov 14 16:27 Smokeping.pm*
-rw-r--r--  1    510     50  33720 Feb 22  2005 SNMP_Session.pm
-rw-r--r--  1    510     50  38889 Feb 22  2005 SNMP_util.pm
[root at nagios2 cgi-bin]#

The error log also mentions a problem with smokeping.cgi line 7

[root at nagios2 cgi-bin]#cat smokeping.cgi
#!/usr/bin/speedy -w
# -*-perl-*-

use lib qw(/usr/local/rrdtool-1.2.6/lib/perl/5.8.5);
use lib qw(/home/mp/tmp/smokeping_stuff/smokeping-2.0.5/lib);

use Smokeping 2.000005;

I did not modify line 7.  I'm guessing that this issue has something to do with permissions. I have limited experience with linux, but have successfully loaded several programs such as Nagios in the past. Have spent many hours trying to figure this out. Any suggestions would be greatly appreciated! Cheers!


"This e-mail transmission is for the sole use of the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure, or distribution violates confidentiality, and privacy laws; and is prohibited.  If you are not the intended recipient, please notify the sender immediately and delete all copies of the message.  Thank you."

Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

More information about the smokeping-users mailing list