Checks for Apache Solr.
check-solr ping --host=127.0.0.1 --port=8983 --core=CORE
First, build this program.
go get github.com/mackerelio/go-check-plugins
cd $(go env GOPATH)/src/github.com/mackerelio/go-check-plugins/check-solr
go install
Or you can use this program by installing the official Mackerel package. See Using the official check plugin pack for check monitoring - Mackerel Docs.
Next, you can execute this program :-)
check-solr ping --host=127.0.0.1 --port=8983 --core=CORE
If there are no problems in the execution result, add a setting in mackerel-agent.conf .
[plugin.checks.check-solr-sample]
command = ["check-solr", "ping", "--host", "127.0.0.1", "--port", "8983", "--core", "CORE"]
ping
Checks the Apache Solr PING response.
-H, --host= Hostname (default: localhost)
-p, --port= Port (default: 8983)
-c, --core= Core
Please execute check-solr -h
and you can get command line options.