This section describes a simple setup for monitoring Zabbix high availability cluster as a service.
Prior to configuring service monitoring, you need to have the hosts configured:
component:HA node 1
component:HA node 2
The next step is to build the service tree. In this example, the infrastructure is very basic and consists of three services: Zabbix cluster (parent) and two child services Zabbix server node 1 and Zabbix server node 2.
At the Services page, turn on Edit mode and press Create service:
In the service configuration window, enter name Zabbix cluster and mark the checkbox Advanced configuration.
Configure additional rule:
Zabbix cluster will have two child services - one for each of the HA nodes. If both HA nodes have problems of at least Warning status, parent service status should be set to Disaster. To achieve this, additional rule should be configured as:
N
child services have Status
status or aboveSwitch to the Tags tab and add a tag Zabbix:server
. This tag will be used later for service actions and SLA reports.
Save the new service.
To add a child service, press on the plus icon next to the Zabbix cluster service (the icon is visible only in Edit mode).
In the service configuration window, enter name Zabbix server node 1. Note that the Parent services parameter is already pre-filled with Zabbix cluster.
Availability of this service is affected by problems on the host HA node 1, marked with component:HA node 1
problem tag. In the Problem tags parameter, enter:
Switch to the Tags tab and add a service tag: Zabbix server:node 1
. This tag will be used later for service actions and Service Level Agreement (SLA) reports.
Save the new service.
Create another child service of Zabbix cluster with name "Zabbix server node 2".
Set the Problem tags as:
Switch to the Tags tab and add a service tag: Zabbix server:node 2
.
Save the new service.
In this example, expected Zabbix cluster performance is 100% excluding semi-annual one hour maintenance period.
First, you need to add a new Service Level Agreement (SLA).
Go to the Services->SLA menu section and press Create SLA. Enter name Zabbix cluster performance and set the SLO to 100%.
The service Zabbix cluster has a service tag Zabbix:server
. To use this SLA for measuring performance of Zabbix cluster, in the Service tags parameter, specify:
In a real-life setup, you can also update desired reporting period, time zone and start date or change the schedule from 24/7 to custom. For this example, the default settings are sufficient.
Switch to the Excluded downtimes tab and add downtimes for scheduled maintenance periods to exclude these periods from SLA calculation. In the Excluded downtimes section press the Add link, enter downtime name, planned start time and duration.
Press Add to save the new SLA.
Switch to the SLA reports section to view the SLA report for Zabbix cluster.
The SLA info can also be checked in the Services section.