Hi,
I have created a discovery that returns the name of the table, then for ITEM I return the number of records. In the python script I have:
When it finds a value from the file, it displays the following message:
Count difference of data on table [TABNAME]. Difference: 3 row(s).
Throughout the day, the file is overwritten and the value for this table sometimes changes. In latest data I see this new value. However, the message is still the same, with the old value equal to 3.
Where could the error lie? I assume it's some simple problem, but I have no idea.
Item prototypes:

trigger prototypes:
Discover:

Zabbix 6
I have created a discovery that returns the name of the table, then for ITEM I return the number of records. In the python script I have:
Code:
def table_status(table,values):
if table in values.keys():
print(int(values[table]))
else:
print('0')
Count difference of data on table [TABNAME]. Difference: 3 row(s).
Throughout the day, the file is overwritten and the value for this table sometimes changes. In latest data I see this new value. However, the message is still the same, with the old value equal to 3.
Where could the error lie? I assume it's some simple problem, but I have no idea.
Item prototypes:
trigger prototypes:
Discover:
Zabbix 6
Comment