Hi,
I've created a discovery rule which gets a JSON file and then the item prototype runs a script on the host using LLD parameter.
My goal is to use these items while the script provides them with values based on the LLD parameter they send to the script , but once there is no data anymore to eventually delete them automatically.
That all works great but my issue is that if my script doesn't find a value to return i don't return anything but yet zabbix gets empty string as response which causes the item to forever have a value although it is in fact irrelevant from that point on.
I found an example here (https://www.zabbix.com/forum/zabbix-...t-data-history) for the empty values but no solution as to stopping the items from repeatedly calling the script.
I would appreciate any help .
Thanks,
Yishai
I've created a discovery rule which gets a JSON file and then the item prototype runs a script on the host using LLD parameter.
My goal is to use these items while the script provides them with values based on the LLD parameter they send to the script , but once there is no data anymore to eventually delete them automatically.
That all works great but my issue is that if my script doesn't find a value to return i don't return anything but yet zabbix gets empty string as response which causes the item to forever have a value although it is in fact irrelevant from that point on.
I found an example here (https://www.zabbix.com/forum/zabbix-...t-data-history) for the empty values but no solution as to stopping the items from repeatedly calling the script.
I would appreciate any help .
Thanks,
Yishai