[smokeping-users] How to get info from the config file when an alert is triggered

Peter Kristolaitis alter3d at alter3d.ca
Mon Feb 20 17:08:32 CET 2012


grep [ -A | -B ]   ;)


On 2/20/2012 10:58 AM, Gerard Alcorlo Bofill wrote:
> Hello,
>
> we are using a custom script to alert when a problem exists. Nowadays
> I'm interested in getting a "variable" that appears in the config
> smokeping file.
>
> When an alert is triggered, I need to give extra information and I
> thought to add this information as a "remark" or as a "note" in the
> config file for every "Target". The only problem is, how can I get this
> information from my custom_script?
>
> to = |/home/gerard/custom_script.pl
>
> Thank you for your help
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4418 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20120220/4c845c0d/attachment-0001.bin 


More information about the smokeping-users mailing list