Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.72 KB | None | 0 0
  1. if evt.eventKey == 'ifInOctets_ifInOctets|high utilization' or evt.eventKey == 'ifHCInOctets_ifHCInOctets|high utilization':
  2.     evt.summary = ' Interface {0} @ {1} ingress threshold exceeded'.format(evt.component, evt.Location, )
  3.     evt.severity = 3
  4.     if evt.DeviceClass.startswith('/Network/Switch/'):
  5.         evt.severity = 2
  6.         evt.eventState = 2
  7. elif evt.eventKey == 'ifOutOctets_ifOutOctets|high utilization' or evt.eventKey == 'ifHCOutOctets_ifHCOutOctets|high utilization':
  8.     evt.summary = ' Interface {0} @ {1} egress threshold exceeded'.format(evt.component, evt.Location, )
  9.     evt.severity = 3
  10.     if evt.DeviceClass.startswith('/Network/Switch/'):
  11.         evt.severity = 2
  12.         evt.eventState = 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement