[smokeping-users] FW: smoketrace window

Michael Dafforn mdafforn at netplatform.com
Thu Jan 8 17:41:32 CET 2009


That was the next line.

I was going off of the documentation:

When installing SmokePing, this file has to be adjusted to fit your
local system. Three paths have to be entered.

 use lib qw(/usr/pack/rrdtool-1.0.33-to/lib/perl);		

One pointing to your B<rrdtool> installation			<**** line 4 in my file

 use lib qw(/home/oetiker/public_html/smokeping/lib);		

One pointing to the place where you have installed the SmokePing libraries	<**** line 5 in my file

 use Smokeping;

 Smokeping::cgi("/usr/local/smokeping/etc/config");



This is (the relevant part of) my smokeping.cgi:

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

use lib qw(/usr/bin/);
use lib qw(/usr/local/smokeping/lib/);
use CGI::Carp qw(fatalsToBrowser);

use Smokeping 2.003000;

Smokeping::cgi("/usr/local/smokeping/etc/config");

=head1 NAME

smokeping.cgi - SmokePing webfrontend


-----Original Message-----
From: Peter Kristolaitis [mailto:alter3d at alter3d.ca] 
Sent: Thursday, January 08, 2009 9:56 AM
To: Michael Dafforn
Cc: smokeping-users at lists.oetiker.ch
Subject: Re: [smokeping-users] smoketrace window

You shouldn't be pointing 'use lib' to a directory with binaries in it.
 It should point to wherever you have the SmokePing modules.

For example, my smokeping.cgi has in it:
    use lib qw(/var/www/smokeping/lib);

If I do 'ls -l /var/www/smokeping/lib', I get:
    -rw-r--r--  1 root  daemon   26178 Feb 11  2005 BER.pm
    drwxr-xr-x  3 root  daemon     512 Jul 24 14:25 CGI
    drwxr-xr-x  3 root  daemon     512 Jul 24 14:24 Config
    drwxr-xr-x  2 root  daemon     512 Jul 24 14:24 Digest
    drwxr-xr-x  2 root  daemon     512 Jul 24 14:25 JSON
    -rwxr-xr-x  1 root  daemon   18034 Jul 24 14:25 JSON.pm
    drwxr-xr-x  3 root  daemon     512 Jul 24 14:25 Qooxdoo
    -rw-r--r--  1 root  daemon   33720 Feb 11  2005 SNMP_Session.pm
    -rw-r--r--  1 root  daemon   38889 Feb 11  2005 SNMP_util.pm
    drwxr-xr-x  5 root  daemon     512 Jul 24 14:24 Smokeping
    -rw-r--r--  1 root  daemon  183260 Jul 24 13:37 Smokeping.pm

Your 'use lib' should point to wherever you have these files.



Michael Dafforn wrote:
> Ok, I must be getting closer, as now I actually have things showing up in the error_log:
> 
> Parameter to use lib must be directory, not file at /var/www/html/smokeping.cgi line 4
> 
> Line 4 is:
> 
> use lib qw(/usr/bin/);
> 
> which is a directory, with rrdtool, rrdupdate, and rrdcgi in it.
> 
> Thanks for any help!
> 
-- 
Peter Kristolaitis
DBA / Code Monkey / General Geek

OpenPGP/GPG Key available from pgp.mit.edu

Key Fingerprint: 695D 7616 9903 6002 5756
                 D234 6E96 34B2 F974 14FE



More information about the smokeping-users mailing list