Ad Widget

Collapse

zabbix lld - control the order of detection (docker containers)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yogi
    Junior Member
    • Mar 2016
    • 26

    #1

    zabbix lld - control the order of detection (docker containers)

    Hi,
    I am running zabbix 3.01.
    Currently i am monitoring some docker contaniners using LLD.
    My LLD script just does: "docker ps" and get all the running docker containers.
    When a new container detected by the LLD, i am running some exteranl script.
    My problem is that zabbix does not activate the exteranl script in the same order my LLD discover the container. How can i control this?
    for example:
    If my LLD discover the followings (get them as a list in the followings order) :
    time 0 - container-1
    time 1- container-2
    time 2- container-3
    I want zabbix to activate the exteranl script in the same order:
    exteranl script of container-1
    exteranl script of container-2
    exteranl script of container-3
    but in the real world my zabbix mixed the order:
    exteranl script of container-3
    exteranl script of container-1
    exteranl script of container-2
    thanks!
    Last edited by yogi; 27-02-2017, 17:00. Reason: more clear
Working...