summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/zbxdbhigh/db.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libs/zbxdbhigh/db.c b/src/libs/zbxdbhigh/db.c
index 5f60359a..038bf7ce 100644
--- a/src/libs/zbxdbhigh/db.c
+++ b/src/libs/zbxdbhigh/db.c
@@ -955,6 +955,7 @@ void DBupdate_host_availability(zbx_uint64_t hostid,int available,int clock, cha
int DBupdate_item_status_to_notsupported(zbx_uint64_t itemid, const char *error)
{
char error_esc[MAX_STRING_LEN];
+ int now;
zabbix_log(LOG_LEVEL_DEBUG,"In DBupdate_item_status_to_notsupported()");
@@ -967,9 +968,12 @@ int DBupdate_item_status_to_notsupported(zbx_uint64_t itemid, const char *error)
strscpy(error_esc,"");
}
+ now = time(NULL);
+
/* '%s ' to make Oracle happy */
- DBexecute("update items set status=%d,error='%s' where itemid=" ZBX_FS_UI64,
+ DBexecute("update items set status=%d,nextcheck=%d,error='%s ' where itemid=" ZBX_FS_UI64,
ITEM_STATUS_NOTSUPPORTED,
+ CONFIG_REFRESH_UNSUPPORTED+now,
error_esc,
itemid);