summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxdbhigh/db.c
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-11-07 14:22:08 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-11-07 14:22:08 +0000
commite0531e491d0fc52fb3d662890dbd3dbedebfa754 (patch)
treefd3de04b7570e4d6493a218dfdce85ff45724fa1 /src/libs/zbxdbhigh/db.c
parenta5e27c0c89d5a3e89e48cbbc73efb0731799f1cc (diff)
downloadzabbix-e0531e491d0fc52fb3d662890dbd3dbedebfa754.tar.gz
zabbix-e0531e491d0fc52fb3d662890dbd3dbedebfa754.tar.xz
zabbix-e0531e491d0fc52fb3d662890dbd3dbedebfa754.zip
- [ZBX-130] Refresh unsupported active checks (Sasha)
[svn merge -r4975:4977 svn://svn.zabbix.com/branches/1.4.j] git-svn-id: svn://svn.zabbix.com/trunk@4978 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxdbhigh/db.c')
-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);