linuxserver / docker-smokeping

GNU General Public License v3.0
347 stars 95 forks source link

Alert can't work #91

Closed shizhao closed 4 years ago

shizhao commented 4 years ago

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.


Expected Behavior

Set alert script, but can't work.

Current Behavior

Steps to Reproduce

  1. Startup container
  2. Configure /config/Alerts: to = |/config/alert.sh ......
  3. Write alert.sh ...... curl 'http://url.com' -d 'some....' >> alert.log 2>&1 ......
  4. Configure /config/Targets: alerts = someloss
  5. Restart smokeping 6 Wait 1.5 * step time alert.log is null.

Environment

OS:
CPU architecture: x86_64/arm32/arm64
How docker service was installed:

Command used to create docker container (run/create/compose/screenshot)

Docker logs

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ironicbadger commented 4 years ago

Please refer to the upstream Smokeping documentation for configuring Alerts correctly. I don't see an example there for running an arbitrary script upon alert.

However, in this repo there is an example of the correct syntax for performing an alert with Smokeping - https://github.com/catalyst/smokeping-mtr-alert

If you do ever get this working, please let me know. But please note that LSIO provide support for the containers and not necessarily the apps in them - so reaching out to Smokeping might yield better results. Please do post back here if you are successful.