An IP ping handler for Lita
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
locales
spec
.gitignore
.rubocop.yml
.travis.yml
CONTRIBUTING.md
Gemfile
LICENSE
README.md
Rakefile
lita-netping.gemspec

README.md

lita-netping

Build Status MIT License RubyGems :: RMuh Gem Version Coveralls Coverage Code Climate Gemnasium

An IP ping plugin for Lita.

Installation

Add lita-netping to your Lita instance's Gemfile:

gem "lita-netping"

Configuration

none

Usage

Examples:

ping google.com - Ping google.com via normal ICMP
ping icmp google.com - Ping google.com via normal ICMP (same as above)
ping http://www.google.com - Ping google.com via HTTP
ping tcp://ldap.server:389 - Ping a TCP service running on ldap.server on port 389
ping tcp app.server:8080 - Ping a TCP service running on app.server on port 8080

Supported protocols are:

  • http - Ping a web service. It is usually simplest to just specify the URI like you would in a web browser.
  • icmp - The default if none is specified. This is your standard ping.
  • tcp - Verify that a TCP service is listening and responding. Note that this doesn't guarantee that the service is not misbehaving, just that it responds on the proper port.

Syntax:

ping [protocol] <target> - Ping <target> (either DNS name, IP address, or URI)

Note

This plugin uses the net-ping library, and the ICMP ping uses the "Net::Ping::External" check, so it will use the "ping" equivalent on whatever host it's running on.

License

MIT