<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
G.W. Haywood wrote:<br>
<blockquote
cite="mid:Pine.LNX.4.58.0806160908340.17153@mail3.jubileegroup.co.uk"
type="cite">
<pre wrap=""><!---->
Probably not in /var/log/messages then - that's why I put a question
mark there. It depends how your logging is set up. Where does Apache
send its 'error log' on your system? That's where it will be. </pre>
</blockquote>
<br>
/var/log/apache2/error.log<br>
<blockquote
cite="mid:Pine.LNX.4.58.0806160908340.17153@mail3.jubileegroup.co.uk"
type="cite">
<pre wrap="">It's
confusing to have debug messages going to /var/log/messages and yet
the other (Apache) log stuff going somewhere else, but that's the way
things are at present.
You also might want to try putting the same print statement after this
line:
next unless ':' eq shift @times; #drop the colon
</pre>
</blockquote>
<br>
So you're saying that I should end up with:<br>
---------------------------------------------<br>
next unless /^\S+\s+:\s+[\d\.]/; #filter out error messages
from tcpping<br>
@times = split /\s+/;<br>
my $ip = shift @times;<br>
print STDERR @times;<br>
next unless ':' eq shift @times; #drop the colon<br>
print STDERR @times;<br>
---------------------------------------------<br>
<br>
<br>
<blockquote
cite="mid:Pine.LNX.4.58.0806160908340.17153@mail3.jubileegroup.co.uk"
type="cite">
<pre wrap="">
If there isn't an element in the array that contains just a single
colon character, it will shift everything out of it leaving it empty...
</pre>
</blockquote>
<br>
I've done all that, but I'm still not seeing anything in the apache log
file either.<br>
<br>
Just out of curiosity, did you actually get/read my message wondering
if it was some sort of permissions problem?<br>
<br>
<a class="moz-txt-link-freetext" href="https://lists.oetiker.ch/pipermail/smokeping-users/2008-June/003129.html">https://lists.oetiker.ch/pipermail/smokeping-users/2008-June/003129.html</a><br>
<br>
---------------------------------------------<br>
<br>
FWIW I'm running Ubuntu 8.04, and just installed Smokeping through <br>
their software repository. As part of that installation, it seems to <br>
have created a seperate 'smokeping' user + group, so could that <br>
possibly have something to do with the problem?<br>
<br>
I'm still [relatively] new to the whole Linux world, so I'm sure that <br>
I don't quite have my head around all these permissions/etc properly
yet.<br>
<br>
Is there an easy way to check and/or rule out any sort of permission <br>
error as the source of my problem?<br>
<br>
---------------------------------------------<br>
<br>
<br>
<br>
</body>
</html>