[smokeping-users] frustrated with smokeping install ... smokeping.cgi install

Doug Lochart dlochart at gmail.com
Thu Dec 6 19:45:15 CET 2007


I am installing smokeping on request from a manager.  I am not a PERL CGI
guru which is probably why I am having so much trouble.  I find myself
trying to HACK the solution as I cannot find the appropriate help I need.  I
also have little inkling in what smokeping can do.  I know it is a latency
monitor but when someone like me looks at the config file you get the
feeling that you should already know about smokeping inside and out.  Okay
enough ranting (sorry) just so frustrated.  Here is what I have done so far.

I believe I have a successful install.  I can run smokeping from the command
line and I see it running in ps and messages in /var/log/messages but I do
not know what it produces.  Meaning is there a directory to watch for data
it collects?  What am I looking for?  I have smokeping started/running as
root ... I assume this is correct as I did not see mention to the contrary.

Then I get to the CGI part.  My apache is from a standard redhat rpm install
and configured for CGI and runs as the apache user.  I have speedy installed
because once I activate the cgi I see that speedy is running.  When I go to
the smokeping.cgi in the browser I see some things incluing the left hand
menu but I do not see the rrdtool and smokeping images that are supposed to
be displayed at the bottom of the menu.  My apache error log has this:

Thu Dec 06 13:13:02 2007] [error] [client 10.3.120.227] [Thu Dec  6 13:13:02
2007] smokeping.cgi [client 10.3.120.227]: Use of uninitialized value in
split at /opt/smokeping/lib/Smokeping.pm line 1359.
[Thu Dec 06 13:13:03 2007] [error] [client 10.3.120.227] (8)Exec format
error: exec of '/var/www/cgi-bin/image-cache/smokeping.png' failed, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?
[Thu Dec 06 13:13:03 2007] [error] [client 10.3.120.227] Premature end of
script headers: smokeping.png, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?
[Thu Dec 06 13:13:03 2007] [error] [client 10.3.120.227] (8)Exec format
error: exec of '/var/www/cgi-bin/image-cache/rrdtool.png' failed, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?
[Thu Dec 06 13:13:03 2007] [error] [client 10.3.120.227] Premature end of
script headers: rrdtool.png, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?

The first one is because I think I have commented out the slave section in
the config as I don't need it and really don't understand it yet.  I am
really confused because it looks like the images are trying to be exec'd ??
I have looked around on the net but cannot seem to find an answer. Here are
my directory heirarchies.  I have apache owning cgi-bin and html and all the
way down beneath them

This is the error log when I select a target machine (joesgarage)

[Thu Dec 06 13:42:51 2007] [error] [client 10.3.120.227] (8)Exec format
error: exec of
'/var/www/cgi-bin/image-cache/CapeComputing/joesgarage_last_108000.png'
failed, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
[Thu Dec 06 13:42:51 2007] [error] [client 10.3.120.227] Premature end of
script headers: joesgarage_last_108000.png, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
[Thu Dec 06 13:42:51 2007] [error] [client 10.3.120.227] (8)Exec format
error: exec of
'/var/www/cgi-bin/image-cache/CapeComputing/joesgarage_last_10800.png'
failed, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
[Thu Dec 06 13:42:51 2007] [error] [client 10.3.120.227] Premature end of
script headers: joesgarage_last_10800.png, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
[Thu Dec 06 13:42:51 2007] [error] [client 10.3.120.227] (8)Exec format
error: exec of
'/var/www/cgi-bin/image-cache/CapeComputing/joesgarage_last_864000.png'
failed, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
[Thu Dec 06 13:42:51 2007] [error] [client 10.3.120.227] Premature end of
script headers: joesgarage_last_864000.png, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
[Thu Dec 06 13:42:52 2007] [error] [client 10.3.120.227] (8)Exec format
error: exec of
'/var/www/cgi-bin/image-cache/CapeComputing/joesgarage_last_34560000.png'
failed, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
[Thu Dec 06 13:42:52 2007] [error] [client 10.3.120.227] Premature end of
script headers: joesgarage_last_34560000.png, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
[Thu Dec 06 13:42:52 2007] [error] [client 10.3.120.227] (8)Exec format
error: exec of '/var/www/cgi-bin/image-cache/smokeping.png' failed, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
[Thu Dec 06 13:42:52 2007] [error] [client 10.3.120.227] Premature end of
script headers: smokeping.png, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
[Thu Dec 06 13:42:52 2007] [error] [client 10.3.120.227] (8)Exec format
error: exec of '/var/www/cgi-bin/image-cache/rrdtool.png' failed, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
[Thu Dec 06 13:42:52 2007] [error] [client 10.3.120.227] Premature end of
script headers: rrdtool.png, referer:
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage


/var/www

drwxr-xr-x 3 apache apache 4096 Dec  5 15:05   cgi-bin
drwxr-xr-x 3 root   root   4096 Dec  4 16:29         error
drwxr-xr-x 3 apache apache 4096 Dec  6 13:09   html
drwxr-xr-x 3 root   root   4096 Dec  4 16:29         icons

/var/www/cgi-bin  looks like this

-rwxr-xr-x 1 apache apache  314 Dec  5 12:43 test.cgi
-rwxr-xr-x 1 apache apache 2599 Dec  5 12:56 smokeping.cgi
drwxr-xr-x 4 apache apache 4096 Dec  5 15:35 image-cache

/var/www/cgi-bin/image-cache  looks like this

rwxr-xr-x 2 apache apache 4096 Dec  5 15:35 CapeComputing
drwxr-xr-x 2 apache apache 4096 Dec  5 15:31 __chartscache
-rwxr-xr-x 1 apache apache 3908 Dec  5 14:52 rrdtool.png
-rwxr-xr-x 1 apache apache 4382 Dec  5 14:52 smokeping.png

/var/www/cgi-bin/image-cache/CapeComputing  looks like this

-rw-r--r-- 1 apache apache 13158 Dec  5 17:10 joesgarage_mini.png
-rw-r--r-- 1 apache apache 13883 Dec  5 17:10 workflow-server_mini.png

These are the two machines I have setup in the config file to monitor

I can post my config file if you need me too.

Basically why am I getting these errors?  I know it is something I have done
or not done but I followed the instructions as best I could.

thanks

 Doug





-- 
What profits a man if he gains the whole world yet loses his soul?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20071206/7d7f235e/attachment-0001.html 


More information about the smokeping-users mailing list