question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: add support for custom shell scripts

See original GitHub issue

E.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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
greimelacommented, May 6, 2021

Could we provide a one-time notify command 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.

0reactions
martomicommented, May 8, 2021

@greimela I think that’s the way to go if there is value in easily reusing the notification channels 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found