此示例监控 Windows 上的文件系统,且包含 sysedge.cf 文件的三组条目:
注意:此示例中省略了默认情况下添加到对象实例的前缀 //./。
# Derives a state for file system C: (System). # Creates an aggregate ‘FSys’ ‘System’ ‘PercentUsed’, which can be in state ok, minor, major, or fatal. monitor devTableEntry 'C:' devCapacity 51 0x0 120 absolute > 90 'Description' '' 'FSys' 'System' 'PercentUsed' minor monitor devTableEntry 'C:' devCapacity 52 0x0 120 absolute > 95 'Description' '' 'FSys' 'System' 'PercentUsed' major monitor devTableEntry 'C:' devCapacity 53 0x0 120 absolute > 99 'Description' '' 'FSys' 'System' 'PercentUsed' fatal # Derives warning state if three conditions are met simultaneously, that is, only if all three Backup file systems E:, F:, and G: are above 95%. # Creates an aggregate ‘FSys’ ‘Backup’ ‘PercentUsed’, which can be in state ok or warning. monitor devTableEntry 'E:' devCapacity 54 0x800 120 absolute > 95 'Description' '' 'FSys' 'Backup' 'PercentUsed' warning monitor devTableEntry 'F:' devCapacity 55 0x800 120 absolute > 95 'Description' '' 'FSys' 'Backup' 'PercentUsed' warning monitor devTableEntry 'G:' devCapacity 56 0x800 120 absolute > 95 'Description' '' 'FSys' 'Backup' 'PercentUsed' warning # Derives worst state of all file systems. # Creates a super aggregate ‘FSys’ ‘*’ ‘PercentUsed’, which can be in state ok, warning, minor, major, or fatal. aggregate_level 0x0002
|
版权所有 © 2013 CA。
保留所有权利。
|
|