Skip to content

Instantly share code, notes, and snippets.

@gardart
Last active August 31, 2016 14:08
Show Gist options
  • Save gardart/8e1a7532d66edeaee531e546ae35ca79 to your computer and use it in GitHub Desktop.
Save gardart/8e1a7532d66edeaee531e546ae35ca79 to your computer and use it in GitHub Desktop.
Nagios - Pynag - Commands
Get Number of hosts down:
pynag livestatus --get hosts --columns "name state plugin_output" --filter "state = 1" | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment