check_happo

command module
v0.0.0-...-f7e1fe9 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

check_happo - Nagios plugin for happo-agent

wercker status

Description

Call monitoring request helper for happo-agent.

Requires
  • Red Hat Enterprise Linux (RHEL) 6.x, 7.x
  • CentOS 6.x, 7.x
  • Ubuntu 12.04 or later
Command

Request to happo-agent.

/path/to/check_happo monitor -H [HOSTNAME] -p [NAGIOS_PLUGINNAME] -o [PLUGIN_OPTION]

For example, execute check_procs is below。

$ check_happo monitor -H 127.0.0.1 -p check_procs -o '-w 100 -c 200'
2015/09/25 18:18:31 Request: https://127.0.0.1:6777/monitor
PROCS OK: 83 processes

If access server via bastion, require -X option.

/path/to/check_happo monitor -X [BASTION_SERVER] -H [HOSTNAME] -p [NAGIOS_PLUGINNAME] -o [PLUGIN_OPTION]

For example.

$ check_happo monitor -X 192.0.2.1 -H 198.51.100.1 -p check_procs -o '-w 100 -c 200'
2015/09/25 18:18:31 Request: https://192.0.2.1:6777/proxy
PROCS OK: 83 processes

For more information, please execute ./check_happo --help.

Install

To install, use go get:

$ sudo yum install epel-release
$ sudo yum install nagios-plugins-all
$ go get github.com/heartbeatsjp/check_happo

And define Nagios command:

define command {
        command_name    check_by_happo
        command_line    /path/to/check_happo monitor -H $ARG1$ -X $ARG2$ -p $ARG3$ -o $ARG4$
    }

Contribution

  1. Fork (http://github.com/heartbeatsjp/check_happo/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

Yuichiro Saito

License

Copyright 2016 HEARTBEATS Corporation.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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