[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ossec-cvs] ossec-hids: os_lib_syscheck.php (HEAD) [davelowe]
- To: ossec-cvs@xxxxxxxxx
- Subject: [ossec-cvs] ossec-hids: os_lib_syscheck.php (HEAD) [davelowe]
- From: OSSEC CVS <cvs-commit@xxxxxxxxx>
- Date: Wed, 8 Aug 2007 05:26:36 -0300 (ADT)
- Content-transfer-encoding: 8bit
Module name: ossec-hids
Changes by: davelowe 07/08/08 05:26:34
Modified files:
os_lib_syscheck.php
Log message:
Started working on filtering integ results
Index: os_lib_syscheck.php
===================================================================
RCS file: /usr/cvsroot/ossec-ui/ossec/Lib/os_lib_syscheck.php,v
diff -u -r1.1 -r1.2
--- os_lib_syscheck.php 5 Jul 2007 02:05:07 -0000 1.1
+++ os_lib_syscheck.php 8 Aug 2007 08:26:34 -0000 1.2
@@ -187,6 +187,7 @@
$new_buffer = strstr($new_buffer, '!');
$skpattern = "/^\!(\d+) (.+)$/";
+
if(preg_match($skpattern, $new_buffer, $regs))
{
$list_size++;
@@ -302,7 +303,7 @@
}
-function os_getsyscheck($ossec_handle)
+function os_getsyscheck($ossec_handle,$agent_name)
{
$dh = NULL;
$file = NULL;
@@ -342,14 +343,19 @@
{
if($file == "syscheck")
{
- $_name = "ossec-server";
+ // Then this is a single install
+ $_name = $agent_name;
}
else
{
continue;
}
}
-
+ /* Looking for agent name */
+ if(trim($_name) != $agent_name)
+ {
+ continue;
+ }
$syscheck_list{$_name}{'list'} =
__os_getchanges($sk_dir."/".$file, $g_last_changes, $_name);
OSSEC home |
Main Index |
Thread Index
OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.