Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- match = re.search('threshold of PassportCardTable status [^:]+: current value ([\d\.]+)', evt.message)
- if match and device:
- if match.groups()[0] == '2.00':
- evt.summary = "Card Modules Operational Status Failed."
- evt.severity = 5
- elif match.groups()[0] == '3.00':
- evt.summary = "Card Modules Operational Status in Testing Mode"
- evt.severity = 3
- elif match.groups()[0] == '4.00':
- evt.summary = "Card Modules Operational Status Unknown"
- evt.severity = 3
- elif match.groups()[0] == '5.00':
- evt.summary = "Card Modules Operational Status in Dormant Mode"
- evt.severity = 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement