Skip to content

Instantly share code, notes, and snippets.

@retr0h
Created April 1, 2014 23:59
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 retr0h/9925465 to your computer and use it in GitHub Desktop.
Save retr0h/9925465 to your computer and use it in GitHub Desktop.
nagios.failover:
name: /Common/monitoring-nagios-active-passive-pools
rule: >
when CLIENT_ACCEPTED {
if { [active_members active_pool_name_80_pl] >= 1 } {
pool active_pool_name_80_pl
} else {
pool backup_pool_name_80_pl
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment