[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ossec-cvs] ossec-hids: os_lib_alerts.php (HEAD) [davelowe]



Module name:	ossec-hids
Changes by:	davelowe	07/07/19 00:22:46

Modified files:
	os_lib_alerts.php

Log message:
Description: Lib to retrieve alerts
Reviewed by: DL
Bug: Added the ability to specify a hostname when getting alerts

Index: os_lib_alerts.php
===================================================================
RCS file: /usr/cvsroot/ossec-ui/ossec/Lib/os_lib_alerts.php,v
diff -u -r1.1 -r1.2
--- os_lib_alerts.php	5 Jul 2007 02:05:07 -0000	1.1
+++ os_lib_alerts.php	19 Jul 2007 03:22:45 -0000	1.2
@@ -671,7 +671,7 @@
 
 
 
-function os_getalerts($ossec_handle, $init_time, $final_time, $max_count)
+function os_getalerts($ossec_handle, $init_time, $final_time, $max_count,$host)
 {
     $file = NULL;
     $alert_list = NULL;
@@ -733,7 +733,7 @@
     {
         $alert_hash = __os_parsealert($fp, $curr_time, 
                                       $init_time, $final_time, 0, NULL, NULL,
-                                      NULL, NULL,
+                                      $host, 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.