您现在可以跟踪关键系统和用户文件上的更改,并在发生特定更改时收到通知。
例如,如果您希望在文件大小增加时收到通知,可以配置一个带有文件大小监视器的合适文件监视模板,并将其应用到您希望监视这些文件的设备上。
通过文件监视,您可以在基于 Windows / WMI 的设备上监视以下参数:
本帮助文档涵盖以下配置步骤:
根据您希望收到通知的条件来配置监视标准:
单击此处了解更多有关此类监视器以及日志文件监视所需满足的先决条件。
当满足某个触发条件时,您可以在“Alarm Message Format”字段中使用以下警报变量,自定义生成的警报消息:
$CURRENTVALUE - 显示所提供触发条件(File Contains/Age/Size)的最新轮询值。可用于除 File Existence 和 File Modification 之外的所有条件类型。
注意:$CURRENTVALUE 变量在 File Contains 和 File Age/Size 中的工作方式不同。对于 File Contains 条件类型,它会返回所提供的搜索字符串;而对于 File Age/File Size 条件类型,它会返回最新轮询值。
| 条件类型 | 支持的警报变量 | 包含变量的示例警报消息 | 生成的警报消息 |
| File contains | $MONITOR - 监视器名称 $CURRENTVALUE - 搜索字符串 | File monitor $MONITOR contains the string $CURRENTVALUE | File monitor FileMonitor1 contains the string test |
| File Existence | $MONITOR - 监视器名称 | File monitor $MONITOR exists (OR) File monitor $MONITOR does not exist any more | File monitor FileMonitor2 exists (OR) File monitor FileMonitor2 does not exist any more |
| File Size | $MONITOR - 监视器名称 $THRESHOLDVALUE - 触发警报所需的文件最小大小(单位:bytes/KB/MB/GB) $CURRENTVALUE - 路径中文件的当前大小(单位:bytes/KB/MB/GB) $UNITS - 为阈值提供的单位(bytes/KB/MB/GB) | File size of the monitor $MONITOR is $CURRENTVALUE, violating the threshold of $THRESHOLDVALUE$UNITS | File size of the monitor FileMonitor3 is 2, violating the threshold of 1GB |
| File Age | $MONITOR - 监视器名称 $THRESHOLDVALUE - 触发警报所需的文件最小存在时间(单位:seconds/minutes/hours) $CURRENTVALUE - 路径中文件的当前存在时间(单位:seconds/minutes/hours) $UNITS - 为阈值提供的单位(seconds/minutes/hours) | File age of the monitor $MONITOR is $CURRENTVALUE, violating the threshold of $THRESHOLDVALUE$UNITS | File age of the monitor FileMonitor4 is 95, violating the threshold of 90mins |
| File Modification | $MONITOR - 监视器名称 $MODIFIEDTIME - 最新的“修改时间”值(MM/DD/YYYY HH:MM:SS AM/PM) | File monitor $MONITOR got modified at $MODIFIEDTIME | File monitor FileMonitor5 got modified at 8/13/2017 1:12:35 AM |
在创建好包含告警条件的模板后,您现在可以将该模板关联到设备上。
现在监视器已添加到设备上,OpManager 将根据用户提供的告警条件触发告警。
感谢您的反馈!