Skip to content

Commit

Permalink
rename plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jsadowyj committed Sep 22, 2023
1 parent 2dea00f commit e08921d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*.dll
*.so
*.dylib
sensu-plugins-idle-apache
check-idle-apache

# Test binary, build with `go test -c`
*.test
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967&logo=sensu)](https://bonsai.sensu.io/assets/jsadowyj/sensu-plugins-idle-apache)
![Go Test](https://github.com/jsadowyj/sensu-plugins-idle-apache/workflows/Go%20Test/badge.svg)
![goreleaser](https://github.com/jsadowyj/sensu-plugins-idle-apache/workflows/goreleaser/badge.svg)
[![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967&logo=sensu)](https://bonsai.sensu.io/assets/jsadowyj/check-idle-apache)
![Go Test](https://github.com/jsadowyj/check-idle-apache/workflows/Go%20Test/badge.svg)
![goreleaser](https://github.com/jsadowyj/check-idle-apache/workflows/goreleaser/badge.svg)

# Check Plugin Template

Expand All @@ -18,7 +18,7 @@ and customize the `checkArgs` and `executeCheck` functions in [main.go][7].

When writing or updating a plugin's README from this template, review the Sensu Community
[plugin README style guide][3] for content suggestions and guidance. Remove everything
prior to `# sensu-plugins-idle-apache` from the generated README file, and add additional context about the
prior to `# check-idle-apache` from the generated README file, and add additional context about the
plugin per the style guide.

## Releases with Github Actions
Expand All @@ -29,7 +29,7 @@ the plugin with goreleaser. Register the asset with [Bonsai][8] to share it with

***

# sensu-plugins-idle-apache
# check-idle-apache

## Table of Contents
- [Overview](#overview)
Expand All @@ -44,7 +44,7 @@ the plugin with goreleaser. Register the asset with [Bonsai][8] to share it with

## Overview

The sensu-plugins-idle-apache is a [Sensu Check][6] that monitors idle apache worker count.
The check-idle-apache is a [Sensu Check][6] that monitors idle apache worker count.

## Files

Expand All @@ -59,10 +59,10 @@ consider doing so! If you're using sensuctl 5.13 with Sensu Backend 5.13 or late
following command to add the asset:

```
sensuctl asset add jsadowyj/sensu-plugins-idle-apache
sensuctl asset add jsadowyj/check-idle-apache
```

If you're using an earlier version of sensuctl, you can find the asset on the [Bonsai Asset Index][https://bonsai.sensu.io/assets/jsadowyj/sensu-plugins-idle-apache].
If you're using an earlier version of sensuctl, you can find the asset on the [Bonsai Asset Index][https://bonsai.sensu.io/assets/jsadowyj/check-idle-apache].

### Check definition

Expand All @@ -71,14 +71,14 @@ If you're using an earlier version of sensuctl, you can find the asset on the [B
type: CheckConfig
api_version: core/v2
metadata:
name: sensu-plugins-idle-apache
name: check-idle-apache
namespace: default
spec:
command: sensu-plugins-idle-apache --url http://127.0.0.1/server-status --critical 0 --warning 5
command: check-idle-apache --url http://127.0.0.1/server-status --critical 0 --warning 5
subscriptions:
- system
runtime_assets:
- jsadowyj/sensu-plugins-idle-apache
- jsadowyj/check-idle-apache
```
## Installation from source
Expand All @@ -87,7 +87,7 @@ The preferred way of installing and deploying this plugin is to use it as an Ass
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-plugins-idle-apache repository:
From the local path of the check-idle-apache repository:
```
go build
Expand All @@ -102,8 +102,8 @@ For more information about contributing to this plugin, see [Contributing][1].
[1]: https://github.com/sensu/sensu-go/blob/master/CONTRIBUTING.md
[2]: https://github.com/sensu/sensu-plugin-sdk
[3]: https://github.com/sensu-plugins/community/blob/master/PLUGIN_STYLEGUIDE.md
[4]: https://github.com/jsadowyj/sensu-plugins-idle-apache/blob/master/.github/workflows/release.yml
[5]: https://github.com/jsadowyj/sensu-plugins-idle-apache/actions
[4]: https://github.com/jsadowyj/check-idle-apache/blob/master/.github/workflows/release.yml
[5]: https://github.com/jsadowyj/check-idle-apache/actions
[6]: https://docs.sensu.io/sensu-go/latest/reference/checks/
[7]: https://github.com/sensu/check-plugin-template/blob/master/main.go
[8]: https://bonsai.sensu.io/
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/jsadowyj/sensu-plugins-idle-apache
module github.com/jsadowyj/check-idle-apache

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const IDLE_NULL = -1
var (
plugin = Config{
PluginConfig: sensu.PluginConfig{
Name: "sensu-plugins-idle-apache",
Name: "check-idle-apache",
Short: "Monitors idle workers on apache status page",
Keyspace: "sensu.io/plugins/sensu-plugins-idle-apache/config",
Keyspace: "sensu.io/plugins/check-idle-apache/config",
},
}

Expand Down

0 comments on commit e08921d

Please sign in to comment.