-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add degraded status for command 'script' #36
Conversation
Thanks for your first GitHub pull. I repeat as I understand:
Have I understood this correctly? Also, please take a look at my other comments. I do not agree with the color change. Also, please look at the return codes. Currently, everything other than 0 is a failure. |
Yes, but only for the
Yes. Actually, we could choose whatever exit code we want. There is no special reason for
Yes.
Yes. I'll probably change that later in a way you could see in the past incidents the reason of the failure (fail or degrade).
You did.
I'll be back with another force push ... |
7a0b0f3
to
a452c07
Compare
Cool idea and implementation. Thank you very much. If you want, you can also customize the README with a new pull. |
And probably a test for test.sh ... |
Notes
I wanted to monitor multiple websites (services) on one webserver (server). If one website is failing, the status of the item
Websites
should not befailing
, but onlydegraded
(exit returncode ofscript
command has to be80
).Now this is only possible with the
script
command.Changes in this pull request:
check_degradetime
save_degradetime
check-websites.sh
)status_website_list.txt
More minor changes in this pull request: