<html><head><title>Re: [smokeping-users] Alert with E-Mail and SMS</title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
</head>
<body>
<br><br>
<table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'calibri'; font-size: 11pt; color: #1f497d;">@greg:<br>
 <br>
Of course I used “smokeping --debug-daemon --nosleep”. Here you can see the problem (found in /var/log/syslog and /var/log/messages):<br>
 </td>
</tr>
</table>
<br><br>
<span style=" font-family:'Courier New'; font-size: 9pt;">Not sure why you didn't provide the output and the config initially. <br>
The last two messages from me to you and back again wouldn't have been needed. [Ok, I'll quit whining now.]<br>
<br>
<br>
</span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'calibri'; font-size: 11pt; color: #1f497d;">…<br>
Mar 11 08:10:20 mstech smokeping[4944]: FPing: Got fping output: 'ICMP Host Unreachable from 192.168.0.3 for ICMP Echo sent to 192.168.0.40'<br>
…<br>
Mar 11 08:10:21 mstech smokeping[4944]: Alert "bigloss": no match for target /var/lib/smokeping/Local/EeePCDebian</td>
</tr>
</table>
<br><br>
<span style=" font-family:'Courier New'; font-size: 9pt;">The second log line means there was NO MATCH - i.e. bigloss doesn't apply, because there's "NO MATCH"<br>
<br>
So, if there's no match between your alert condition, and the current state of the connection, you obviously won't get an alert - because you shouldn't get one.<br>
<br>
><span style=" font-family:'calibri'; font-size: 11pt; color: #1f497d;">pattern = ==0%,==0%,==0%,==0%,>0%,>0%,>0%<br>
<br>
<span style=" font-family:'Courier New'; font-size: 9pt; color: #000000;">You know that this pattern means that you have to get *three* sample intervals with ZERO loss, followed by three that have greater than zero loss, right?<br>
So, a connection that's down right from the start will NEVER match this pattern. [Which can be a good thing, or a bad thing, depending on your intent.]<br>
<br>
So, go back and read about patterns - trying to do "tricky" things with patterns can really have unintended consequences. IMO, it's a bit like messing with regex's. If they don't work, it's probably me, not a "bug" in grep. [Ok, not probably - without a doubt.] :) <br>
HTH <br>
<br>
-Greg<br>
</body></html>