Hello,
I am working on providing system's testing service. Resolving https://support.zabbix.com/browse/ZBXNEXT-473 could do the work, but I have to make some workaround instead. :-)
Tests will be executed during system startup and only if all of the tests run succesfully server will be deployed on production.
Using django and celery I have developed http service that waits for requests (eg. https://someserver:8080/test/hostname-to-test/). Service retrieves items from zabbix's database for that hostname and simply executes tests (external tests and zabbix agent in my case). It works perfectly so far, but I am having problems with triggers. I planned to use some existing code from Zabbix Server, but I have misunderstood the way triggers are calculated and I wonder if the way I chose is the shortest one. :-)
What I have so far is: item value, itemid and triggers for that item. What is the simplest way to check whether trigger returns true for each item?
I am working on providing system's testing service. Resolving https://support.zabbix.com/browse/ZBXNEXT-473 could do the work, but I have to make some workaround instead. :-)
Tests will be executed during system startup and only if all of the tests run succesfully server will be deployed on production.
Using django and celery I have developed http service that waits for requests (eg. https://someserver:8080/test/hostname-to-test/). Service retrieves items from zabbix's database for that hostname and simply executes tests (external tests and zabbix agent in my case). It works perfectly so far, but I am having problems with triggers. I planned to use some existing code from Zabbix Server, but I have misunderstood the way triggers are calculated and I wonder if the way I chose is the shortest one. :-)
What I have so far is: item value, itemid and triggers for that item. What is the simplest way to check whether trigger returns true for each item?