<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Smokeping itself does not have an API you can query. However, with
a bit of work, you can have Smokeping trigger an external API when
an alert is triggered/raised/cleared. From the docs:<b><br>
<br>
to</b> <i>(mandatory setting)</i><br>
<i> </i>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.
<dl>
<dt><br>
</dt>
<dt>- Peter<br>
</dt>
</dl>
<br>
<div class="moz-cite-prefix">On 7/10/2013 12:56 AM, Dharmapriya
Thusitha wrote:<br>
</div>
<blockquote
cite="mid:CAJh6EL7+AEfzpdBqrdK06w0uHyykMB1S21uUysBYhk5b=Am3UA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>hi ,<br>
</div>
is there any way to get smokeping alert data through
API.(when an alert occurred, get that alert through API ).<br>
</div>
thanks<br>
</div>
thusitha<br>
</div>
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">On Mon, Jul 8, 2013 at 2:30 PM,
Dharmapriya Thusitha <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:thusitha555@gmail.com"
target="_blank">thusitha555@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br>
<br>
hi, <br>
In smokeping ,it uses <span style="font-weight:bolder">++/[-_0-9a-zA-Z]+/
types of device names.so i cant add ip address as the
device name .it gives an error." ERROR:
/etc/smokeping/devices/xx.xx.xx.xx, line 1: unknown
section '"xx.xx.xx.xx.</span> and i have 5000 agents to
monitor. because of this problem ,it is very hard to
change the names of those devices.give me an solution</div>
<br>
_______________________________________________<br>
smokeping-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
<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>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>