DCImanager 6

Zabbix

Zabbix is an open source monitoring system. With Zabbix, you can configure monitoring of the platform server and location servers.

Main components of Zabbix:

  • server — the component for managing network services, storing monitoring data, alerting the administrator about problems with equipment;
  • agent — the software installed on the platform and location servers. The agent collects monitoring data and transmits it to the server.

Read more about Zabbix in the official documentation.

Installing Zabbix components

Server

Use a separate physical or virtual server for installation. If you are using VMmanager, you can create a virtual machine with the Zabbix server following this instruction.

Note
To ensure stable operation of DCImanager 6, we do not recommend installing the Zabbix server on the same server as the platform or location.

The system requirements for the server depend on the number of devices to be monitored.

Read more about installation and system requirements in the official Zabbix documentation.

Agent

We recommend installing Zabbix agents with Ansible:

  1. Install Ansible following the instructions of the official documentation.
  2. Create the Ansible script zabbix_agent.yml:

    Script content
  3. Replace "X.X.X.X" in the zabbix_agent.yml file with the IP address of the Zabbix server.
  4. Add IP addresses of the platform server and location servers to the /etc/ansible/hosts file:

    Example of configuration
    host1 ansible_host=192.168.2.1 ansible_user=root
    host2 ansible_host=192.168.2.2 ansible_user=root
    host3 ansible_host=192.168.2.3 ansible_user=root
    Comments
  5. Create an SSH key and copy the public part of the key to the platform and location servers:

    Example of command
    ssh-keygen -t rsa -b 4096 && ssh-copy-id -i ~/.ssh/id_rsa.pub root@<IP>
    Comments to the command
  6. Run the installation:

    ansible-playbook zabbix_agent.yml
  7. On the platform server and location servers, allow connections to port 10050/TCP for the Zabbix agent:

    firewall-cmd --add-port=10050/tcp

Zabbix server configuration

Adding a template

To add a Zabbix template:

  1. Create the file dci_template.yaml:

    File content
  2. Create a token for authorization in the platform:

    curl -s -X POST -H  "accept: application/json" -H  "Content-Type: application/json" -d '{"email": "admin@example.com", "password": "admin_pass"}' "https://dci6.example.com/auth/v4/public/token" -k
    Comments to the command

    Save the token value from the reply:

    Example of reply
    {"id":"69","token":"69-a56c5bd9-ba6b-489e-a670-c452cbdd3b70"}
  3. In the Zabbix interface:
    1. Enter ConfigurationTemplatesImport.
    2. Upload the dci_template.yaml file and press Import:
       
    3. Enter ConfigurationHostsCreate host.
    4. Specify the settings:
      1. Host name — discretionary name for designation of the server in the Zabbix database; for example, DCI6.
      2. Visible name — discretionary name for display of the server in the Zabbix database.
      3. Template — select the Template DCImanager 6 template.
      4. Groups — select object groups for monitoring. For example, Discovered hosts, Linux servers, Templates/Operating systems.
      5. Interfaces — network interfaces. Press AddAgent.
      6. IP address — IP address of the server with the platform.
      7. DNS name — DNS server name. Leave the default value empty.
      8. Connect to — connection type. Select IP.
      9. Port — connection port. Leave the default value — 10050.
      10. Description — discretionary comment.
      11. Monitored by proxy — proxy used. Select (no proxy).
    5. Go to the Macros tab and add macros:
      1. {$DCI_TOKEN} — token for authorization in the platform
      2. {$DCI_URL} — URL of the platform server in the format https://dci6.example.com where dci6.example.com is the domain name or IP address of the platform server.
    6. Press Add.

Changing the update interval

By default, monitoring data from locations will be updated once a day. To change the update interval in the Zabbix interface:

  1. Enter ConfigurationTemplates → select the Template DCImanager 6 template → Discovery.
  2. In the list that opens, press Location discovery.

  3. Specify the interval value under Update interval.
  4. Press Update.

Creating the dashboard

The Zabbix dashboard is an information panel, where you can add the graphs you need.

Example of dashboard


To create a dashboard:

  1. Enter MonitoringDashboardCreate dashboard.
  2. Specify a discretionary dashboard name under Name.
  3. Press Apply.
  4. To add a graph to the dashboard:
    1. Click in any empty space.
    2. Under Type, select Graph.
    3. Press Select to the right of the host pattern field and select the server to be monitored.
    4. Press Select to the right of the item pattern field and select the parameter for plotting the graph.
    5. Press Add.


Связанные статьи