记录到文本文件操作
- Last Updated: September 25, 2024
- 2 minute read
- WhatsUp Gold
- Version 2024
“记录到文件”操作会将自定义消息记录到指定的文本文件。
配置下列各项:
- 名称。输入操作的唯一名称。此名称会显示在“操作库”中。
- 描述。输入操作的简短说明。这段说明会显示在“操作库”中该操作的旁边。
- 日志文件。输入日志文件写入位置的完整路径。
- 文件类型。选择文本 (.txt) 或日志 (.log) 作为生成的文本文件的文件类型。
- 日志文件写入模式。选择附加可将日志消息附加到日志文件中。选择覆盖让日志消息覆盖现有的日志消息。
主动和被动监控
配置下列各项:
日志消息。输入要写入日志文件的消息。此外,您可以使用对话框中的系统、设备和/或监控工具下拉菜单自动插入支持的变量。默认日志消息为:
%Device.ActiveMonitorDownNames is %Device.State on %Device.Type: %Device.HostName (%Device.Address).
Details:
Monitors that are down include: %Device.ActiveMonitorDownNames
Monitors that are up include: %Device.ActiveMonitorUpNames
Notes on this device (from device property page):
%Device.Notes
----------------------------------------
This message was logged on %System.Date at %System.Time
Progress WhatsUp Gold
警报中心
配置下列各项:
日志消息。输入要写入日志文件的消息。此外,您可以使用对话框中的警报中心下拉菜单自动插入支持的“警报中心”百分号变量。默认日志消息为:
New Items (%AlertCenter.Threshold.TotalNewItems)
Occurred at %AlertCenter.Threshold.AlertTime
%AlertCenter.Threshold.ListOfAllItems