[smokeping-users] smoketrace window

Peter Kristolaitis alter3d at alter3d.ca
Thu Jan 8 16:55:48 CET 2009


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