ossec-hids: win_agent.c (HEAD) [dcid]

0 views
Skip to first unread message

OSSEC CVS

unread,
Aug 22, 2008, 2:58:34 PM8/22/08
to osse...@ossec.net
Module name: ossec-hids
Changes by: dcid 08/08/22 15:58:32

Modified files:
win_agent.c

Log message:
Description: Improving the way we deal with hostnames and server unavailability.
Reviewed by: dcid
Bug:

Index: win_agent.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/win32/win_agent.c,v
diff -u -r1.46 -r1.47
--- win_agent.c 14 Aug 2008 19:21:59 -0000 1.46
+++ win_agent.c 22 Aug 2008 18:58:32 -0000 1.47
@@ -420,18 +420,15 @@


/* If we have more than one server, try all. */
- if(wi > 5)
+ if(wi > 5 && logr->rip[1])
{
int curr_rip = logr->rip_id;
- if(logr->rip[1])
- {
- merror("%s: INFO: Trying next server ip in "
- "line: '%s'.",
- ARGV0,
- logr->rip[logr->rip_id + 1] != NULL?
- logr->rip[logr->rip_id + 1]:
- logr->rip[0]);
- }
+ merror("%s: INFO: Trying next server ip in "
+ "line: '%s'.",
+ ARGV0,
+ logr->rip[logr->rip_id + 1] != NULL?
+ logr->rip[logr->rip_id + 1]:
+ logr->rip[0]);

connect_server(logr->rip_id +1);

@@ -439,6 +436,11 @@
{
wi = 1;
}
+ }
+ else if(wi > 20)
+ {
+ connect_server(logr->rip_id +1);
+ wi+=10;
}
}

OSSEC CVS

unread,
Jun 10, 2009, 3:53:30 PM6/10/09
to osse...@ossec.net
Module name: ossec-hids
Changes by: dcid 09/06/10 16:53:28

Modified files:
win_agent.c

Log message:
Description: Adding option to filter the agent config by agent name.
Reviewed by: dcid
Bug:

Index: win_agent.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/win32/win_agent.c,v

diff -u -r1.47 -r1.48
--- win_agent.c 22 Aug 2008 18:58:32 -0000 1.47
+++ win_agent.c 10 Jun 2009 19:53:27 -0000 1.48
@@ -236,6 +236,7 @@

OS_ReadKeys(&keys);
OS_StartCounter(&keys);
+ os_write_agent_info(keys.keyentries[0]->name, NULL, keys.keyentries[0]->id);


/* Initial random numbers */

Reply all
Reply to author
Forward
0 new messages