-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
watchcat: add support for "change status" trigger #26057
Comments
Hi to all, I've created a dirty patch to support this functionality. Here is the patch:
Within this patch the This could be useful to change the POWER LED based on status of Wireguard/VPN/Tunnel. Here my config:
I hope someone of you will like to clean and complete this patch and merge it. |
Hi, More interesting configuration for Wireguard (or VPN/SSH-Tunnel/etc):
The behaviour is then:
This is a very visual method to physically check the VPN status. If anyone wants to help to complete the patch and create a PR (I can't sign for openwrt patches), please comment here. I have improved the code a bit. And now I know how to add full uci support for it. |
Hi,
When using the "script" mode with Watchcat I need to execute the script not (only) when the ping fails, but when the ping "changes the status". One use case to understand the problem:
The idea is to add support for "up" and "down" status. Then the script will be executed when then OK->FAIL event appears (and not at every FAIL), and another time when FAIL->OK (and just one time).
And in case this can't be implemented, I suggest for the "script" mode to add support for TWO different scripts: one for FAIL and one for OK. Or also with only one script add a new option that calls it after every check adding a new parameter indicating the return code of the ping.
I hope you want to implement this.
The text was updated successfully, but these errors were encountered: