[smokeping-users] (no subject)
Peter Kristolaitis
alter3d at alter3d.ca
Wed Jul 10 07:00:42 CEST 2013
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:*
to* /(mandatory setting)/
//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 *to* value must be a pipe symbol "|". The program will the be called
whenever an alert matches, using the following 5 arguments (except if
*edgetrigger* is 'yes'; see below): *name-of-alert*, *target*,
*loss-pattern*, *rtt-pattern*, *hostname*. You can also provide a comma
separated list of addresses and programs.
- Peter
On 7/10/2013 12:56 AM, Dharmapriya Thusitha wrote:
> hi ,
> is there any way to get smokeping alert data through API.(when an
> alert occurred, get that alert through API ).
> thanks
> thusitha
>
>
> On Mon, Jul 8, 2013 at 2:30 PM, Dharmapriya Thusitha
> <thusitha555 at gmail.com <mailto:thusitha555 at gmail.com>> wrote:
>
>
>
> hi,
> In smokeping ,it uses ++/[-_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. 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
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> <mailto:smokeping-users at lists.oetiker.ch>
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>
>
>
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130710/a30c63ef/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4246 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130710/a30c63ef/attachment.bin
More information about the smokeping-users
mailing list