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.
<br><br>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.
<br><br>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:<br><br>
Thu Dec 06 13:13:02 2007] [error] [client <a href="http://10.3.120.227">10.3.120.227</a>] [Thu Dec 6 13:13:02 2007] smokeping.cgi [client <a href="http://10.3.120.227">10.3.120.227</a>]: Use of uninitialized value in split at /opt/smokeping/lib/Smokeping.pm line 1359.
<br>[Thu Dec 06 13:13:03 2007] [error] [client <a href="http://10.3.120.227">10.3.120.227</a>] (8)Exec format error: exec of '/var/www/cgi-bin/image-cache/smokeping.png' failed, referer: <a href="http://10.3.120.131/cgi-bin/smokeping.cgi">
http://10.3.120.131/cgi-bin/smokeping.cgi</a>?<br>[Thu Dec 06 13:13:03 2007] [error] [client <a href="http://10.3.120.227">10.3.120.227</a>] Premature end of script headers: smokeping.png, referer: <a href="http://10.3.120.131/cgi-bin/smokeping.cgi">
http://10.3.120.131/cgi-bin/smokeping.cgi</a>?<br>[Thu Dec 06 13:13:03 2007] [error] [client <a href="http://10.3.120.227">10.3.120.227</a>] (8)Exec format error: exec of '/var/www/cgi-bin/image-cache/rrdtool.png' failed, referer:
<a href="http://10.3.120.131/cgi-bin/smokeping.cgi">http://10.3.120.131/cgi-bin/smokeping.cgi</a>?<br>[Thu Dec 06 13:13:03 2007] [error] [client <a href="http://10.3.120.227">10.3.120.227</a>] Premature end of script headers:
rrdtool.png, referer: <a href="http://10.3.120.131/cgi-bin/smokeping.cgi">http://10.3.120.131/cgi-bin/smokeping.cgi</a>?<br><br>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
<br><br>This is the error log when I select a target machine (joesgarage)<br><br>[Thu Dec 06 13:42:51 2007] [error] [client <a href="http://10.3.120.227">10.3.120.227</a>] (8)Exec format error: exec of '/var/www/cgi-bin/image-cache/CapeComputing/joesgarage_last_108000.png' failed, referer:
<a href="http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage">http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage</a><br>[Thu Dec 06 13:42:51 2007] [error] [client <a href="http://10.3.120.227">
10.3.120.227</a>] Premature end of script headers: joesgarage_last_108000.png, referer: <a href="http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage">http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
</a><br>[Thu Dec 06 13:42:51 2007] [error] [client <a href="http://10.3.120.227">10.3.120.227</a>] (8)Exec format error: exec of '/var/www/cgi-bin/image-cache/CapeComputing/joesgarage_last_10800.png' failed, referer:
<a href="http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage">http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage</a><br>[Thu Dec 06 13:42:51 2007] [error] [client <a href="http://10.3.120.227">
10.3.120.227</a>] Premature end of script headers: joesgarage_last_10800.png, referer: <a href="http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage">http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
</a><br>[Thu Dec 06 13:42:51 2007] [error] [client <a href="http://10.3.120.227">10.3.120.227</a>] (8)Exec format error: exec of '/var/www/cgi-bin/image-cache/CapeComputing/joesgarage_last_864000.png' failed, referer:
<a href="http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage">http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage</a><br>[Thu Dec 06 13:42:51 2007] [error] [client <a href="http://10.3.120.227">
10.3.120.227</a>] Premature end of script headers: joesgarage_last_864000.png, referer: <a href="http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage">http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
</a><br>[Thu Dec 06 13:42:52 2007] [error] [client <a href="http://10.3.120.227">10.3.120.227</a>] (8)Exec format error: exec of '/var/www/cgi-bin/image-cache/CapeComputing/joesgarage_last_34560000.png' failed, referer:
<a href="http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage">http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage</a><br>[Thu Dec 06 13:42:52 2007] [error] [client <a href="http://10.3.120.227">
10.3.120.227</a>] Premature end of script headers: joesgarage_last_34560000.png, referer: <a href="http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage">http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
</a><br>[Thu Dec 06 13:42:52 2007] [error] [client <a href="http://10.3.120.227">10.3.120.227</a>] (8)Exec format error: exec of '/var/www/cgi-bin/image-cache/smokeping.png' failed, referer: <a href="http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage">
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage</a><br>[Thu Dec 06 13:42:52 2007] [error] [client <a href="http://10.3.120.227">10.3.120.227</a>] Premature end of script headers: smokeping.png, referer:
<a href="http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage">http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage</a><br>[Thu Dec 06 13:42:52 2007] [error] [client <a href="http://10.3.120.227">
10.3.120.227</a>] (8)Exec format error: exec of '/var/www/cgi-bin/image-cache/rrdtool.png' failed, referer:<a href="http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage">http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage
</a><br>[Thu Dec 06 13:42:52 2007] [error] [client <a href="http://10.3.120.227">10.3.120.227</a>] Premature end of script headers: rrdtool.png, referer: <a href="http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage">
http://10.3.120.131/cgi-bin/smokeping.cgi?target=CapeComputing.joesgarage</a><br><br><br>/var/www<br><br>drwxr-xr-x 3 apache apache 4096 Dec 5 15:05 cgi-bin<br>drwxr-xr-x 3 root root 4096 Dec 4 16:29 error
<br>drwxr-xr-x 3 apache apache 4096 Dec 6 13:09 html<br>drwxr-xr-x 3 root root 4096 Dec 4 16:29 icons<br><br clear="all">/var/www/cgi-bin looks like this<br><br>-rwxr-xr-x 1 apache apache 314 Dec 5 12:43
test.cgi<br>-rwxr-xr-x 1 apache apache 2599 Dec 5 12:56 smokeping.cgi<br>drwxr-xr-x 4 apache apache 4096 Dec 5 15:35 image-cache<br><br>
/var/www/cgi-bin/image-cache looks like this<br><br>rwxr-xr-x 2 apache apache 4096 Dec 5 15:35 CapeComputing<br>drwxr-xr-x 2 apache apache 4096 Dec 5 15:31 __chartscache<br>-rwxr-xr-x 1 apache apache 3908 Dec 5 14:52
rrdtool.png<br>-rwxr-xr-x 1 apache apache 4382 Dec 5 14:52 smokeping.png<br><br>/var/www/cgi-bin/image-cache/CapeComputing looks like this<br><br>-rw-r--r-- 1 apache apache 13158 Dec 5 17:10 joesgarage_mini.png<br>-rw-r--r-- 1 apache apache 13883 Dec 5 17:10 workflow-server_mini.png
<br><br>These are the two machines I have setup in the config file to monitor<br>
<br>I can post my config file if you need me too.<br><br>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.<br><br>thanks<br><br> Doug
<br><br><br><br><br><br>-- <br>What profits a man if he gains the whole world yet loses his soul?