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 <[email protected] <mailto:[email protected]>> 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
    [email protected]
    <mailto:[email protected]>
    https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users




_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Reply via email to