%PING{}% variable tests if a remote host identified by host name or IP address is reachable via ping command. The variable is handled by the PingPlugin.
%PING{ host="www.google.com" }%
| Attribute | Comment | Default |
|---|---|---|
host="..." | Host name or IP address | (required) |
wait="..." | Time, in seconds, to wait for a ping response | "5" |
format="..." | Format of output. Use the variables $host for the host and $result for the result (1 for success, 0 for failure) | For success: "%GREEN%host%ENDCOLOR%" For failure: "%RED%host%ENDCOLOR%" |
%PING{ host="www.google.com" wait="2" }%