可以在侦听 HTTP GET 请求的 EPAgent 中创建简单的 HTTP 服务器。 HTTP GET 请求确定发送至企业管理器的度量标准。
HTTP GET 请求使用以下语法:
http://epaHost:epaPort/?metricType=type&metricName=name&metricValue= value
启用和测试简单的 HTTP 服务器
introscope.epagent.config.httpServerPort=8080
这些更改将生效。
http://localhost:9090/?metricType=IntCounter&metricName= MyHTTPMetric|Test:MyCounter&metricValue=15
15 秒后,在 EPAgent 下会显示 MyHTTPMetric|Test:MyCounter 度量标准。
要更新度量标准,EPAgent 必须收到新的 HTTP GET 请求。 因此,简单的 HTTP 服务器功能适用于能够发出多个 HTTP GET 请求的工具。 例如,可以使用开放源代码工具 Wget 发出多个 wget 命令来创建多个 HTTP GET 请求。 有关 Wget 的详细信息,请访问:
http://www.gnu.org/software/wget/wget.html
|
版权所有 © 2013 CA。
保留所有权利。
|
|