Feature: add support for custom shell scripts
See original GitHub issueE.g. I would wish to be able to define a number of scripts, each returning 0 or non-0 process exit code, so Chiadog could run them occasionally and send notification when non-zero return code is seen.
Examples usage would be checking whether temperature is above threshold or disk space is below threshold etc. - in a pluginable way.
Alternatively, Chiadog could check the 2 conditions mentioned above, but over the time I would end up with much more checks.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Adding arguments and options to your Bash scripts - Red Hat
Two of the most common things I do for all my scripts are creating a help function and a function that displays the...
Read more >How to add a Help facility to your Bash program
In the third article in this series, learn about using functions as you create a simple Help facility for your Bash script.
Read more >How To Write and Use Custom Shell Functions and Libraries
Create Your Own Shell Functions and Libraries. A shell function is a group of commands that perform a special task in a script....
Read more >How can I add a help method to a shell script? - Stack Overflow
To use this inside a function: use "$FUNCNAME" instead of $(basename "$0"); add local OPTIND OPTARG before calling getopts.
Read more >Ability to run custom shell scripts - GitKraken User Suggestions
Add custom commands to the toolbar and context-menus to quickly run custom shell scripts. I have some shell-scripts in my home-directory ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Could we provide a one-time
notifycommand that takes some input and uses the configured notifiers to send the message? Then you could just run your custom scripts using a cronjob and still reuse your chiadog notification channels.@greimela I think that’s the way to go if there is value in easily reusing the notification channels 👍