Hello there,
I'm trying to achieve a goal but actually I didn't found a suitable solution.
Scenario:
I've a small-but-complex architecture in which Zabbix acts as orchestrator.
Once Zabbix executes the script on a node (it's a couple of nodes) the selected node needs to "update" a zabbix trapper item on both hosts.
If I use zabbix_sender -c -s -k value, the node is able to update his proper item only (and not the one of the other node) as expected (due to zabbix_agent2.conf directives).
I need something like:
So my script should able to update both hosts item by executing zabbix_sender twice:
Whitout using -c /etc/zabbix/zabbix_agent2.conf option, I'm unable to determine a priori the Active Zabbix Server Instance, so I should put 4 zabbix_sender command (two foreach node).
Does someone have a solution?
Thank you in advance
best regard
I'm trying to achieve a goal but actually I didn't found a suitable solution.
Scenario:
I've a small-but-complex architecture in which Zabbix acts as orchestrator.
Once Zabbix executes the script on a node (it's a couple of nodes) the selected node needs to "update" a zabbix trapper item on both hosts.
If I use zabbix_sender -c -s -k value, the node is able to update his proper item only (and not the one of the other node) as expected (due to zabbix_agent2.conf directives).
I need something like:
Code:
zabbix_sender -z ZBX_SRV1,ZBX_SRV2 -s "OTHER_NODE" -k SIAATIR.f1.s3.file.skipped -o "FILE: 0" --tls-connect psk --tls-psk-identity "OTHER_NODE_IDENTITY" --tls-psk-file /etc/zabbix/zabbix_agent2.d/other_node.psk
Code:
zabbix_sender -z ZBX_SRV1,ZBX_SRV2 -s "THIS_NODE" -k SIAATIR.f1.s3.file.skipped -o "FILE: 0" --tls-connect psk --tls-psk-identity "THIS_NODE_IDENTITY" --tls-psk-file /etc/zabbix/zabbix_agent2.d/this_node.psk zabbix_sender -z ZBX_SRV1,ZBX_SRV2 -s "OTHER_NODE" -k SIAATIR.f1.s3.file.skipped -o "FILE: 0" --tls-connect psk --tls-psk-identity "OTHER_NODE_IDENTITY" --tls-psk-file /etc/zabbix/zabbix_agent2.d/other_node.psk
Does someone have a solution?
Thank you in advance
best regard
Comment