wiki:ServerDownMacro

Check if host/port is open

Description

This is a macro to check if a given host/port is open. The macro needs to be added to your Trac wiki page, see below for an example. It supports basic caching with a timeout. It does not support ICMP pings.

Bugs/Feature Requests

Existing bugs and feature requests for ServerDownMacro are here.

If you have any issues, create a new ticket.

defect

2 / 3

enhancement

0 / 1

Download

Download the zipped source from here.

There is also a version on PyPi.

Source

You can check out ServerDownMacro from here using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

To enable add the following to your trac.ini file:

[components]
serverdownmacro.* = enabled

Example

To use:

[[ServerDown(host, port, timeout)]]

Recent Changes

3416 by coderanger on 2008-03-25 07:39:08
Change my email to avoid Yahoo, which decided to brake my scraper script recently.
2905 by coderanger on 2007-12-15 11:11:52
Initial add.
2904 by coderanger on 2007-12-15 11:11:18
New hack ServerDownMacro, created by coderanger
(more)

Author/Contributors

Author: coderanger
Maintainer: none (needsadoption)
Contributors:

Last modified 5 months ago Last modified on Jan 17, 2016, 2:47:08 PM