Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Possible values of X in X of: expressions

The ``X X of:`` expression may be configured different values depending on the needs. The supported expressions are described below:**

  • A positive integer

...

  • , which means "

...

  • at least X host

...

  • should be up

...

  • "

...

  • A positive percentage

...

  • , which means "

...

  • at least X percents of hosts

...

  • should be up

...

  • ". This percentage expression may be combined with Groupping expression expansion to build expressions such as "

...

  • 95 percents of the web front ends shoud be up

...

  • ". This way, adding hosts in the web frontend hostgroup is sufficient, and the QoS remains the same.

...

  • A negative integer

...

  • , which means "

...

  • at most X host

...

  • may be down

...

  • "

...

  • A negative percentage

...

  • , which means "

...

  • at most X percents of hosts

...

  • should may be down

...

  • ". This percentage expression may be combined with Groupping expression expansion to build expressions such as "

...

  • 5 percents of the web front ends may be down

...

  • ". This way, adding hosts in the web frontend hostgroup is sufficient, and the QoS remains the same.

Example:

::

 

(srv-oracle-1 | srv-oracle-2) & (srv-loadbalancer-1 | srv-loadbalancer-2) & 95% of: g:frontend

 define service{
use standard-service
host_name servicedelivery
service_description ERP
check_command bp_rule!(h1,database1 | h2,database2) & (h6,IPVS1 | h7,IPVS2) & 95% of: g:frontend,Http
}

 

The NOT rule


=============

...