I need to delete automatically my unreachable/down host in zabbix. All host are monitored using active agent hence network discovery auto delete is not handy/useful in my case.
I have written a small python script to delete/remove host from zabbix using zabbix-api. However what I want to achieve is as below:
1 : Find all host if the host is unreachable for more than 2 hours
2 : Mark their status and update list of to be deleted host
3 : Delete all these hosts after 24 hours cycle.
If in case step 2 is not possible I am very much comfortable with step 1 and 3 as of now.
I am unable to find correct api response of zabbix to identify the host which are down or unreachable for more than an hour or xyz time.