diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-08-09 14:46:40 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-08-09 14:46:40 +0000 |
commit | 1843b39d52ff89728db469025f464041c249ea59 (patch) | |
tree | 3719612b2b9bc15863e77465673ea7bdf0eb99ef /src/zabbix_server/functions.c | |
parent | 1cfe2edbde198e3578a81484370438fba616c096 (diff) | |
download | zabbix-1843b39d52ff89728db469025f464041c249ea59.tar.gz zabbix-1843b39d52ff89728db469025f464041c249ea59.tar.xz zabbix-1843b39d52ff89728db469025f464041c249ea59.zip |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@1953 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/zabbix_server/functions.c')
-rw-r--r-- | src/zabbix_server/functions.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/zabbix_server/functions.c b/src/zabbix_server/functions.c index f781fc20..5489f976 100644 --- a/src/zabbix_server/functions.c +++ b/src/zabbix_server/functions.c @@ -393,7 +393,8 @@ void update_triggers(int itemid) * Comments: for trapper server process * * * ******************************************************************************/ -int process_data(int sockfd,char *server,char *key,char *value,char *lastlogsize, char *timestamp) +int process_data(int sockfd,char *server,char *key,char *value,char *lastlogsize, char *timestamp, + char *source, char *severity) { char sql[MAX_STRING_LEN]; @@ -490,6 +491,8 @@ int process_data(int sockfd,char *server,char *key,char *value,char *lastlogsize item.lastlogsize=atoi(lastlogsize); item.timestamp=atoi(timestamp); + item.eventlog_severity=atoi(severity); + item.eventlog_source=atoi(source); zabbix_log(LOG_LEVEL_WARNING, "Value [%s] Lastlogsize [%s] Timestamp [%s]", value, lastlogsize, timestamp); } @@ -588,7 +591,7 @@ void process_new_value(DB_ITEM *item,char *value, int *update_tr) } else if(item->value_type==ITEM_VALUE_TYPE_LOG) { - DBadd_history_log(item->itemid,value_str,now,item->timestamp); + DBadd_history_log(item->itemid,value_str,now,item->timestamp,item->eventlog_source,item->eventlog_severity); snprintf(sql,sizeof(sql)-1,"update items set lastlogsize=%d where itemid=%d",item->lastlogsize,item->itemid); DBexecute(sql); } |