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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址