The helloworld plugin is an example Sensu Go check plugin.
-
Default usage:
$ ./helloworld Hello, world!
-
Optional
-w
/--world
usage:$ ./helloworld --world example Hello, example world!
-
The
-w
/--world
flag can be set via an environment variable as well:$ SENSU_WORLD="environment variable" ./helloworld Hello, environment variable world!
A Sensu Go "hello world" check plugin
Usage:
helloworld [flags]
helloworld [command]
Available Commands:
help Help about any command
version Print the version number of this plugin
Flags:
-h, --help help for helloworld
-w, --world string The world to send greetings from (optional)
Use "helloworld [command] --help" for more information about a command.
If you're using sensuctl 5.13 with Sensu Backend 5.13 or later, you can use the following command to add this asset to your cluster:
$ sensuctl asset add calebhailey/helloworld
If you're using an earlier version of sensuctl, you can find the asset on the [Bonsai Asset Index][https://bonsai.sensu.io/assets/calebhailey/helloworld].
---
type: CheckConfig
api_version: core/v2
metadata:
name: helloworld
spec:
command: helloworld --world example
publish: true
interval: 30
timeout: 5
subscriptions:
- helloworld
runtime_assets:
- calebhailey/helloworld
The preferred way of installing and deploying this plugin is via Sensu Assets. 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.
Clone this repository and run the following command from the local path of the
helloworld
repository:
$ go build
For more information about contributing to this plugin, see Contributing.