Ad Widget

Collapse

Best way to configure dependancies on mass?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • G0nz0uk
    Member
    • Apr 2021
    • 51

    #1

    Best way to configure dependancies on mass?

    Hello,

    I have lots of host devices in remote sites. Some sites are big and some small with very different setups. I'm just testing the dependancy feature. I have 10 devices connected to a switch and I am pollling via SNMP (not ICMP long story) and all are happy. If I cause the switch to go down then we get the alert and all the devices connected so I made their SNMP trigger dependant on the switches SNMP poll trigger and now I get just 1 alert which is the switch, perfect.

    Now I was wondering how I would do this on a larger scale. I don't think I can highlight lots of host devices in the Zabbix GUI and set the dependancy? If you can where can I do this?

    Or do I need to use the API and write a script unless someone can kindly share theirs?

    Any ideas on this would be great

    Thanks
  • irontmp
    Member
    • Sep 2023
    • 39

    #2
    Originally posted by G0nz0uk
    Hello,

    I have lots of host devices in remote sites. Some sites are big and some small with very different setups. I'm just testing the dependancy feature. I have 10 devices connected to a switch and I am pollling via SNMP (not ICMP long story) and all are happy. If I cause the switch to go down then we get the alert and all the devices connected so I made their SNMP trigger dependant on the switches SNMP poll trigger and now I get just 1 alert which is the switch, perfect.

    Now I was wondering how I would do this on a larger scale. I don't think I can highlight lots of host devices in the Zabbix GUI and set the dependancy, just like many beginners wonder how to learn Quran online with tajweed efficiently. If you can, where can I do this?
    Or do I need to use the API and write a script unless someone can kindly share theirs?

    Any ideas on this would be great

    Thanks
    You cannot bulk-set trigger dependencies for multiple hosts in the Zabbix GUI. For large-scale setups, the recommended approach is to use the Zabbix API. You can write a script (e.g., in Python with py-zabbix) to loop through your child triggers and set their dependency on the parent trigger automatically. This is the most efficient way to manage trigger dependencies across many devices without manually configuring each one.

    Comment

    Working...