<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Sorry, I meant to submit to the users group.<br>
<br>
I think it is an Apache2 issue. I uninstalled Apache and
reinstalled it and now I get a permissions error on all HTML files.
Any suggestions would be appreciated.<br>
<br>
Greg Stucky<br>
<br>
<div class="moz-cite-prefix">On 8/22/2013 11:58 PM, Greg Sloop
<a class="moz-txt-link-rfc2396E" href="mailto:gregs@sloop.net"><gregs@sloop.net></a> wrote:<br>
</div>
<blockquote
cite="mid:CAAjorqXyz9yJGvqmXo5Jxom-RPm6GSqmkJ1gd59fqum2i5GvXw@mail.gmail.com"
type="cite">
<p dir="ltr">Well, that's what it is complaining about.<br>
My guess is: there really is something wrong with that
directory/perms.</p>
<p dir="ltr">Make sure there isn't a problem...</p>
<p dir="ltr">I suppose it could be some thing else in the config,
so do you mind giving the config.</p>
<p dir="ltr">(And we should probably go back on-list, so others
can help)</p>
<div class="gmail_quote">On Aug 22, 2013 7:39 PM, "Greg Sloop
&<a moz-do-not-send="true"
href="mailto:lt%3Bgregs@sloop.net">lt;gregs@sloop.net</a>&gt;"
<<a moz-do-not-send="true" href="mailto:gregs@sloop.net">gregs@sloop.net</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">See inline.<br>
On Aug 22, 2013 6:32 PM, "Greg Stucky" <<a
moz-do-not-send="true" href="mailto:gstucky@surfbest.net"
target="_blank">gstucky@surfbest.net</a>> wrote:<br>
><br>
> Results from --debug<br>
><br>
><br>
> smokeping --config=/etc/smokeping/config --debug<br>
> ### Compiling alert detector pattern 'someloss'<br>
> ### >0%,*12*,>0%,*12*,>0%<br>
> sub { <br>
> my $d = shift;<br>
> my $y = $d->{loss};<br>
> for(1){<br>
> my $imax2 = min(@$y - 3, 12);<br>
> my $imax1 = min(@$y - 3, 12);<br>
> my $minlength = 3;<br>
> my $maxlength = 27;<br>
> next if scalar @$y < $minlength ;<br>
> my $i1;<br>
> for($i1=0; $i1 < min($maxlength,$imax1);
$i1++){<br>
> my $i2;<br>
> for($i2=0; $i2 <
min($maxlength-$i1,$imax2); $i2++){<br>
> next unless defined $y->[-3-$i1-$i2]<br>
> and $y->[-3-$i1-$i2]
=~ /^\d/<br>
> and $y->[-3-$i1-$i2]
> 0<br>
> ;
last;<br>
> }<br>
> return 0 if $i2 >=
min($maxlength-$i1-$i2,$imax2);<br>
> next unless defined $y->[-2-$i1]<br>
> and $y->[-2-$i1] =~
/^\d/<br>
> and $y->[-2-$i1] > 0<br>
> ; last;<br>
> }<br>
> return 0 if $i1 >=
min($maxlength-$i1,$imax1);<br>
> next unless defined $y->[-1]<br>
> and $y->[-1] =~ /^\d/<br>
> and $y->[-1] > 0<br>
> ; return 1;<br>
> }<br>
> return 0;<br>
> }<br>
><br>
><br>
><br>
> Smokeping version 2.006008 successfully launched.<br>
> Not entering multiprocess mode with '--debug'. Use
'--debug-daemon'<br>
> for that.<br>
> FPing: probing 4 targets with step 300 s and offset 63
s.<br>
> FPing: Executing /usr/sbin/fping -C 20 -q -B1 -r1 -i10
192.168.1.122<br>
> 192.168.1.117 192.168.1.102 192.168.1.250<br>
><br>
> Calling
RRDs::update(/var/lib/smokeping/data/MyLocs/server1.rrd<br>
> --template<br>
>
uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:pin<br>
>
g9:ping10:ping11:ping12:ping13:ping14:ping15:ping16:ping17:ping18:ping<br>
> 19:ping20<br>
>
1377220530:U:0:2.8340000000e-02:2.5960000000e-02:2.7160000000e-02:2.72<br>
>
70000000e-02:2.7290000000e-02:2.7400000000e-02:2.7530000000e-02:2.7670<br>
>
000000e-02:2.7870000000e-02:2.7880000000e-02:2.8110000000e-02:2.834000<br>
>
0000e-02:2.8550000000e-02:2.8670000000e-02:2.8880000000e-02:2.91500000<br>
>
00e-02:2.9170000000e-02:2.9510000000e-02:3.2220000000e-02:3.3470000000<br>
> e-02:3.8990000000e-02)<br>
><br>
><br>
> Alert "someloss": no match for target<br>
> /var/lib/smokeping/data/MyLocs/Server1<br>
><br>
> I checked and folder and .rrd file.cgi
/var/lib/smokeping/data/MyLocs/Server1 does exist. I also
made a copy of smokeping and called it smokeping.cgi in the
cgi-bin folder and i get the same error message<br>
><br>
> ERROR: /etc/smokeping/config, line 10: Directory
'/srv/www/htdocs/smokeping/cache' does not exist</p>
<p dir="ltr">Does the above dir exist, and does the user
smokeping is running as have rights?</p>
<p dir="ltr">><br>
> Greg<br>
><br>
> On 8/22/2013 7:59 PM, Gregory Sloop wrote:<br>
>><br>
>> It should have an extension, I think. I don't think
Apache will run it<br>
>> as a CGI without it...[Perhaps I'm wrong here, I'm
really not sure.<br>
>> Mine does have a .cgi extension.]<br>
>><br>
>> As asked earlier: Did you run smokeping in debug
mode, and what does that show?<br>
>><br>
>> ---<br>
>> I don't believe I've seen any cases where running
smokeping in debug<br>
>> mode, and watching the logs doesn't give some good
hints where the<br>
>> problems are.<br>
>><br>
>> -Greg<br>
>><br>
>><br>
>> GS> it is ../cgi-bin/smokeping If you look in
the cgi-bin directory <br>
>> GS> smokeping has not file extension. Also if
I copy the .png files fro<br>
>> GS> /var/lib/smokeping/cache to
/srv/www/htdocs/smokeping/cache they show up.<br>
>><br>
>> GS> I looked in the error logs before I posted
the first question and the <br>
>> GS> only error messages there relating to
smokeping are several does not <br>
>> GS> exist errors.<br>
>><br>
>> GS> Greg<br>
>><br>
>><br>
>> GS> On 8/22/2013 4:40 PM, Gregory Sloop wrote:<br>
>>>><br>
>>>> wouldn't it be<br>
>>>> ../cgi-bin/smokeping.cgi<br>
>>>> instead of<br>
>>>> ../cgi-bin/smokeping/<br>
>>>> ??<br>
>>>><br>
>>>> If you fix that and it still doesn't work:<br>
>>>> Does running smokeping in debug mode tell
you anything<br>
>>>> Does looking at the apache logs [especially
the error logs] tell you<br>
>>>> anything?<br>
>>>><br>
>>>> -Greg<br>
>>>><br>
>>>> GS> I am trying to setup Smokeping on an
OpenSUSE 12.3 computer I just<br>
>>>> GS> setup. I have installed and
configured Smokeping as I have several<br>
>>>> GS> times before but this time I an not
getting the Graphs to appear.<br>
>>>><br>
>>>> GS> In config I have imgcache =
/srv/www/htdocs/smokeping/cache which does<br>
>>>> GS> exist. However when I use a browser
to go to<br>
>>>> GS> //localhost/cgi-bin/smokeping I get
an error message stating that it<br>
>>>> GS> does not exist. If I copy the
location straight from the error page<br>
>>>> GS> and past it into a browser the
folder and its contents show up. If I<br>
>>>> GS> paste it into Dolphin the same
thing.<br>
>>>><br>
>>>> GS> I tried changing the imgcache back
to the default imgcache<br>
>>>> GS> =/var/lib/smokeping/cache. When I
then open a browser Smokeping opens<br>
>>>> GS> but there are no graphs. If I look
in /var/lib/smokeping/cache the<br>
>>>> GS> latest .png files are there.<br>
>>>><br>
>>>> GS> Is there something I am missing?<br>
>>>><br>
>>>> GS> Thanks for any suggestions<br>
>>>><br>
>>>> GS>
_______________________________________________<br>
>>>> GS> smokeping-users mailing list<br>
>>>> GS> <a moz-do-not-send="true"
href="mailto:smokeping-users@lists.oetiker.ch"
target="_blank">smokeping-users@lists.oetiker.ch</a><br>
>>>> GS> <a moz-do-not-send="true"
href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users"
target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
>>>><br>
>><br>
>><br>
><br>
</p>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>