check_happo
- Nagios plugin for happo-agent
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
- Fork (http://github.com/heartbeatsjp/check_happo/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes
- Run
gofmt -s
- 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.