0.0
No commit activity in last 3 years
No release in over 3 years
An IP ping plugin for Lita
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
>= 3.0.0

Runtime

>= 4.0
 Project Readme

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