Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiroakis/mackerel-agent-checks-plugins
https://github.com/hiroakis/mackerel-agent-checks-plugins
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hiroakis/mackerel-agent-checks-plugins
- Owner: hiroakis
- Created: 2015-07-22T11:05:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-26T02:45:53.000Z (about 9 years ago)
- Last Synced: 2023-03-22T15:58:40.666Z (over 1 year ago)
- Language: Go
- Size: 92.8 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mackerel-agent-checks-plugin
**This repository is not updated no longer. Because some plugins are merged to official plugins(https://github.com/mackerelio/go-check-plugins)**
These scripts are used as mackerel-checks-plugins that are defind `[plugin.checks.xxxx]` in mackerel-agent.conf.
You also can use these scripts as nagios plugin and sensu plugin. The specification of these scripts are same as nagios plugin and sensu plugin. (Note: I didn't do testing on Nagios and Sensu)Details are following links
* English: http://help.mackerel.io/entry/custom-checks
* Japanese: http://help-ja.mackerel.io/entry/custom-checks# Build and install
```
go get -d github.com/hiroakis/mackerel-agent-checks-plugins
cd $GOPATH/src/github.com/hiroakis/mackerel-agent-checks-plugins
make
sudo make install
# the binaries are installed to /usr/local/bin
```If you would like to use on other OS, you can edit TARGET_OSARCH in Makefile.
# How to use
## mackerel-check-proc
```
mackerel-check-proc -name=ntpd -critunder=1 -critover=1 -warnunder=1 -warnover=1
```## mackerel-check-port
```
mackerel-check-port -host=127.0.0.1 -port=11211 -level=warn
```## mackerel-check-mysql-replication
```
mackerel-check-mysql-replication -host=127.0.0.1 -port=3306 -username=USER -password=PASSWORD -warn=5 -crit=10
```## mackerel-check-mysql-connection
```
mackerel-check-mysql-connection -host=127.0.0.1 -port=3306 -username=USER -password=PASSWORD -warn=250 -crit=280
```## mackerel-check-ntpoffset
```
mackerel-check-ntpoffset -warn=50 -crit=100```
# LICENSEMIT.