<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Alan;<br>
<br>
Yes, you can call external scripts by setting the "to" field of the
alert to "| /path/to/script.sh" (note the pipe character at the
beginning). Some information about the alert will be passed on as
arguments to the script. From the SmokePing documentation:<br>
<dl>
<dt><b>to</b> <i>(mandatory setting)</i></dt>
<dd>
<p>Either an email address to send alerts to, or the name of a
program to execute when an alert matches. To call a program, the first
character of the <b>to</b> value must be a pipe symbol "|". The
program will the be called whenever an alert matches, using the
following 5 arguments (except if <b>edgetrigger</b> is 'yes'; see
below): <b>name-of-alert</b>, <b>target</b>, <b>loss-pattern</b>, <b>rtt-pattern</b>,
<b>hostname</b>. You can also provide a comma separated list of
addresses and programs.</p>
</dd>
</dl>
<br>
Cheers,<br>
- Peter<br>
<br>
<br>
<br>
On 6/14/2010 5:33 PM, Alan Scott wrote:
<blockquote
cite="mid:7F4E58CD2E0E2E4E8713A8184564B7C845B738@server.hamilton.codeblue.co.nz"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal">Hey Guys,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have smokeping working (what a great
product!)...<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">What I would like to be able to do is have a
packet loss
alert call MTR. Is there any way you can have a alert call a external
script or
application?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for your help<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" style="border-collapse: collapse;"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="2"
style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color green; border-width: medium medium 1.5pt; padding: 0cm 5.4pt; width: 296pt;"
valign="top" width="395">
<p class="MsoNormal" style="line-height: 115%;"><b><span
style="font-family: "Arial","sans-serif"; color: rgb(22, 100, 22);">Alan
Scott</span></b><span
style="font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">
| Manager</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height: 115%;"><span
style="color: rgb(31, 73, 125);"><img id="Picture_x0020_1"
src="cid:part1.09050307.02070708@alter3d.ca" alt="ls77.gif" height="62"
width="370"></span><span style="color: rgb(31, 73, 125);"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0cm 5.4pt; width: 154.25pt;" valign="top"
width="206">
<p class="MsoNormal" style="margin-top: 3pt; line-height: 115%;"><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">Lvl1,
36 Bryce Street</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height: 115%;"><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">Hamilton
3204</span><span
style="font-size: 7.5pt; line-height: 115%; color: rgb(31, 73, 125);"><o:p></o:p></span></p>
</td>
<td style="padding: 0cm 5.4pt; width: 5cm;" valign="top"
width="189">
<p class="MsoNormal" style="margin-top: 3pt; line-height: 115%;"><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">PO
Box 19-145</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height: 115%;"><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">Hamilton
3244</span><span style="color: rgb(31, 73, 125);"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td
style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color green; border-width: medium medium 1.5pt; padding: 0cm 5.4pt; width: 154.25pt;"
valign="top" width="206">
<p class="MsoNormal" style="margin-top: 3pt; line-height: 115%;"><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">t:</span><span
style="font-size: 7.5pt; line-height: 115%; color: rgb(31, 73, 125);">
</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">+64
7 929 2200 Ext 4001</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height: 115%;"><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">f:</span><span
style="font-size: 7.5pt; line-height: 115%; color: rgb(31, 73, 125);">
</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">+64
7 929 2201<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height: 115%;"><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">m:</span><span
style="font-size: 7.5pt; line-height: 115%; color: rgb(31, 73, 125);">
</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">021
843 281<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height: 115%;"><u><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(0, 112, 192);"><a
moz-do-not-send="true" href="http://www.logicalsolutions.co.nz"><span
style="line-height: 115%; color: blue;">http://www.logicalsolutions.co.nz</span></a></span></u><u><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(0, 112, 192);"><o:p></o:p></span></u></p>
</td>
<td
style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color green; border-width: medium medium 1.5pt; padding: 0cm 5.4pt; width: 5cm;"
valign="top" width="189">
<p class="MsoNormal" style="margin-top: 3pt; line-height: 115%;"><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">Helpdesk:</span><span
style="font-size: 7.5pt; line-height: 115%; color: rgb(31, 73, 125);">
</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">0800
895 101</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height: 115%;"><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">Auckland:</span><span
style="font-size: 7.5pt; line-height: 115%; color: rgb(31, 73, 125);">
</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">+64
9 974 2351<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height: 115%;"><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">Wellington:</span><span
style="font-size: 7.5pt; line-height: 115%; color: rgb(31, 73, 125);">
</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">+64
4 974 4030<o:p></o:p></span></p>
<p class="MsoNormal"
style="margin-bottom: 3pt; line-height: 115%;"><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">Christchurch:</span><span
style="font-size: 7.5pt; line-height: 115%; color: rgb(31, 73, 125);">
</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);">+64
3 974 3440</span><span
style="font-size: 7.5pt; line-height: 115%; font-family: "Arial","sans-serif"; color: rgb(102, 102, 102);"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
smokeping-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a>
<a class="moz-txt-link-freetext" href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a>
</pre>
</blockquote>
<br>
</body>
</html>