[smokeping-users] Re: Instalation problem - maybe perl

Peter Hawks hawks_pete at hotmail.com
Mon Dec 8 17:01:14 MET 2003


Marc,

thanks a lot for the infos you taught me. They were very useful. It seems 
now that smokeping started working. It has already created the directory 
with the .rrds , then it seems to be working.
But now I am going to ask for your help for another problem. Despite it runs 
storing the infos in the .rrds, I can't see them because there are some 
errors like:
1) The smokeping.cgi (actually pxt.cgi) file wasn't at the 
/usr/local/apache/cgi-bin directory when I started smokeping. I had to put 
it manually (I don't know if it is the correct way)
2) After I had put the smokeping.cgi in the cgi-bin directory, the template 
of Smokeping started working, but it doesn't show the graphics. It accuses 
some problems like:
- ERROR: Opening '/usr/local/apache/pid/pxt/BRA/router1a_mini.png' for 
write: Permission denied
- ERROR: Opening '/usr/local/apache/pid/pxt/BRA/router1b_mini.png' for 
write: Permission denied
- ERROR: creating  /usr/local/apache/pid/pxt/BRA/router1a: No such file or 
directory
- ERROR: creating  /usr/local/apache/pid/pxt/BRA/router1b: No such file or 
directory

Here is a copy of my config file and my smokeping.cgi (acctualy pxt.cgi) 
file. Idon't know if they might help, but...

/usr/local/smokeping-1.18/etc/config

*** General ***

owner    = Peter Hawks
contact  = hawks_pete at hotmail.com
mailhost = smtp.mailhost.abc
sendmail = /usr/lib/sendmail
imgcache = /usr/local/apache/pid
imgurl   = ../
datadir  = /usr/local/apache/pid
piddir   = /usr/local/apache/pid
cgiurl   = http://192.212.55.37/cgi-bin/
smokemail = /usr/local/smokeping-1.18/etc/smokemail
# specify this to get syslog logging
# syslogfacility = local0

         .
         .
         .

*** Presentation ***
template = /usr/local/smokeping-1.18/etc/basepage.html

         .
         .
         .

*** Probes ***

+ FPing

binary = /usr/local/fping-2.4b2_to/fping

            .
            .
            .
*** Targets ***

probe = FPing

menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of PXT Company. \
         Here you will learn all about the latency of our network.

+ pxt

menu = pxt
title = PXT Connectivity

++ BRA

menu = BRA
title = Routers BRA

+++ router1a

menu = router1a
title = router1a.pxt.com
host = router1a.pxt.com


/usr/local/apache/cgi-bin/pxt.cgi

#!/usr/bin/speedy -w
# -*-perl-*-

use lib qw(/usr/local/rrdtool-1.0.40/lib/perl);
use lib qw(/usr/local/smokeping-1.18/lib);

use Smokeping 1.18;

Smokeping::cgi("/usr/local/smokeping-1.18/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 }
    };
}


I don't know if it is a problem with SpeedyCGI or RRDtool. What do you 
think?
Thanks a lot Marc, you're helping me a lot. I think without your help I 
would never make it work.

Pete



>From: "Marc Powell" <marc at ena.com>
>To: "Peter Hawks" 
><hawks_pete at hotmail.com>,<smokeping-users at list.ee.ethz.ch>
>Subject: RE: [smokeping-users] Instalation problem - maybe perl
>Date: Fri, 5 Dec 2003 13:37:00 -0600
>
>
>
> > -----Original Message-----
> > From: Peter Hawks [mailto:hawks_pete at hotmail.com]
> > Sent: Friday, December 05, 2003 1:20 PM
> > To: Marc Powell; smokeping-users at list.ee.ethz.ch
> > Subject: RE: [smokeping-users] Instalation problem - maybe perl
> >
> > Marc,
> > Smokeping.pm does have the line:
> > use Digest::MD5 qw(md5_base64);
> >
> > Acctually I think that perl modules aren't installed correctly. But I
> > don't
> > know how I can check it.I have entered the install command you've
>taught
> > me
> > and the error with MD5.pm stoped, but now there anothe one:
> > >Can't locate Net/SMTP.pm in @INC (@INC contains:
> > >/usr/local/smokeping-1.18/lib /usr/local/rrdtool->1.0.40/lib/perl
> > >/usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
> > >/usr/lib/perl5/site_perl/5.6.1/i386->linux
>/usr/lib/perl5/site_perl/5.6.1
> > >/usr/lib/perl5/site_perl .) at /usr/local/smokeping-
> > >1.18/lib/Smokeping.pm
> > >line 973, <File> line 9.
> > That's why I'm strongly convinced that the problem is with perl. What
>can
> > I
> > do to install all the perl modules  Smokeping needs to work? I have
>almost
> > no experience with perl.
>
>There are quite a few perl modules that Smokeping depends on that are
>usually installed with perl. I'd run the following commands to make sure
>you have the ones referenced in Smokeping.pm:
>
>perl -MCPAN -e 'install Net::SMTP'
>perl -MCPAN -e 'install CGI'
>perl -MCPAN -e 'install Pod::Usage'
>perl -MCPAN -e 'install Getopt::Long'
>
>Try those for starters and then see where you stand.
>
>--
>Marc

_________________________________________________________________
MSN Hotmail, o maior webmail do Brasil.  http://www.hotmail.com

--
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://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the smokeping-users mailing list