License
MIT License
v0.0.1 · public · Published over 4 years ago
Execute commands and custom scripts on Sensu Agent nodes. Sensu Go offers several unique attributes that make it a compelling runbook automation platform, including:
Run as a standalone program:
$ ./sensu-runbook --help
Sensu Runbook Automation. Execute commands on Sensu Agent nodes.
Usage:
sensu-runbook [flags]
sensu-runbook [command]
Available Commands:
help Help about any command
version Print the version number of this plugin
Flags:
-a, --assets string Comma-separated list of assets to distribute with the command(s)
-c, --command string The command that should be executed by the Sensu Go agent(s)
-h, --help help for sensu-runbook
-n, --namespace string Sensu Namespace to perform the runbook automation (defaults to $SENSU_NAMESPACE) (default "sensu-system")
--sensu-access-token string Sensu API Access Token (defaults to $SENSU_ACCESS_TOKEN)
--sensu-api-url string Sensu API URL (defaults to $SENSU_API_URL) (default "https://demo.sensu.io:8080")
--sensu-trusted-ca-file string Sensu API Trusted Certificate Authority File (defaults to $SENSU_TRUSTED_CA_FILE)
-s, --subscriptions string Comma-separated list of subscriptions to execute the command(s) on
-t, --timeout string Command execution timeout, in seconds (default "10")
Use "sensu-runbook [command] --help" for more information about a command.
Use as a sensuctl
command plugin:
$ sensuctl command install runbook calebhailey/sensu-runbook
command was installed successfully
$ sensuctl command exec runbook -- --help
INFO[0000] asset includes builds, using builds instead of asset asset=runbook component=asset-manager entity=sensuctl
Sensu Runbook Automation. Execute commands on Sensu Agent nodes.
Usage:
sensu-runbook [flags]
sensu-runbook [command]
Available Commands:
help Help about any command
version Print the version number of this plugin
Flags:
-a, --assets string Comma-separated list of assets to distribute with the command(s)
-c, --command string The command that should be executed by the Sensu Go agent(s)
-h, --help help for sensu-runbook
-n, --namespace string Sensu Namespace to perform the runbook automation (defaults to $SENSU_NAMESPACE) (default "sensu-system")
--sensu-access-token string Sensu API Access Token (defaults to $SENSU_ACCESS_TOKEN)
--sensu-api-url string Sensu API URL (defaults to $SENSU_API_URL) (default "https://demo.sensu.io:8080")
--sensu-trusted-ca-file string Sensu API Trusted Certificate Authority File (defaults to $SENSU_TRUSTED_CA_FILE)
-s, --subscriptions string Comma-separated list of subscriptions to execute the command(s) on
-t, --timeout string Command execution timeout, in seconds (default "10")
Use "sensu-runbook [command] --help" for more information about a command.
This plugin is intended for use as a [sensuctl
command plugin][command]. If
you're using sensuctl 5.13 or later, run the following command:
sensuctl command install calebhailey/sensu-runbook
The preferred way of installing and deploying this plugin is to use it as an Asset. If you would
like to compile and install the plugin from source or contribute to it, download the latest version
or create an executable script from this source.
From the local path of the sensu-runbook repository:
go build
This plugin is in technical preview and should be considered "unstable", but
feedback is welcome and appreciated!
--runtime_assets
--handlers
--url
and --sha512
)For more information about contributing to this plugin, see Contributing.
Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.
×