Check if host/port is open
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.
[[ServerDown(host, port, timeout)]]
If you have any issues, create a new ticket.
Download the zipped source from here.
There is also a version on PyPi.
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