oetiker/SmokePing

Custom Alert

Closed this issue · 6 comments

Hi guys ,
Is it possible to process alert triggers ?
My idea is to get an alert to my telegram app instead to my email.
Is that possible ?
Is it possible to log an alert ?
Regards.

agail commented

Sure, check out https://bfy.tw/Ozc4

*** Alerts ***
to = |/full_path_to_script/slack_notify.sh
from = leostereo@yourmail.com 

Have a look at https://github.com/tomwillfixit/smokeping/blob/master/slack_notify.sh for fetching relevant alert data.

Good luck!

agail commented

Add a line to you perl script that write/appends the output data to a file, /tmp/alert.log
Then you'll know if the script triggers properly. If not, there's where you'll start investigating.
I'd change the shebang to #!/usr/bin/env perl

Add a line to you perl script that write/appends the output data to a file, /tmp/alert.log
Then you'll know if the script triggers properly. If not, there's where you'll start investigating.
I'd change the shebang to #!/usr/bin/env perl

I was loggin lines.
anyway , it is working now ... there was missing the line alers=xxx, xxx .
Thanks.

This issue has become stale and will be closed automatically within 7 days. Comment on the issue to keep it alive.

Add a line to you perl script that write/appends the output data to a file, /tmp/alert.log
Then you'll know if the script triggers properly. If not, there's where you'll start investigating.
I'd change the shebang to #!/usr/bin/env perl

I was loggin lines. anyway , it is working now ... there was missing the line alers=xxx, xxx . Thanks.

Could you please provide valid configuration for Alerting thru Telegram?
Didn't get it missing line alert=xxx, xxx?