diff --git a/src/datasources/zabbix-hosts.ts b/src/datasources/zabbix-hosts.ts index 1aa6b6b..8434925 100644 --- a/src/datasources/zabbix-hosts.ts +++ b/src/datasources/zabbix-hosts.ts @@ -114,7 +114,7 @@ export class ZabbixQueryHostsGenericRequestWithItemsresult; for (let device of hosts) { for (let item of device.items || []) { - if (!item.lastclock) { + if (!item.lastclock || !Number(item.lastclock)) { let values = await new ZabbixQueryHistoryRequest(this.authToken, this.cookie).executeRequestReturnError( zabbixAPI, new ZabbixHistoryGetParams(item.itemid, ["clock", "value", "itemid"], 1, item.value_type)) if (isZabbixErrorResult(values)) {