SiteStatus Macro Help
In the case of a network address or domain name, an ICMP ping is performed and the machine is deemed up if it responds. In the case of a URL, an urlopen is performed on the address, and the machine is deemed up if a 200 HTTP return code is received.
{{SiteStatus(192.168.7.2)}}{{BR}}
or
{{SiteStatus(https://google.com/)}}
You can specify alternate return values for "UP" and "DOWN", by specifying them as arguments 2 and 3 to the macro. For example, if you want to return 1 and 0 instead of UP and DOWN, use something like this:
{{SiteStatus(192.168.7.2,1,0)}}{{BR}}
Back to page: System_Info