nagios-check-rest

command module
v0.0.0-...-19b749c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

README

nagios-check-rest Build Status

  • nagios plugin check rest api written in go.
  • This plugin is to check service availability from outside.

Current Status

  • version 1.0
  • basic features implemented.

Install

$ go get "github.com/ynishi/nagios-check-rest"
$ make
$ ls check_rest

# To install into $GOPATH/bin, do below.
$ make install

# To install to nagios plugin path, do below.
$ mv check_rest /path/to/nagios/plugin

Nagios setting

  • nrpe command
command[check_rest]=/usr/lib64/nagios/plugins/check_rest -url $ARG1$ -w $ARG2$ -c $ARG3$ -h $ARG4$4-d $ARG5$
  • nagios server
check_command check_nrpe!check_rest!http://localhost 20 5 'Authorization: apikey xxx' '{"message":"OK?"}'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL