angel

Check_Tcp Angel Plugin

18 Dec 2005, posted on angel

Name

Check_tcp

Author

Marco Paganini (paganini@paganini.net)

Description

This plugin will try to open a given tcp port on a given host. The program will generate a “green” condition if the connection is successful or a “red” condition otherwise.

Parameters

All we needs here is the remote host and remote port to open. The parameter line format is:

remote_host!remote_port

You can use a numeric value for the port or a valid service name (check /etc/services to make sure the service is declared).

Examples

spektr!smtp

Check host “spektr”, port smtp (25). Note that the program will automatically convert the service name to the correct service number.

Bugs and other unpleasant things

Some things definitely need more work in this plugin:

  • The timeout stuff is evil.

  • The script sends nothing to the port. Ideally, there would be a “send/expect” option.


[Permalink] | [Digg Me] | [Add to del.icio.us] | [Submit to reddit] | [Submit to ma.gnolia.com] | [Submit to FURL]

[ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 ] next ->>