<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Bookman Old Style";
        panose-1:2 5 6 4 5 5 5 2 2 4;}
@font-face
        {font-family:"Baskerville Old Face";
        panose-1:2 2 6 2 8 5 5 2 3 3;}
@font-face
        {font-family:Biondi;
        panose-1:2 0 5 5 3 0 0 2 0 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Bookman Old Style","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Bookman Old Style","serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Bookman Old Style","serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal"><span style="color:#1F497D">I think I figured this out.&nbsp; There is a SELinux setting in /etc/selinux/config.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">If you set the &#8220;selinux=permissive&#8221; the page loads with no problems.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<p class="MsoNormal"><i><span style="font-size:11.0pt;font-family:&quot;Baskerville Old Face&quot;,&quot;serif&quot;;
color:#1F497D">Eric Chatham<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="font-size:11.0pt;font-family:&quot;Baskerville Old Face&quot;,&quot;serif&quot;;
color:#1F497D">Broadvox MIS Department<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="font-size:8.0pt;font-family:Biondi;
color:#1F497D">(216) 373-4683<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="font-size:11.0pt;font-family:&quot;Baskerville Old Face&quot;,&quot;serif&quot;;
color:#1F497D">echatham@broadvox.net<o:p></o:p></span></i></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> smokeping-users-bounces@lists.oetiker.ch [mailto:smokeping-users-bounces@lists.oetiker.ch]
<b>On Behalf Of </b>Eric Chatham<br>
<b>Sent:</b> Monday, February 09, 2009 13:33<br>
<b>To:</b> smokeping-users@lists.oetiker.ch<br>
<b>Subject:</b> [smokeping-users] Can't find lib.pm in @INC<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<pre>Hi Ged,<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>I got back to trying to make this work.&nbsp; The last item we were discussing was to output the listing for Smokeping.cgi.&nbsp; I&#8217;m still stuck on this error:<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>[Mon Feb 09 11:59:01 2009] [error] [client &lt;IP removed&gt;] Premature end of script headers: smokeping.cgi<o:p></o:p></pre>
<pre>[Mon Feb 09 11:59:11 2009] [error] [client &lt;IP removed&gt;] (13)Permission denied: exec of '/opt/smokeping/htdocs/smokeping.cgi' failed<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Here is my output for ls -l.&nbsp; This is the directory in which Smokeping is supposed to execute.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>-rwxrwxrwx 1 root root 2719 Feb&nbsp; 9 11:45 /opt/smokeping/htdocs/smokeping.cgi<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>I&#8217;m not sure who is authorized to run httpd process on the server, but here is the process index for users using httpd at the moment.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>[~ smokeping]# ps -aux | grep httpd<o:p></o:p></pre>
<pre>Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ<o:p></o:p></pre>
<pre>root&nbsp;&nbsp;&nbsp;&nbsp; 22551&nbsp; 0.0&nbsp; 0.1&nbsp; 17832&nbsp; 5616 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 11:56&nbsp;&nbsp; 0:00 /usr/sbin/httpd<o:p></o:p></pre>
<pre>apache&nbsp;&nbsp; 22553&nbsp; 0.0&nbsp; 0.1&nbsp; 21092&nbsp; 4832 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 11:56&nbsp;&nbsp; 0:00 /usr/sbin/httpd<o:p></o:p></pre>
<pre>apache&nbsp;&nbsp; 22554&nbsp; 0.0&nbsp; 0.1&nbsp; 21092&nbsp; 4832 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 11:56&nbsp;&nbsp; 0:00 /usr/sbin/httpd<o:p></o:p></pre>
<pre>apache&nbsp;&nbsp; 22555&nbsp; 0.0&nbsp; 0.1&nbsp; 21092&nbsp; 4828 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 11:56&nbsp;&nbsp; 0:00 /usr/sbin/httpd<o:p></o:p></pre>
<pre>apache&nbsp;&nbsp; 22556&nbsp; 0.0&nbsp; 0.1&nbsp; 21092&nbsp; 4828 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 11:56&nbsp;&nbsp; 0:00 /usr/sbin/httpd<o:p></o:p></pre>
<pre>apache&nbsp;&nbsp; 22557&nbsp; 0.0&nbsp; 0.1&nbsp; 21092&nbsp; 4832 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 11:56&nbsp;&nbsp; 0:00 /usr/sbin/httpd<o:p></o:p></pre>
<pre>apache&nbsp;&nbsp; 22558&nbsp; 0.0&nbsp; 0.1&nbsp; 21092&nbsp; 4828 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 11:56&nbsp;&nbsp; 0:00 /usr/sbin/httpd<o:p></o:p></pre>
<pre>apache&nbsp;&nbsp; 22559&nbsp; 0.0&nbsp; 0.1&nbsp; 21092&nbsp; 4828 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 11:56&nbsp;&nbsp; 0:00 /usr/sbin/httpd<o:p></o:p></pre>
<pre>apache&nbsp;&nbsp; 22560&nbsp; 0.0&nbsp; 0.1&nbsp; 21092&nbsp; 4828 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 11:56&nbsp;&nbsp; 0:00 /usr/sbin/httpd<o:p></o:p></pre>
<pre>root&nbsp;&nbsp;&nbsp;&nbsp; 22670&nbsp; 0.0&nbsp; 0.0&nbsp;&nbsp; 3908&nbsp;&nbsp; 668 pts/0&nbsp;&nbsp;&nbsp; S&#43;&nbsp;&nbsp; 12:28&nbsp;&nbsp; 0:00 grep httpd<o:p></o:p></pre>
<div style="border:none;border-bottom:solid windowtext 1.5pt;padding:0in 0in 1.0pt 0in">
<pre><o:p>&nbsp;</o:p></pre>
</div>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Hi Eric,<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>On Tue, 25 Nov 2008, Eric Chatham wrote:<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; Sorry about that.&nbsp; I didn't realize I was just replying to you only. :)<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>I thought not. :)&nbsp; I think people will be able to follow the thread.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; &gt; I don't follow this.&nbsp; There must be more to a config file than that.<o:p></o:p></pre>
<pre>&gt; &gt; What is it called?&nbsp; Where is it?<o:p></o:p></pre>
<pre>&gt;<o:p>&nbsp;</o:p></pre>
<pre>&gt; I was referring to the ./etc/config file in the Smokeping package.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Please always give the full path to things.&nbsp; That way I'll know you<o:p></o:p></pre>
<pre>know whereabouts it is in your filesystem. :)<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; This is what I have setup for it.&nbsp; [Just a note, but I have tried<o:p></o:p></pre>
<pre>&gt; changing the cgiurl =<o:p></o:p></pre>
<pre>&gt; htpp://hppav.proxima.local/cgi-bin/smokeping.cgi with no improvement<o:p></o:p></pre>
<pre>&gt; if at all any].<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Try to work a bit more like a detective when you're finding why things<o:p></o:p></pre>
<pre>don't do what you expect in a computer.&nbsp; Look for some explanation -<o:p></o:p></pre>
<pre>it's almost always there with a Linux box as it will log all kinds of<o:p></o:p></pre>
<pre>things, you just have to know where to look.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; *** General ***<o:p></o:p></pre>
<pre>&gt; [snip]<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; cgiurl&nbsp;&nbsp; = <a href="http://hppav.proxima.local/smokeping/smokeping.cgi">http://hppav.proxima.local/smokeping/smokeping.cgi</a><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>I use the form<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>cgiurl = <a href="http://hostname/cgi-bin/smokeping.cgi">http://hostname/cgi-bin/smokeping.cgi</a><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>and browse to that location for the Smokeping top-level page.&nbsp; It<o:p></o:p></pre>
<pre>doesn't necessarily mean that waht you have there is wrong, but I'd<o:p></o:p></pre>
<pre>need to look at the directory tree and Apache config to know.&nbsp; The<o:p></o:p></pre>
<pre>main thing is that Apache has to be able to (1) find and (2) execute<o:p></o:p></pre>
<pre>smokeping.cgi, which we'll come back to.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; smokemail = /opt/smokeping/etc/smokemail tmail = /opt/smokeping/etc/tmail # <o:p></o:p></pre>
<pre>&gt; specify this to get syslog logging syslogfacility = local0 # each probe is <o:p></o:p></pre>
<pre>&gt; now run in its own process # disable this to revert to the old behaviour # <o:p></o:p></pre>
<pre>&gt; concurrentprobes = no<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>This should not all be on one line - cut'n'paste error?<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; *** Alerts ***<o:p></o:p></pre>
<pre>&gt; [snip]<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>We don't need to worry about this for the moment.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; *** Database ***<o:p></o:p></pre>
<pre>&gt; [snip]<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Fine.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; *** Presentation ***<o:p></o:p></pre>
<pre>&gt; [snip]<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>We don't need to worry about this for the moment.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; *** Probes ***<o:p></o:p></pre>
<pre>&gt; [snip]<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>We don't need to worry about this for the moment.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>It surprises me is that you seem to have a rather old configuration -<o:p></o:p></pre>
<pre>more recent Smokepings have a very short 'config' file and it includes<o:p></o:p></pre>
<pre>several other files from a directory called 'config.d' (which is<o:p></o:p></pre>
<pre>usually in the same place as 'config').&nbsp; I'm guessing that you<o:p></o:p></pre>
<pre>installed Smokeping by using a package manager, and not by grabbing<o:p></o:p></pre>
<pre>the tarball from the Smokeping site.&nbsp; That's OK, but it can get a bit<o:p></o:p></pre>
<pre>confusing because packages tend to be a bit out of date, and very<o:p></o:p></pre>
<pre>often the packager shuffles things all around to suit his filesystem<o:p></o:p></pre>
<pre>layout preferences.&nbsp; We'll muddle through somehow. :)<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; &gt; Now we need to see what's in the Apache error log for that request.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; At 14:00, with Mozilla, I tried accessing<o:p></o:p></pre>
<pre>&gt; <a href="http://hppav.proxima.local/cgi-bin/smokeping.cgi">http://hppav.proxima.local/cgi-bin/smokeping.cgi</a> and I received the<o:p></o:p></pre>
<pre>&gt; Error 500 Internal Server Error (all in text not HTML).<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>The error codes (like error 500 'Internal server error') are crucial<o:p></o:p></pre>
<pre>to figuring outwhat's going on.&nbsp; If you're going to use a Webserver<o:p></o:p></pre>
<pre>for very much at all (and if you're going to use Smokeping, you are)<o:p></o:p></pre>
<pre>then you should learn what at least some of them by heart.&nbsp; The first<o:p></o:p></pre>
<pre>ones to start with are 200, 304, 403, 404 and 500.&nbsp; You should also<o:p></o:p></pre>
<pre>learn the structure of the error codes, for example 2xx means things<o:p></o:p></pre>
<pre>are OK, 5xx means things are not good.&nbsp; Google for &quot;HTTP error codes&quot;<o:p></o:p></pre>
<pre>and spend some quality time with them.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>In this acse we see a 500 which tells us we need to look in the server<o:p></o:p></pre>
<pre>error log, because in there you'll find something similar to what you<o:p></o:p></pre>
<pre>would see if you were running the script at the command line, assuming<o:p></o:p></pre>
<pre>the script might be capable of running properly at the command line,<o:p></o:p></pre>
<pre>which it most likely isn't.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; When I tried to access<o:p></o:p></pre>
<pre>&gt; <a href="http://hppav.proxima.local/cgi-bin/smokeping.cgi">http://hppav.proxima.local/cgi-bin/smokeping.cgi</a> at 14:02 (with IE)<o:p></o:p></pre>
<pre>&gt; at 14:02, I get page cannot be displayed.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Same error, but the browser chose a different way to describe it.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; Here are my access/error logs:<o:p></o:p></pre>
<pre>&gt; [snip]<o:p></o:p></pre>
<pre>&gt; [Tue Nov 25 14:00:38 2008] [error] [client 192.168.1.101] (13)Permission <o:p></o:p></pre>
<pre>&gt; denied: exec of '/var/www/cgi-bin/smokeping.cgi' failed<o:p></o:p></pre>
<pre>&gt; [Tue Nov 25 14:00:38 2008] [error] [client 192.168.1.101] Premature end of <o:p></o:p></pre>
<pre>&gt; script headers: smokeping.cgi<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>That tells us something we need to know.&nbsp; It says that the OS refused<o:p></o:p></pre>
<pre>permission for Apache to execute smokeping.cgi, which means that (1)<o:p></o:p></pre>
<pre>you didn't see what you were hoping for in the browser and (2) there's<o:p></o:p></pre>
<pre>that message in the error log. :)<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; [Tue Nov 25 14:02:26 2008] [error] [client 192.168.1.110] (13)Permission <o:p></o:p></pre>
<pre>&gt; denied: exec of '/var/www/cgi-bin/smokeping.cgi' failed<o:p></o:p></pre>
<pre>&gt; [Tue Nov 25 14:02:26 2008] [error] [client 192.168.1.110] Premature end of <o:p></o:p></pre>
<pre>&gt; script headers: smokeping.cgi<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Exactly the same with IE.&nbsp; No surprise there, it's an internal server<o:p></o:p></pre>
<pre>error (an error internal to the Apache Web server setup) it's nothing<o:p></o:p></pre>
<pre>to do with the browser and all browsers will have to tell you something<o:p></o:p></pre>
<pre>along the lines of &quot;sorry, it says it can't do it&quot;.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; [EMAIL PROTECTED] cgi-bin]# tail /var/log/httpd/smokeping-access.log<o:p></o:p></pre>
<pre>&gt; [snip]<o:p></o:p></pre>
<pre>&gt; 192.168.1.101 - - [25/Nov/2008:14:00:38 -0500] &quot;GET /cgi-bin/smokeping.cgi <o:p></o:p></pre>
<pre>&gt; HTTP/1.1&quot; 500 626<o:p></o:p></pre>
<pre>&gt; 192.168.1.110 - - [25/Nov/2008:14:02:26 -0500] &quot;GET /cgi-bin/smokeping.cgi <o:p></o:p></pre>
<pre>&gt; HTTP/1.1&quot; 500 626<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>The same two requests, but you don't get much information about the<o:p></o:p></pre>
<pre>error in the access log - just the code.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; I don't understand this step (from <o:p></o:p></pre>
<pre>&gt; <a href="http://oss.oetiker.ch/smokeping/doc/smokeping_install.en.html">http://oss.oetiker.ch/smokeping/doc/smokeping_install.en.html</a>):<o:p></o:p></pre>
<pre>&gt;<o:p>&nbsp;</o:p></pre>
<pre>&gt; &quot;htdocs/cropper/*<o:p></o:p></pre>
<pre>&gt; To make the interactive graph-zoomer work, you have to place the content of <o:p></o:p></pre>
<pre>&gt; the cropper directory somewhere on your webserver and adapt the links in <o:p></o:p></pre>
<pre>&gt; basepage.html (see below).&quot;<o:p></o:p></pre>
<pre>&gt;<o:p>&nbsp;</o:p></pre>
<pre>&gt; It says &quot;see below&quot; but nothing is listed.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>I think it's an unfortunate consequence of using a utility called<o:p></o:p></pre>
<pre>'perldoc' to produce documentation.&nbsp; We don't need to look at that now<o:p></o:p></pre>
<pre>but very briefly you can put the documentation for a Perl script inside<o:p></o:p></pre>
<pre>the script itself, and sort-of 'comment it out' so the Perl interpreter<o:p></o:p></pre>
<pre>will ignore it.&nbsp; So you can type 'perl scriptname' and the thing runs,<o:p></o:p></pre>
<pre>but when you say 'perldoc scriptname' you get something like a manual.<o:p></o:p></pre>
<pre>But sometimes you need to be a bit clairvoyant, and look in the script<o:p></o:p></pre>
<pre>with a pager (like 'less') or an editor (in read-only mode!) because<o:p></o:p></pre>
<pre>the part to 'see below' might be the actual code and 'perldoc' might<o:p></o:p></pre>
<pre>not show it to you.&nbsp; That was another guess, we can come back to it.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; &quot;If you are using a version of Perl older than 5.8.1, you should consider...&quot;<o:p></o:p></pre>
<pre>&gt;<o:p>&nbsp;</o:p></pre>
<pre>&gt; The link is broken, and I don't know if I need this based upon what<o:p></o:p></pre>
<pre>&gt; I've been corresponding with.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Don't worry about that, your Perl seems to be 5.8.8 which is fine.<o:p></o:p></pre>
<pre>(Did we ever find out where all that stuff about 5.005_03 came from?:)<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; Well I wont get much into this. The important thing is, to have a<o:p></o:p></pre>
<pre>&gt; webserver which allows you to run CGI scripts. If you are using<o:p></o:p></pre>
<pre>&gt; Apache I strongly recommend using the suexec system...<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Tobi says he won't get into it because there's plenty of documentation<o:p></o:p></pre>
<pre>about Apache and it's far too big a job for him to support people with<o:p></o:p></pre>
<pre>Apache-type problems (which is what you have here).&nbsp; You need to become<o:p></o:p></pre>
<pre>familiar with running a Webserver.&nbsp; It will take time.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; I added a Virtual Host to the httpd.conf, the user/group that it<o:p></o:p></pre>
<pre>&gt; uses is &quot;apache.&quot;&nbsp; All the defaults were listed.&nbsp; Do you want to see<o:p></o:p></pre>
<pre>&gt; that file?&nbsp; I'm not sure how to use suexec.&nbsp; Maybe that's what I<o:p></o:p></pre>
<pre>&gt; need to do to make this work.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>You might just be right.&nbsp; But let's see what happens when you give<o:p></o:p></pre>
<pre>permission for Apache to execute the .cgi script.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Please show the output of<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>ls -l /var/www/cgi-bin/smokeping.cgi<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>and tell me what users run the httpd processes on your system.<o:p></o:p></pre>
<pre>There will probably be more than one user and several processes<o:p></o:p></pre>
<pre>under normal circumstances.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt; Thank you again for your enduring patience with me....:)<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Hehe, many people have helped me in the past.&nbsp; I'm just paying my dues.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Sorry, got to run now.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>--<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>73,<o:p></o:p></pre>
<pre>Ged.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>smokeping-users mailing list<o:p></o:p></pre>
<pre>smokeping-users@lists.oetiker.ch<o:p></o:p></pre>
<p class="MsoNormal"><a href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><i><span style="font-size:11.0pt;font-family:&quot;Baskerville Old Face&quot;,&quot;serif&quot;">Eric Chatham<o:p></o:p></span></i></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><o:p>&nbsp;</o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:gray">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.</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><o:p></o:p></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">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.<br>
</font>
</body>
</html>