[smokeping-users] Can't find lib.pm in @INC
Eric Chatham
echatham at broadvox.net
Tue Nov 25 20:17:41 CET 2008
Hi Ged,
Sorry about that. I didn't realize I was just replying to you only. :)
> I don't follow this. There must be more to a config file than that.
> What is it called? Where is it?
I was referring to the ./etc/config file in the Smokeping package. This is what I have setup for it. [Just a note, but I have tried changing the cgiurl = htpp://hppav.proxima.local/cgi-bin/smokeping.cgi with no improvement if at all any].
*** General ***
owner = Oakbrook 17-102
contact = sysadmin at proxima.local
mailhost = localhost
sendmail = /usr/lib/sendmail
# NOTE: do not put the Image Cache below cgi-bin # since all files under cgi-bin will be executed ... this is not # good for images.
imgcache = /opt/smokeping/imagecache
imgurl = /imgcache
datadir = /opt/smokeping/var
piddir = /opt/smokeping/var
cgiurl = http://hppav.proxima.local/smokeping/smokeping.cgi
smokemail = /opt/smokeping/etc/smokemail tmail = /opt/smokeping/etc/tmail # 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 = NSM at shekinya.net
from = smokealert at shekinya.net
+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
AVERAGE 0.5 1 1008
AVERAGE 0.5 12 4320
MIN 0.5 12 4320
MAX 0.5 12 4320
AVERAGE 0.5 144 720
MAX 0.5 144 720
MIN 0.5 144 720
*** Presentation ***
template = /opt/smokeping/etc/basepage.html
+ charts
menu = Charts
title = The most interesting destinations
++ stddev
sorter = StdDev(entries=>4)
title = Top Standard Deviation
menu = Std Deviation
format = Standard Deviation %f
++ max
sorter = Max(entries=>5)
title = Top Max Roundtrip Time
menu = by Max
format = Max Roundtrip Time %f seconds
++ loss
sorter = Loss(entries=>5)
title = Top Packet Loss
menu = Loss
format = Packets Lost %f
++ median
sorter = Median(entries=>5)
title = Top Median Roundtrip Time
menu = by Median
format = Median RTT %f seconds
+ overview
width = 600
height = 50
range = 10h
+ detail
width = 600
height = 200
unison_tolerance = 2
"Last 3 Hours" 3h
"Last 30 Hours" 30h
"Last 10 Days" 10d
"Last 400 Days" 400d
#+ hierarchies
#++ owner
#title = Host Owner
#++ location
#title = Location
*** Probes ***
+ FPing
binary = /usr/local/sbin/fping
#*** Slaves ***
#secrets=/opt/smokeping/etc/smokeping_secrets
#+boomer
#display_name=boomer
#color=0000ff
#+slave2
#display_name=another
#color=00ff00
*** Targets ***
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of xxx Company. \
Here you will learn all about the latency of our network.
#+ Test
#menu= Targets
#parents = owner:/Test/James location:/
#++ James
#menu = James
#title =James
#alerts = someloss
#slaves = boomer slave2
#host = james.address
#++ MultiHost
#menu = Multihost
#title = James and James as seen from Boomer #host = /Test/James /Test/James~boomer
+ Proxima
menu = Proxima
title = Proxima
++ DynDNS_Mailhop
menu = DynDNS Mailhop
title = DynDNS Mailhop 63.208.196.179
host = 63.208.196.179
alerts=someloss
> Now we need to see what's in the Apache error log for that request.
> Make sure the clock on your machine is correct. That's crucial in any
> server. Use NTP if possible.
The NTP clock is setup for the one we use here at work.
[root at hppav etc]# cat ntp.conf | grep -i server
# Use public servers from the pool.ntp.org project.
#broadcast 192.168.1.255 key 42 # broadcast server
#broadcast 224.0.1.1 key 42 # multicast server
#manycastserver 239.255.254.254 # manycast server
server 127.127.1.0
server 65.57.109.75
> Make a note of the exact time when you
> make the request and then you can check what was written in the log at
> that time, so you don't have to guess what was written when.
At 14:00, with Mozilla, I tried accessing http://hppav.proxima.local/cgi-bin/smokeping.cgi and I received the Error 500 Internal Server Error (all in text not HTML). When I tried to access http://hppav.proxima.local/cgi-bin/smokeping.cgi at 14:02 (with IE) at 14:02, I get page cannot be displayed.
Here are my access/error logs:
[root at hppav cgi-bin]# cat /opt/smokeping/etc/config | mail -s "Smokeping Config
File" sysadmin at proxima.local
[root at hppav cgi-bin]# tail /var/log/httpd/smokeping-error.log
[Tue Nov 25 13:41:20 2008] [error] [client 192.168.1.110] (13)Permission denied:
exec of '/var/www/cgi-bin/smokeping.cgi' failed
[Tue Nov 25 13:41:20 2008] [error] [client 192.168.1.110] Premature end of script headers: smokeping.cgi
[Tue Nov 25 13:41:22 2008] [error] [client 192.168.1.110] (13)Permission denied:
exec of '/var/www/cgi-bin/smokeping.cgi' failed
[Tue Nov 25 13:41:22 2008] [error] [client 192.168.1.110] Premature end of script headers: smokeping.cgi
[Tue Nov 25 13:41:23 2008] [error] [client 192.168.1.110] (13)Permission denied:
exec of '/var/www/cgi-bin/smokeping.cgi' failed
[Tue Nov 25 13:41:23 2008] [error] [client 192.168.1.110] Premature end of script headers: smokeping.cgi
[Tue Nov 25 14:00:38 2008] [error] [client 192.168.1.101] (13)Permission denied:
exec of '/var/www/cgi-bin/smokeping.cgi' failed
[Tue Nov 25 14:00:38 2008] [error] [client 192.168.1.101] Premature end of script headers: smokeping.cgi
[Tue Nov 25 14:02:26 2008] [error] [client 192.168.1.110] (13)Permission denied:
exec of '/var/www/cgi-bin/smokeping.cgi' failed
[Tue Nov 25 14:02:26 2008] [error] [client 192.168.1.110] Premature end of script headers: smokeping.cgi
[root at hppav cgi-bin]# tail /var/log/httpd/smokeping-access.log
192.168.1.110 - - [25/Nov/2008:13:19:24 -0500] "GET /smokeping/smokeping.cgi HTTP/1.1" 403 309
192.168.1.110 - - [25/Nov/2008:13:39:42 -0500] "GET /smokeping/smokeping.cgi HTTP/1.1" 403 309
192.168.1.110 - - [25/Nov/2008:13:40:36 -0500] "GET /cgi-binsmokeping.cgi HTTP/1.1" 403 306
192.168.1.110 - - [25/Nov/2008:13:40:43 -0500] "GET /cgi-bin/smokeping.cgi HTTP/1.1" 500 626
192.168.1.110 - - [25/Nov/2008:13:41:19 -0500] "GET /cgi-bin/smokeping.cgi HTTP/1.1" 500 626
192.168.1.110 - - [25/Nov/2008:13:41:20 -0500] "GET /cgi-bin/smokeping.cgi HTTP/1.1" 500 626
192.168.1.110 - - [25/Nov/2008:13:41:22 -0500] "GET /cgi-bin/smokeping.cgi HTTP/1.1" 500 626
192.168.1.110 - - [25/Nov/2008:13:41:23 -0500] "GET /cgi-bin/smokeping.cgi HTTP/1.1" 500 626
192.168.1.101 - - [25/Nov/2008:14:00:38 -0500] "GET /cgi-bin/smokeping.cgi HTTP/1.1" 500 626
192.168.1.110 - - [25/Nov/2008:14:02:26 -0500] "GET /cgi-bin/smokeping.cgi HTTP/1.1" 500 626
[root at hppav cgi-bin]#
> Have you gone through the installation documentation on the Smokeping
> Website to make sure you've taken all the necessary steps? If there
> are any steps you don't understand then do make that clear, it's not
> a time for glossing over anything you're not sure about and there's
> plenty of room to take wrong turnings. Systems can be very different,
> for example one system might have Apache stuff in /var/www and another
> might have the same stuff in /usr/local - don't feel bad about being
> somewhat confused at first.
I don't understand this step (from http://oss.oetiker.ch/smokeping/doc/smokeping_install.en.html):
"htdocs/cropper/*
To make the interactive graph-zoomer work, you have to place the content of the cropper directory somewhere on your webserver and adapt the links in basepage.html (see below)."
It says "see below" but nothing is listed.
"CGI::Carp
http://http://search.cpan.org/~lds/CGI.pm/
If you are using a version of Perl older than 5.8.1, you should consider installing a newer version of CGI::Carp (must be at least 1.24, included in CGI.pm-2.82). Otherwise any error messages generated by the CGI script will not show up quite as clean as they could in the web server error log. If you can't or don't want to upgrade CGI::Carp, you can also set the changecgiprogramname variable in the General section to the value no."
The link is broken, and I don't know if I need this based upon what I've been corresponding with.
"Webserver
http://httpd.apache.org/
Well I wont get much into this. The important thing is, to have a webserver which allows you to run CGI scripts. If you are using Apache I strongly recommend using the suexec system for running CGI scripts. Often it is sufficient to change the suexec binary to setuid root and restart Apache. Using suexec allow to run cgi scripts under proper user accounts."
I added a Virtual Host to the httpd.conf, the user/group that it uses is "apache." All the defaults were listed. Do you want to see that file? I'm not sure how to use suexec. Maybe that's what I need to do to make this work.
Thank you again for your enduring patience with me....:)
Eric Chatham
CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient.
More information about the smokeping-users
mailing list