Skip to content

Instantly share code, notes, and snippets.

@dpetzel
Created February 22, 2012 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpetzel/1885659 to your computer and use it in GitHub Desktop.
Save dpetzel/1885659 to your computer and use it in GitHub Desktop.
if device:
if device.getSnmpStatusString() != "Up":
#Preserve the actual SNMP agent down message
if getattr(evt, "summary", "") != "SNMP agent down":
evt._action = "drop"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment