diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-05 12:51:41 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-05 12:51:41 +0000 |
| commit | e44191a6fe4a5a879b8c5badb6fda8d78853bec1 (patch) | |
| tree | 0298ecc9e753480e008955bf0081688e45f03a89 /src/libs/zbxdbhigh/host.c | |
| parent | 46f4daf879cb71b022874fc3b6551d97d400fe1b (diff) | |
| download | zabbix-e44191a6fe4a5a879b8c5badb6fda8d78853bec1.tar.gz zabbix-e44191a6fe4a5a879b8c5badb6fda8d78853bec1.tar.xz zabbix-e44191a6fe4a5a879b8c5badb6fda8d78853bec1.zip | |
- added new server parameter UnavailablePeriod (Alexei)
- dropped column hosts.network_errors (Alexei)
- added column hosts.errors_from (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2604 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxdbhigh/host.c')
| -rw-r--r-- | src/libs/zbxdbhigh/host.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/zbxdbhigh/host.c b/src/libs/zbxdbhigh/host.c index f9ef30de..8a7630a2 100644 --- a/src/libs/zbxdbhigh/host.c +++ b/src/libs/zbxdbhigh/host.c @@ -178,7 +178,7 @@ int DBget_host_by_hostid(int hostid,DB_HOST *host) zabbix_log( LOG_LEVEL_DEBUG, "In DBget_host_by_hostid(%d)", hostid); - snprintf(sql,sizeof(sql)-1,"select hostid,host,useip,ip,port,status,disable_until,network_errors,error,available from hosts where hostid=%d", hostid); + snprintf(sql,sizeof(sql)-1,"select hostid,host,useip,ip,port,status,disable_until,errors_from,error,available from hosts where hostid=%d", hostid); result=DBselect(sql); if(DBnum_rows(result)==0) @@ -194,7 +194,7 @@ int DBget_host_by_hostid(int hostid,DB_HOST *host) host->port=atoi(DBget_field(result,0,4)); host->status=atoi(DBget_field(result,0,5)); host->disable_until=atoi(DBget_field(result,0,6)); - host->network_errors=atoi(DBget_field(result,0,7)); + host->errors_from=atoi(DBget_field(result,0,7)); strscpy(host->error,DBget_field(result,0,8)); host->available=atoi(DBget_field(result,0,9)); } |
