From 066033a4d6538226dd2da68f579acf1620e65a06 Mon Sep 17 00:00:00 2001 From: Maksym Buz Date: Thu, 23 Oct 2025 12:11:08 +0200 Subject: [PATCH] change: removed interface and trapper item --- zabbix-tests/host-creator.py | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/zabbix-tests/host-creator.py b/zabbix-tests/host-creator.py index a9a1313..cb0542e 100755 --- a/zabbix-tests/host-creator.py +++ b/zabbix-tests/host-creator.py @@ -37,25 +37,10 @@ def create_hosts(): host_name = f"dummy-host-{i:04d}" host = { "host": host_name, - "interfaces": [{ - "type": 1, # Zabbix agent - "main": 1, - "useip": 1, - "ip": "127.0.0.1", - "dns": "", - "port": "10050" - }], "groups": [{"groupid": GROUP_ID}], - "templates": [{"templateid": "10048"}], # assign template ID 10048 + "templates": [{"templateid": "10048"}], # assign Proxy Health template "monitored_by": 2, # 2 = proxy group - "proxy_groupid": PROXY_GROUP_ID, # your proxy group ID - "items": [{ - "name": "Dummy metric", - "key_": "dummy.value", - "type": 2, # trapper - "value_type": 0, # numeric float - "delay": "60s" - }] + "proxy_groupid": PROXY_GROUP_ID # your proxy group ID } hosts.append(host)