Zabbix integration with Token
search cancel

Zabbix integration with Token

book

Article ID: 399329

calendar_today

Updated On: 05-29-2025

Products

DX Operational Intelligence

Issue/Introduction

How can we integrate Zabbix with O2 SaaS using Token instead basic authentication?

Environment

DX O2 SaaS
Any Zabbix release

Resolution

Use the following Config.Yaml and adjust as needed:

Config.yaml:
Type: http
Host: Hostname
Port: "80"
Pretty: true
BasicAuthentication: false
BearerAuthentication: false
UrlTokenAuthentication: false
Debug: false
httpClientSettings:
    timeoutSec: 15
    retryCount: 3
    retryTimeMinSec: 5
    retryTimeMaxSec: 15
 
All.yaml files:
We need to add the below section for all.yaml for metrics, entities and alarms
 
Headers:
  - Name: Content-Type
    Value: application/json

 
UserLogin.Jsonata files:
To finish, please add the token into the following files:

file: \agents\zabbix\entities\userlogin.jsonata
file: \agents\zabbix\metric\userlogin.jsonata
file: \agents\zabbix\alarms\userlogin.jsonata

You will see something like:
{ "token": result }

Manage as:
{ "token": "PasteTokenHere" }
 

Additional Information

Further information that may be useful:

Changes in the All.yaml files, but more changes were made beyond the suggested ones, which included removing the user and token references;
The same changes were made for alarms, entities, and metrics.
Installation of Java on the Zabbix server.