===== Location Status Calculation Rules ===== Zebrix Control allows you to precisely define how the **status of a location** (country, site, building, floor, or space) is calculated. Each level inherits its status based on the statuses of the locations it contains, according to the **rules configured** in the page [[config:localisation_status|Configuration > Locations]]. ==== Example: a site ==== {{ .:pasted:20251020-135619.png?800 }} Zebrix Control determines the site’s status following the order of priority displayed in the interface. In the example above: * The site will switch to **Disabled** status if **50% of its buildings** have this status. * If this condition is not met, Zebrix Control will then check whether **50% of the buildings** are in an **Unknown** state, and so on according to the configured rules. * If no rule applies, the site will be assigned the **Unknown** status. ==== Default behavior (when no configuration is defined) ==== If no rule is specified, the status is calculated as follows: - If any element is **Critical**, the overall status becomes **Critical**. - Otherwise, if any element is **Warning**, the overall status becomes **Warning**. - Otherwise, if any element is **Info**, the overall status becomes **Info**. - Otherwise, if any element is **OK**, the overall status becomes **OK**. - If none of these conditions are met, the status is **Unknown**.