vRealize Operations Manager配置指南 agent. startup time out属性 在确定代理未成功启动前 End Point Operations Management代理启动脚本等待的秒数。如果发现该代理在 此时段内未侦听请求,则会记录错误,并且启动脚本会超时。 默认 默认情况下, agent. properties文件不包含此属性 代理的默认行为是在300秒之后超时。 autoinventory. default scan. interval. millis tE 指定 End Point Operations Management代理执行默认自动清单扫描的频率 认扫描通常使用进程表或 Windows注册表来检测服务器和平台服务对象。默认扫描比运行时扫描所需资 源少。 默认 代理在启动时执行默认扫描,之后每15分钟运行一次 已注释掉86,400,000毫秒(即一天)。 autoinventory runtime scan. interval. millis属性 指定 End Point Operations Management代理执行运行时扫描的频率 行时扫描可能会使用比默认扫描需要更多资源的方法来检测服务。例如,运行时扫描可能涉及发出SQL 查询或查找 MBean 认 86,400,000毫秒(即一天)。 httpuseragent属性 您可以使用httpuseragent来定义在所有升级中一致的user-agen"AaUser-agent请求标头定义值 该属性为 End Point Operations Management代理发出的HTP请求中的 默认情况下, agent. propertles文件不包含此属性。 默认 默认情况下,代理请求中的user- agent包括 End Point Operations Management代理版本,因此在代理更 新时会更改。如果目标HTTP服务器配置为阻止未知user-agent请求,则在代理升级后,代理请求将失败。 yperic-HQ- Agent/ ersion,例如, Hyperic-HQ- Agent/4.1.2-EE。 og4j属性 此处介绍了 End Point Operations Management代理的Log4j属性。 Log4]. rootLogger= tagent. logLevel], R Log4]. appender R File=Stagent. log File] Log4]. appenderR. Max BackupIndex=l Log4. appenderR. MaxFilesize=s000KB VMware,lc保留所有权利
agent.startupTimeOut 属性 在确定代理未成功启动前 End Point Operations Management 代理启动脚本等待的秒数。如果发现该代理在 此时段内未侦听请求,则会记录错误,并且启动脚本会超时。 默认 默认情况下,agent.properties 文件不包含此属性。 代理的默认行为是在 300 秒之后超时。 autoinventory.defaultScan.interval.millis 属性 指定 End Point Operations Management 代理执行默认自动清单扫描的频率。 默认扫描通常使用进程表或 Windows 注册表来检测服务器和平台服务对象。默认扫描比运行时扫描所需资 源少。 默认 代理在启动时执行默认扫描,之后每 15 分钟运行一次。 已注释掉 86,400,000 毫秒(即一天)。 autoinventory.runtimeScan.interval.millis 属性 指定 End Point Operations Management 代理执行运行时扫描的频率。 运行时扫描可能会使用比默认扫描需要更多资源的方法来检测服务。例如,运行时扫描可能涉及发出 SQL 查询或查找 MBean。 默认 86,400,000 毫秒(即一天)。 http.useragent 属性 该属性为 End Point Operations Management 代理发出的 HTTP 请求中的 user-agent 请求标头定义值。 您可以使用 http.useragent 来定义在所有升级中一致的 user-agent 值。 默认情况下,agent.properties 文件不包含此属性。 默认 默认情况下,代理请求中的 user-agent 包括 End Point Operations Management 代理版本,因此在代理更 新时会更改。如果目标 HTTP 服务器配置为阻止未知 user-agent 请求,则在代理升级后,代理请求将失败。 Hyperic-HQ-Agent/Version,例如,Hyperic-HQ-Agent/4.1.2-EE。 log4j 属性 此处介绍了 End Point Operations Management 代理的 log4j 属性。 log4j.rootLogger=${agent.logLevel}, R log4j.appender.R.File=${agent.logFile} log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.MaxFileSize=5000KB vRealize Operations Manager 配置指南 VMware, Inc. 保留所有权利。 36
vRealize Operations Manager配置指南 Log4j. appenderR layout. Conversion Pattern=gdidd-MM-yyyy HH: mm: 55, Sss z %-5p [%t] [%c[1]@%L] %min Log4j. appender R. layoutmorg apache log4]. PatternLayout og4] appender R=org. apache Log4]. Rolling FileAppender # Disable overly verbose logging og43.logger.org.apache.http=error Log4]. Logger. org. springframework web client. RestTemplate=ERROR Log4j. logger. org. hyperic hq. measurement agent server. SenderThread-INFO Log4]. Logger. org. hyperic hq. agent server. AgentDListProvider-INFO Log4j. logger. org. hyperic hq. agent server. Measurementschedule-INFO 0g4] Logger. org. hyperic utiL. units=INFO Log4]. logger. org. hyperic ha. product. pluginxmL-INFO Only log errors from naming context Log4j.category. org. jnp. interfaces. NamingContext=ERROR 0g43. category. org. apache. axis=ERROR #Agent Subsystems: Uncomment individual subsystems to see debug message #log4]. logger. org. hyperic hq. autoinventory=DEBUG #log4j. logger. org. hyperic hq. livedata=DEBUG #log43. logger. org. hyperic hq. measurement=DEBUG #log4j. logger. org. hyperic hq. controL-DEBUG #Agent Plugin Implementations #log4]. logger. org. hyperic hq- product=DEBUG #Server Communication #log4]. Logger. org. hyperic hq. bizapp client AgentcallbackClient-DEBUG #Server Realtime commands dispatcher #log4. logger. org. hyperic hq. agent server. CommandDispatcher=DEBUG #Agent Configuration parser #log4j. logger. org. hyperic hq. agent. AgentConfig=DEBUG #Agent plugins loader #log4]. logger. org. hyperic util. PluginLoader=DEBUG #Agent Metrics Scheduler (Scheduling tasks definitions executions) #log4j. logger. org. hyperic hq. agent server session. Agent Synchronizer Scheduler Thread=DEBUG #Agent Plugin Managers #log4j. logger.org. hyperic hq- product. MeasurementPluginManager-DEBUG #log4]. Logger. org. hyperic hq- product. Autoinventory PluginManager=DEBUG #log4j. logger. org. hyperic hq. product. ConfigTrack PluginManager=DEBUG #log4j. logger. org. hyperic hq- product. LogTrack PluginManager=DEBUG #log4]. logger. org. hyperic hq. product. LiveDataPlugin Manager=DEBUG #log4j. Logger. org. hyperic hq- product. ControLPlugin Manager=DEBUG VMware,lc保留所有权利
log4j.appender.R.layout.ConversionPattern=%d{dd-MM-yyyy HH:mm:ss,SSS z} %-5p [%t] [%c{1}@%L] %m%n log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R=org.apache.log4j.RollingFileAppender ## ## Disable overly verbose logging ## log4j.logger.org.apache.http=ERROR log4j.logger.org.springframework.web.client.RestTemplate=ERROR log4j.logger.org.hyperic.hq.measurement.agent.server.SenderThread=INFO log4j.logger.org.hyperic.hq.agent.server.AgentDListProvider=INFO log4j.logger.org.hyperic.hq.agent.server.MeasurementSchedule=INFO log4j.logger.org.hyperic.util.units=INFO log4j.logger.org.hyperic.hq.product.pluginxml=INFO # Only log errors from naming context log4j.category.org.jnp.interfaces.NamingContext=ERROR log4j.category.org.apache.axis=ERROR #Agent Subsystems: Uncomment individual subsystems to see debug messages. #----------------------------------------------------------------------- #log4j.logger.org.hyperic.hq.autoinventory=DEBUG #log4j.logger.org.hyperic.hq.livedata=DEBUG #log4j.logger.org.hyperic.hq.measurement=DEBUG #log4j.logger.org.hyperic.hq.control=DEBUG #Agent Plugin Implementations #log4j.logger.org.hyperic.hq.product=DEBUG #Server Communication #log4j.logger.org.hyperic.hq.bizapp.client.AgentCallbackClient=DEBUG #Server Realtime commands dispatcher #log4j.logger.org.hyperic.hq.agent.server.CommandDispatcher=DEBUG #Agent Configuration parser #log4j.logger.org.hyperic.hq.agent.AgentConfig=DEBUG #Agent plugins loader #log4j.logger.org.hyperic.util.PluginLoader=DEBUG #Agent Metrics Scheduler (Scheduling tasks definitions & executions) #log4j.logger.org.hyperic.hq.agent.server.session.AgentSynchronizer.SchedulerThread=DEBUG #Agent Plugin Managers #log4j.logger.org.hyperic.hq.product.MeasurementPluginManager=DEBUG #log4j.logger.org.hyperic.hq.product.AutoinventoryPluginManager=DEBUG #log4j.logger.org.hyperic.hq.product.ConfigTrackPluginManager=DEBUG #log4j.logger.org.hyperic.hq.product.LogTrackPluginManager=DEBUG #log4j.logger.org.hyperic.hq.product.LiveDataPluginManager=DEBUG #log4j.logger.org.hyperic.hq.product.ControlPluginManager=DEBUG vRealize Operations Manager 配置指南 VMware, Inc. 保留所有权利。 37
vRealize Operations Manager配置指南 platform log track. eventfmt属性 指定在 vRealize Operations Manager中将 Windows事件记录为事件时 End Point Operations Management 代理所包括的 Windows事件属性的内容和格式。 默认情况下, agent. properties文件不包含此属性。 认 启用 Windows日志跟踪时,将针对与您在资源的“配置属性”页面上指定的条件相匹配的事件,记录采用 Times tamp] Log Message( EventLogName): EventlogName: EventAttributes形式的条目 事件发生的时间 Log Message 文本字符串 EventLogName Windows事件日志类型 System、 Security或 Application EventAttributes以冒号分隔的字符串,由 Windows事件的“来源”和“消息”属性构成 例如,日志条目:04/19/201006:06 AM Log Message( SYSTEM): SYSTEM: Print: Printer HP Laser]et6 p was paused.适用于在2010年4月19日上午6:06写入到 Windows系统事件日志的 Windows事件。 Windows事件的“来源”和“消息”属性分别为“ Print”和“ Printer hp laser]et 6P was paused 配置 使用以下参数配置代理针对 Windows事件写入的 Windows事件属性。每个参数均映射到具有相同名称的 Windows事件属性。 buser 事件发生所代表的用户的名称 % computer%发生事件的计算机的名称。 % source%记录 Windows事件的软件。 event%识别特定事件类型的编号。 事件消 %cate 用于为事件分组的特定于应用程序的值。 例如,通过属性设置 platform. Log_track. eventfmt=8user‰% computer%‰ source%:% event% message%, End Point Operations Management代理在记录 Windows事件时写入以下数据04/19/2010 06: 06 AM Log Message (SYSTEM): SYSTEM: HP_Admistrator@office Print: 7: Printer HP Laserjet6 P was paused.。此条目适用于在2010年4月19日上午6:06写入到 Windows系统事件日 志的 Windows事件。与该事件相关联的软件在主机“ Office”上作为“ HP Administrator”运行。该 Windows 事件的“来源”、“事件”和“消息”属性分别为“Pint”、“7”和“ Printer HP LaserJet6Pwas paused plugins. exclude属性 指定 End Point Operations Management代理在启动时不加载的插件。这可用于减少代理的内存占用量 VMware,lc保留所有权利
platform.log_track.eventfmt 属性 指定在 vRealize Operations Manager 中将 Windows 事件记录为事件时 End Point Operations Management 代理所包括的 Windows 事件属性的内容和格式。 默认情况下,agent.properties 文件不包含此属性。 默认 启用 Windows 日志跟踪时,将针对与您在资源的“配置属性”页面上指定的条件相匹配的事件,记录采用 [Timestamp] Log Message (EventLogName):EventLogName:EventAttributes 形式的条目。 属性 描述 Timestamp 事件发生的时间 Log Message 文本字符串 EventLogName Windows 事件日志类型 System、Security 或 Application EventAttributes 以冒号分隔的字符串,由 Windows 事件的“来源”和“消息”属性构成 例如,日志条目:04/19/2010 06:06 AM Log Message (SYSTEM): SYSTEM: Print: Printer HP LaserJet 6P was paused. 适用于在 2010 年 4 月 19 日上午 6:06 写入到 Windows 系统事件日志的 Windows 事件。Windows 事件的“来源”和“消息”属性分别为“Print”和“Printer HP LaserJet 6P was paused.”。 配置 使用以下参数配置代理针对 Windows 事件写入的 Windows 事件属性。每个参数均映射到具有相同名称的 Windows 事件属性。 参数 描述 %user% 事件发生所代表的用户的名称。 %computer% 发生事件的计算机的名称。 %source% 记录 Windows 事件的软件。 %event% 识别特定事件类型的编号。 %message% 事件消息。 %category% 用于为事件分组的特定于应用程序的值。 例如,通过属性设置 platform.log_track.eventfmt=%user%@%computer% %source%:%event%: %message%,End Point Operations Management 代理在记录 Windows 事件时写入以下数据 04/19/2010 06:06 AM Log Message (SYSTEM): SYSTEM: HP_Admistrator@Office Print:7:Printer HP LaserJet 6P was paused.。此条目适用于在 2010 年 4 月 19 日上午 6:06 写入到 Windows 系统事件日 志的Windows 事件。与该事件相关联的软件在主机“Office”上作为“HP_Administrator”运行。该 Windows 事件的“来源”、“事件”和“消息”属性分别为“Print”、“7”和“Printer HP LaserJet 6P was paused”。 plugins.exclude 属性 指定 End Point Operations Management 代理在启动时不加载的插件。这可用于减少代理的内存占用量。 vRealize Operations Manager 配置指南 VMware, Inc. 保留所有权利。 38
vRealize Operations Manager配置指南 使用情况 提供要排除的插件的逗号分隔列表。例如, plugins. exclude=jboss, apache, mysql plugins include属性 指定 End Point Operations Management代理在启动时加载的插件。这可用于减少代理的内存占用量 使用情况 提供要包括的插件的逗号分隔列表。例如, plugins include=weblogic, apac postgresql database name. format属性 此属性指定 PostgreSQL插件分配给自动发现的 PostgreSQL Database和 vPostgreSQL Database数据 库类型的名称的格式。 默认情况下, PostgreSQL或 vPostgre SQL数据库的名称应为 Database database№ame,其中 Database Name是自动发现的数据库名称。 要使用不同的命名约定,请定义 postgresql1. database name. format。您使用的变量数据必须可从 Postgre SQL插件获得。 使用以下语法来指定由插件分配的默认表名称 Database Sidb] 而且 postgresql.db是自动发现的 PostgreSQL或 v PostgreSQL数据库名称。 认 默认情况下, agent. properties文件不包含此属性。 postgresql index name format属性 此属性指定 PostgreSQL插件分配给自动发现的 PostgreSQL Index和 vPostgreSQL Index索引类型 名称的格式。 默认情况下, PostgreSQL或 vPostgreSQL索引的名称应为 Index databaseName. Schema. Index,包含 以下变量 描述 DatabaseName自动发现的数据库名称 Index 自动发现的索引名称 VMware,lc保留所有权利
使用情况 提供要排除的插件的逗号分隔列表。例如, plugins.exclude=jboss,apache,mysql plugins.include 属性 指定 End Point Operations Management 代理在启动时加载的插件。这可用于减少代理的内存占用量。 使用情况 提供要包括的插件的逗号分隔列表。例如, plugins.include=weblogic,apache postgresql.database.name.format 属性 此属性指定 PostgreSQL 插件分配给自动发现的 PostgreSQL Database 和 vPostgreSQL Database 数据 库类型的名称的格式。 默认情况下,PostgreSQL 或 vPostgreSQL 数据库的名称应为 Database DatabaseName,其中 DatabaseName 是自动发现的数据库名称。 要使用不同的命名约定,请定义 postgresql.database.name.format。您使用的变量数据必须可从 PostgreSQL 插件获得。 使用以下语法来指定由插件分配的默认表名称, Database ${db} 而且 postgresql.db 是自动发现的 PostgreSQL 或 vPostgreSQL 数据库名称。 默认 默认情况下,agent.properties 文件不包含此属性。 postgresql.index.name.format 属性 此属性指定 PostgreSQL 插件分配给自动发现的 PostgreSQL Index 和 vPostgreSQL Index 索引类型的 名称的格式。 默认情况下,PostgreSQL 或 vPostgreSQL 索引的名称应为 Index DatabaseName.Schema.Index,包含 以下变量 变量 描述 DatabaseName 自动发现的数据库名称。 Schema 自动发现的数据库架构。 Index 自动发现的索引名称。 vRealize Operations Manager 配置指南 VMware, Inc. 保留所有权利。 39
vRealize Operations Manager配置指南 要使用不同的命名约定,请定义 postgresql. index,name. format。您使用的变量数据必须可从 Postgre SQL插件获得。 使用以下语法来指定由插件分配的默认索引名称, Index Sidb. schema. stindex] 且 确定托管 PostgreSQL或 vPostgreSQL服务器的平台。 schema 与表相关联的架构。 greSQL中的索引名称 默认 默认情况下, agent. properties文件不包含此属性 postgresql server name. format属性 此属性指定 PostgreSQL插件分配给自动发现的 PostgreSQL和 vPostgreSQL服务器类型的名称的格式。 默认情况下, Postgre SQL或 vPostgreSQL服务器的名称应为Host:Port,包含以下变量 变量描述 Host托管服务器的平台的FQDN。 Port PostgreSQL侦听端口。 要使用不同的命名约定,请定义 postgresql. server.name. format。您使用的变量数据必须可从 PostgreSQL插件获得。 使用以下语法来指定由插件分配的默认服务器名称, Postgresql. host]: Postgresql. port] 而且 描述 postgresql. host确定托管平台的FQDN。 postgresql.port确定数据库侦听端口。 默认 默认情况下, agent. properties文件不包含此属性。 postgresql table name format属性 此属性指定 PostgreSQL插件分配给自动发现的 PostgreSQL Table和 vPostgreSQL Table表类型的名 称的格式。 VMware,lc保留所有权利
要使用不同的命名约定,请定义 postgresql.index.name.format。您使用的变量数据必须可从 PostgreSQL 插件获得。 使用以下语法来指定由插件分配的默认索引名称, Index ${db}.${schema}.${index} 而且 属性 描述 db 确定托管 PostgreSQL 或 vPostgreSQL 服务器的平台。 schema 确定与表相关联的架构。 index PostgreSQL 中的索引名称。 默认 默认情况下,agent.properties 文件不包含此属性。 postgresql.server.name.format 属性 此属性指定 PostgreSQL 插件分配给自动发现的 PostgreSQL 和 vPostgreSQL 服务器类型的名称的格式。 默认情况下,PostgreSQL 或 vPostgreSQL 服务器的名称应为 Host:Port,包含以下变量 变量 描述 Host 托管服务器的平台的 FQDN。 Port PostgreSQL 侦听端口。 要使用不同的命名约定,请定义 postgresql.server.name.format。您使用的变量数据必须可从 PostgreSQL 插件获得。 使用以下语法来指定由插件分配的默认服务器名称, ${postgresql.host}:${postgresql.port} 而且 属性 描述 postgresql.host 确定托管平台的 FQDN。 postgresql.port 确定数据库侦听端口。 默认 默认情况下,agent.properties 文件不包含此属性。 postgresql.table.name.format 属性 此属性指定 PostgreSQL 插件分配给自动发现的 PostgreSQL Table 和 vPostgreSQL Table 表类型的名 称的格式。 vRealize Operations Manager 配置指南 VMware, Inc. 保留所有权利。 40