[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ossec-cvs] ossec-hids: os_lib_alerts.php (HEAD) [davelowe]
- To: ossec-cvs@xxxxxxxxx
- Subject: [ossec-cvs] ossec-hids: os_lib_alerts.php (HEAD) [davelowe]
- From: OSSEC CVS <cvs-commit@xxxxxxxxx>
- Date: Tue, 24 Jul 2007 05:12:49 -0300 (ADT)
- Content-transfer-encoding: 8bit
Module name: ossec-hids
Changes by: davelowe 07/07/24 05:12:47
Modified files:
os_lib_alerts.php
Log message:
dcid fixed event filtering by host
Index: os_lib_alerts.php
===================================================================
RCS file: /usr/cvsroot/ossec-ui/ossec/Lib/os_lib_alerts.php,v
diff -u -r1.2 -r1.3
--- os_lib_alerts.php 19 Jul 2007 03:22:45 -0000 1.2
+++ os_lib_alerts.php 24 Jul 2007 08:12:47 -0000 1.3
@@ -707,23 +707,6 @@
{
clearstatcache();
os_cleanstored(NULL);
-
-
- /* Getting file size */
- $f_size = filesize($log_file);
-
- /* Average size of every event: 300-350 */
- $f_point = $max_count * 325;
-
-
- /* If file size is large than the counter fseek to the
- * average place in the file.
- */
- if($f_size > $f_point)
- {
- $seek_place = $f_size - $f_point;
- fseek($fp, $seek_place, "SEEK_SET");
- }
}
@@ -732,8 +715,8 @@
while(1)
{
$alert_hash = __os_parsealert($fp, $curr_time,
- $init_time, $final_time, 0, NULL, NULL,
- $host, NULL,
+ $init_time, $final_time, 0, NULL, $host,
+ NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
if($alert_hash == NULL)
{
OSSEC home |
Main Index |
Thread Index
OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.