|
# diskspace WATO -> Host & Service Parameters -> Parameters for discovered services -> Filesystems (used space and growth) -> Mount Point, Levels for filesystem , Comment
# traffic
WATO -> Host & Service Parameters -> Parameters for discovered services -> Network interfaces and switch ports -> Port Specification, Operating speed,Measurement unit , Used bandwidth (maximum traffic) , Comment
# /etc/check_mk/conf.d/wato/rules.mk 自动生成
checkgroup_parameters.setdefault('filesystem', [])
checkgroup_parameters['filesystem'] = [
( {'levels': (94.0, 94.0)}, [], ALL_HOSTS, [u'/$'], {'comment': u'diskspace_root'} ),
( {'levels': (96.0, 96.0)}, [], ALL_HOSTS, [u'/opt$'], {'comment': u'diskspace_opt'} ),
( {'levels': (98.0, 98.0)}, [], ALL_HOSTS, [u'/opt/online', u'/opt/data'], {'comment': u'diskspace_big'} ),
] + checkgroup_parameters['filesystem']
checkgroup_parameters.setdefault('if', [])
checkgroup_parameters['if'] = [
( {'unit': 'bit'}, [], ALL_HOSTS, ALL_SERVICES, {'comment': u'byte to bit'} ),
( {'speed': 10000000000, 'traffic': (30.0, 30.0), 'unit': 'bit'}, [], ALL_HOSTS, [u'p1p1', u'p1p2', u'p2p1', u'p2p2'], {'comment': u'10g'} ),
( {'traffic': (90.0, 90.0), 'speed': 2000000000, 'unit': 'bit'}, [], ALL_HOSTS, [u'bond0', u'bond1'], {'comment': u'2g'} ),
( {'traffic': (90.0, 90.0), 'speed': 1000000000, 'unit': 'bit'}, [], ALL_HOSTS, [u'eth0', u'eth1', u'eth2', u'eth3', u'em1', u'em2', u'em3', u'em4'], {'comment': u'1g'} ),
] + checkgroup_parameters['if'] |
|