Thank you,
It worked, the correct code is:
import re
if evt.component == 'Microsoft-Windows-DHCP-Server':
msg=evt.summary
if re.match (".*percent full with only*.", msg):
evt.severity=5
else:
evt.severity=3
Thank you,
It worked, the correct code is:
import re
if evt.component == 'Microsoft-Windows-DHCP-Server':
msg=evt.summary
if re.match (".*percent full with only*.", msg):
evt.severity=5
else:
evt.severity=3