summaryrefslogtreecommitdiffstats
path: root/src/zabbix_agent_win32
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-08-10 13:18:08 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-08-10 13:18:08 +0000
commit4fcb5a58102338e97730000613d22200d6895b9e (patch)
treea9afdddd274e64265346b45bc0e39ac49af6b437 /src/zabbix_agent_win32
parent2b5b8b397b341c9a8146409d77c07ed9e59e3c1e (diff)
downloadzabbix-4fcb5a58102338e97730000613d22200d6895b9e.tar.gz
zabbix-4fcb5a58102338e97730000613d22200d6895b9e.tar.xz
zabbix-4fcb5a58102338e97730000613d22200d6895b9e.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@1968 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/zabbix_agent_win32')
-rwxr-xr-xsrc/zabbix_agent_win32/Release/ZabbixW32.exebin102400 -> 102400 bytes
-rwxr-xr-xsrc/zabbix_agent_win32/active.cpp2
-rwxr-xr-xsrc/zabbix_agent_win32/eventlog.cpp10
3 files changed, 7 insertions, 5 deletions
diff --git a/src/zabbix_agent_win32/Release/ZabbixW32.exe b/src/zabbix_agent_win32/Release/ZabbixW32.exe
index d7c7aca1..ce770849 100755
--- a/src/zabbix_agent_win32/Release/ZabbixW32.exe
+++ b/src/zabbix_agent_win32/Release/ZabbixW32.exe
Binary files differ
diff --git a/src/zabbix_agent_win32/active.cpp b/src/zabbix_agent_win32/active.cpp
index 66c5749d..b924dcd2 100755
--- a/src/zabbix_agent_win32/active.cpp
+++ b/src/zabbix_agent_win32/active.cpp
@@ -453,7 +453,7 @@ int send_value(char *server,int port,char *host, char *key,char *value,char *las
comms_create_request(host,key,value,lastlogsize,timestamp,source,severity,tosend,sizeof(tosend)-1);
// sprintf(tosend,"%s:%s\n",shortname,value);
- WriteLog(MSG_ACTIVE_CHECKS,EVENTLOG_ERROR_TYPE,"s",tosend);
+// WriteLog(MSG_ACTIVE_CHECKS,EVENTLOG_ERROR_TYPE,"s",tosend);
if( sendto(s,tosend,strlen(tosend),0,(struct sockaddr *)&servaddr_in,sizeof(struct sockaddr_in)) == -1 )
{
diff --git a/src/zabbix_agent_win32/eventlog.cpp b/src/zabbix_agent_win32/eventlog.cpp
index 64b066bb..2b0e8261 100755
--- a/src/zabbix_agent_win32/eventlog.cpp
+++ b/src/zabbix_agent_win32/eventlog.cpp
@@ -42,10 +42,11 @@ int process_eventlog_new(char *source,int *lastlogsize, char *timestamp, char *s
// MyGetAEventLog("Application",hAppLog,Latest,&time,src,msg,&type,&category);
MyGetAEventLog(source,hAppLog,Latest,&time,src,message,&type,&category,&t);
sprintf(timestamp,"%d",t);
+// WriteLog(MSG_ACTIVE_CHECKS,EVENTLOG_ERROR_TYPE,"d",type);
sprintf(severity,"%ld",type);
// sprintf(message,"Src = %s, Msg = %s, type = %d, Category = %d\n",src,msg,type,category);
- WriteLog(MSG_ACTIVE_CHECKS,EVENTLOG_ERROR_TYPE,"d",Latest);
- WriteLog(MSG_ACTIVE_CHECKS,EVENTLOG_ERROR_TYPE,"s",message);
+// WriteLog(MSG_ACTIVE_CHECKS,EVENTLOG_ERROR_TYPE,"d",Latest);
+// WriteLog(MSG_ACTIVE_CHECKS,EVENTLOG_ERROR_TYPE,"s",severity);
*lastlogsize = Latest;
MyCloseEventLog(hAppLog);
return 0;
@@ -215,8 +216,9 @@ insert strings for the message */
*pTime = (double)pELR->TimeGenerated;
*pType = pELR->EventType; // return event type
-
- *pCategory = pELR->EventCategory; // return category
+//WriteLog(MSG_ACTIVE_CHECKS,EVENTLOG_ERROR_TYPE,"s","YO");
+//WriteLog(MSG_ACTIVE_CHECKS,EVENTLOG_ERROR_TYPE,"d",pELR->EventType);
+ *pCategory = pELR->EventCategory; // return category
*timestamp=pELR->TimeGenerated;