This repository has been archived by the owner on May 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Allow Sensu health checks defined as PowerShell scripts #7
Comments
Documenting a few options discussed on Slack:
|
My personal opinion is that we should go for options 4 or 5. Option 4:
Option 5:
Also, I have a slight concern about supporting PowerShell only, as some of the Sensu Windows plugins are Ruby scripts (https://github.com/sensu-plugins/sensu-plugins-windows). That being said, there seem to be a PowerShell equivalent available as well. My other concern is using other Sensu plugins, e.g. https://github.com/sensu-plugins/sensu-plugins-aws, written in Ruby. However, it looks like all of them need to run on Linux machines so there might not be any need to support Ruby plugins on Windows, unless we port them to PowerShell if need be. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Given that you have defined the following in
healthchecks.yml
:the check that will be generated by CDA will look like:
when running this check, Sensu client will always timeout and eventually, by the look of it, stop. this is because Sensu client doesn't know how to run PowerShell scripts out of the box. looking at other system checks, e.g. consul-deployment-agent, we need to define the check as follows for it to run properly:
now, because of the way we have to define checks using the yaml file specification, i.e.
local_script
orserver_script
+script_arguments
, it means that Windows users cannot include thepowershell.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -file
bit of the command as this won't match a filename on disk. this validation is done in CDA before registering a check.The text was updated successfully, but these errors were encountered: