MONITOR
The MONITOR
element specifies configuration for GAS monitoring and the
hosts allowed to access the monitor page of the GAS.
Syntax
<MONITOR>
[
<ALLOW_FROM>...</ALLOW_FROM>]
[...]
<DATA_DIRECTORY>...</DATA_DIRECTORY>
<ALERT_SCRIPT> ... </ALERT_SCRIPT>
</MONITOR>
Child elements
-
Zero or more ALLOW_FROM elements.
-
Zero or one DATA_DIRECTORY.
- Zero or one ALERT_SCRIPT.
Usage
You use this element to specify the GAS monitoring configuration and access to it. In the
ALLOW_FROM
element you can set the IP address of the machine from where the monitor
URL is accessible. By default, the monitor page is not accessible and needs to be configured.
Depending on the network configuration, the monitor is not always able to get the actual client IP address. If there is a proxy server between the client and the server, for example, the client IP address seen by the GAS may be the address from the proxy server.
Example configuring monitor access
res.access.control
, which is defined with the value NOBODY
by default.MONITOR
control rules will be ignored by the standalone dispatcher
(httpdispatch
).
The standalone GAS is for development only; provided to simplify your development setup and configuration. For deployment and production systems, you must include a web server.
To allow monitoring from hosts, in the GAS configuration file (default
$FGLASDIR/etc/as.xcf) you need to change the application element for
MONITOR
from:
<MONITOR>
<ALLOW_FROM>$(res.access.control)</ALLOW_FROM>
</MONITOR>
To (for example): <MONITOR>
<ALLOW_FROM>127.0.0.1</ALLOW_FROM>
<ALLOW_FROM>192.168.</ALLOW_FROM>
<ALLOW_FROM>10.</ALLOW_FROM>
<ALLOW_FROM>193.111.222.123</ALLOW_FROM>
</MONITOR>
In this example, the GAS monitor is reachable from localhost
(127.0.0.1), 193.111.222.123, and all IP that begin with
"192.168." or "10.".
Parent elements
This element is a child of the APPLICATION_SERVER element.