pingo2

command module
v0.0.0-...-823b31b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2015 License: MIT Imports: 19 Imported by: 0 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

Pingo2

Pingo2 is a utility for monitoring the availability of hosts and services. It is based on Pingo, with the following modifications:

  • Target address is specified as a URL, with 'http', 'https', 'tcp' and 'ping' as possible schemes
  • Email recipient and alert interval can be specified to receive alerts
  • Check HTTP virtualhost independently of server hostname. This is useful where GeoDNS might send a request to the closest server, rather than the specific server you need to check (works for both http & https).
  • Standoff interval: prevents brief flap (host down, then back up) from generating an alert

Usage

./pingo2 -c config.json

An example config file is as follows:

{
	"Timeout":10,
	"Standoff":60,
	"SMTP":{
		"Hostname":"localhost",
		"Port":25
	},
	"Alert":{
		"ToEmail":"hostmaster@foobar.org",
		"FromEmail":"noreply@foobar.org",
		"Interval": 900
	},
	"Targets":[
	{
		"Name":"basic HTTP example, default interval 30s",
		"Addr": "http://example.com",
	},
	{
		"Name":"virtualhost example, specific interval, keyword match",
		"Addr": "http://dogbert.example.com",
		"Host": "vhost1.example.com",
		"Interval":20,
		"Keyword":"Look for this phrase"
	},
	{
		"Name":"basic HTTPS example",
		"Addr": "https://secure.example.com",
	},
	{
		"Name":"ping example",
		"Addr": "ping://dogbert.example.com",
	},
	{
		"Name":"tcp example",
		"Addr": "tcp://dogbert.example.com:5432",
	}
	]
}

Documentation

Overview

Pingo2 is an open source tool written in Golang that allows you to monitor the avilability of TCP server applications.

Jump to

Keyboard shortcuts

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