Feature Proposal: Ping Command for IF Statement

Motivation

We have in our Foswiki IT documentation. If we will see in Topic if server is online or offline, this will be great.

Description and Documentation

Something like this:
%IF{"PING{192.168.1.1}" then="OK" }%

or
%IF{"PING{www.mydomain.xxx}" then="Server is OK" else "Server is OFF"}%

Examples

Impact

WhatDoesItAffect:

Implementation

-- Contributors: TomasRaska - 31 May 2016

Discussion

This is best implemented as a Foswiki Extension, a PingPlugin. You are free to code one yourself. Start reading here.

Feature Proposals as you created one here on this page are only required for changes to the Foswiki core code, including plugins that are shipped as part of the standard Foswiki software distribution.

-- MichaelDaum - 31 May 2016

Thank you, I am done with my PingPlugin. Work like a charm. I created my Plugin with this Help: https://foswiki.org/Development/HowToMakeSimplePlugin

-- TomasRaska - 31 May 2016

Awesome. Looking forward to give it a test-drive.

-- MichaelDaum - 31 May 2016
 
Topic revision: r8 - 24 Mar 2017, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy