summaryrefslogtreecommitdiffstats
path: root/src/zabbix_agent_win32
diff options
context:
space:
mode:
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;