Skip to content

Files

Latest commit

 

History

History
53 lines (34 loc) · 1.22 KB

README.md

File metadata and controls

53 lines (34 loc) · 1.22 KB

check-ntservice

Description

Checks Windows NT Service is stopped.

Synopsis

check-ntservice --service-name=SERVICE_NAME

Installation

First, build this program.

go get github.com/mackerelio/go-check-plugins
cd $(go env GOPATH)/src/github.com/mackerelio/go-check-plugins/check-ntservice
go install

Or when you installing the mackerel-agent msi package, this plug-in is included in the installation folder. About installing mackerel-agent in Windows, see Installing mackerel-agent on Windows - Mackerel Docs.

Next, you can execute this program :-)

check-ntservice --service-name=SERVICE_NAME

Setting for mackerel-agent

If there are no problems in the execution result, add a setting in mackerel-agent.conf .

[plugin.checks.check-ntservice-sample]
command = ["check-ntservice", "--service-name", "SERVICE_NAME"]

Usage

Options

  -s, --service-name=    service name
  -E, --exclude-service= service name to exclude from matching. This option takes precedence over --service-name
  -l, --list-service     list service

For more information

Please execute check-ntservice -h and you can get command line options.