Hi Alan;

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:
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.


Cheers,
- Peter



On 6/14/2010 5:33 PM, Alan Scott wrote:

Hey Guys,

 

I have smokeping working (what a great product!)...

 

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?

 

 

Thanks for your help

 

Alan Scott | Manager

ls77.gif

Lvl1, 36 Bryce Street

Hamilton 3204

PO Box 19-145

Hamilton 3244

t:       +64 7 929 2200  Ext 4001

f:       +64 7 929 2201

m:    021 843 281

http://www.logicalsolutions.co.nz

Helpdesk:           0800 895 101

Auckland:           +64 9 974 2351

Wellington:        +64 4 974 4030

Christchurch:    +64 3 974 3440

 

 

_______________________________________________ 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