Ping

Description

Check if the local server or another host is listening to a given port number.

Syntax

$oMonitor->addCheck(
    array(
        "name" => "Ping",
        "description" => "ping to a server",
        "check" => array(
            "function" => "Ping",
            "params" => array(
                "host" => [hostname]
            ),
        ),
    )
);

Parameters

key type description
host (string) optional: hostname or ip address to connect to; if unavailable 127.0.0.1 will be tested

Examples

$oMonitor->addCheck(
    array(
        "name" => "Ping",
        "description" => "ping to www.example.com",
        "check" => array(
            "function" => "Ping",
            "params" => array(
                "host" => "www.example.com"
            ),
        ),
    )
);