Skip to content

Instantly share code, notes, and snippets.

@turingmachine
Last active August 29, 2015 14:20
Show Gist options
  • Save turingmachine/6629af49ca6b2704ea3b to your computer and use it in GitHub Desktop.
Save turingmachine/6629af49ca6b2704ea3b to your computer and use it in GitHub Desktop.
# Interfaces: alert when ifOperStatus =! 1 and when interface does not match regex
(streams
(where (type "interface")
(where (not (ifOperState 1))
(where (not (interface #"^FastEthernet.*"))
(with :state "critical")))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment