Marco Paganini (email@example.com)
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.
All we needs here is the remote host and remote port to open. The parameter line format is:
You can use a numeric value for the port or a valid service name (check /etc/services to make sure the service is declared).
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] | | | | |