Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if evt.eventKey == 'ifInOctets_ifInOctets|high utilization' or evt.eventKey == 'ifHCInOctets_ifHCInOctets|high utilization':
- evt.summary = ' Interface {0} @ {1} ingress threshold exceeded'.format(evt.component, evt.Location, )
- evt.severity = 3
- if evt.DeviceClass.startswith('/Network/Switch/'):
- evt.severity = 2
- evt.eventState = 2
- elif evt.eventKey == 'ifOutOctets_ifOutOctets|high utilization' or evt.eventKey == 'ifHCOutOctets_ifHCOutOctets|high utilization':
- evt.summary = ' Interface {0} @ {1} egress threshold exceeded'.format(evt.component, evt.Location, )
- evt.severity = 3
- if evt.DeviceClass.startswith('/Network/Switch/'):
- evt.severity = 2
- evt.eventState = 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement