[smokeping-users] Re: Understanding SmokePing Graphs.
Larry.Roberts at expanets.com
Wed Aug 20 05:05:58 MEST 2003
Well the good news is that I remember getting that error as well. bad news
is that I don't remember the reason for it or the fix.
I bet someone else knows what it is though.
I believe that your document root should be :
Things to verify while waiting to see if anyone else recalls what causes the
speedycgi is installed correctly
Check in your smokeping.cgi file that it points to the right place.
Verify the "use lib" statements in both the smokeping.cgi and the smokeping
perl script is correct.
The path the config file is reachable and correct.
You say that you added the DNS entry to your server, do you mean the
smokeping server, or DNS server?
I would check that both the smokeping server, as well as the machine your
browsing to it from can ping it by name.
check permissions to your smokeping web directory.( /var/www/html/smokeping
as shown below)
check permissions to your smokeping configuration directory (
/usr/local/smokeping on mine )
I wish I remember what caused my error, and what I did to fix it, but I
honestly dont. Others who are more capable with Perl, or with apache and
modules can probably provide more details.
I would check in the /var/www/html/smokeping/data directory to see if you
have any rrd files in any of the subdirectories. This will at least let you
know if smokeping is polling. If so, then its just a matter of getting the
webpage to behave properly.
From: Dayo Adeyeye [mailto:dayo at ipnxnigeria.net]
Sent: Tuesday, August 19, 2003 9:41 PM
To: Roberts, Larry
Cc: lsharpe at pacificwireless.com.au; Smokeping Users
Subject: Re: [smokeping-users] Re: Understanding SmokePing Graphs.
Thanks for your help. Not working yet though.
You assumption is correct: this is a Red Hat 8 linux install and it supports
cgi files. I have added the following lines to my httpd.conf file:
ServerAdmin <mailto:Dayo at mycompany.com> Dayo at mycompany.com
CustomLog logs/smokeping.mydomain.com-access_log common
The path to my cgi-bin directory is /var/www/cgi-bin/ and Ive set the
permission on my smokeping.cgi file to 777.
When I do a ps -ax | grep smokeping, i get :
1241 ? S 0:00 /usr/bin/perl -w ./bin/smokeping
Yes, again you are right. I just copied my basepage.html to my web server
directory /var/www/html/basepage.html. In my virtualhost config above, what
should my DocumentRoot point to ?
When I do a <http://10.50.3.207/cgi-bin/smokeping.cgi>
http://10.50.3.207/cgi-bin/smokeping.cgi , I get the following
The server encountered an internal error and was unable to complete your
Premature end of script headers: smokeping.cgi
If you think this is a server error, please contact the webmaster
Wed 20 Aug 2003 03:14:10 AM WAT
Apache/2.0.40 (Red Hat Linux)
I also get this error when I run <http://smokeping.mydomain.com>
http://smokeping.mydomain.com which is the
ServerName in my virtualhost config above. I added smokeping.mydomain.com to
my hosts file so that my server can access it by name.
What should I do next ? Thanks for your help.
----- Original Message -----
From: "Roberts, Larry" < <mailto:Larry.Roberts at expanets.com>
Larry.Roberts at expanets.com>
To: "'Dayo Adeyeye'" < <mailto:dayo at ipnxnigeria.net> dayo at ipnxnigeria.net>
Cc: "Smokeping Users" < <mailto:smokeping-users at list.ee.ethz.ch>
smokeping-users at list.ee.ethz.ch>
Sent: Wednesday, August 20, 2003 2:32 AM
Subject: RE: [smokeping-users] Re: Understanding SmokePing Graphs..
> Well, I'm gonna take a guess here..
> First, I'm assuming a linux/apache install and you configured it to
> cgi files.
> Did you put your smokeping.cgi file inside your /cgi-bin directory and
> verify that it has correct permissions?
> In my case, I'm using a virtual host directive, and have told apache to
> for /cgi-bin/smokeping.cgi under the URL.
> Hence <http://smokeping.mycompany.com> http://smokeping.mycompany.com is
the URL I give out, and inside the
> httpd.conf file I have:
> <VirtualHost 18.104.22.168>
> ServerAdmin <mailto:me at mycompany.com> me at mycompany.com
> DocumentRoot /usr/local/apache2/smokeping
> ServerName smokeping.mycompany.com:80
> ErrorLog logs/smokeping.mycompany.com-error_log
> CustomLog logs/smokeping.mycompany.com-access_log common
> DirectoryIndex /cgi-bin/smokeping.cgi
> The path to my cgi-bin directory, under apache2 is:
> And the permissions on my smokeping.cgi file in that directory is 644.
> The directions can be someone confusing, however I took them one step at a
> time and was able to piece all the stuff together.
> I thought about documenting my install procedure and passing it along, but
> have yet to actually have a chance.
> I would try the following url:
> Verify that smokeping is running by doing:
> Ps -ax | grep smokeping
> You can look into the server error logs to see what the server thinks the
> problem is. I suspect you *may* have just copied the default html file
> to the webserver directory, which will not work. That is a template that
> cgi script uses to build the web page.
> That is a couple things to at least try. Good luck!
> -----Original Message-----
> From: Dayo Adeyeye [mailto:dayo at ipnxnigeria.net]
> Sent: Tuesday, August 19, 2003 8:09 PM
> To: Roberts, Larry
> Cc: Smokeping Users
> Subject: Re: [smokeping-users] Re: Understanding SmokePing Graphs..
> Importance: High
IPNX MEDIA HOSTING LTD
(A division of IPNX NIGERIA LTD)
4 Balarabe Musa Cresent,
Victoria Island, Lagos.
+234-1-4619943-6 Ext. 1212
"Security is not about risk avoidance; it's about risk management"
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
More information about the smokeping-users