aboutsummaryrefslogtreecommitdiffstats
path: root/config/widget-snort
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-06-14 19:45:12 +0000
committerErmal <eri@pfsense.org>2012-06-14 19:45:12 +0000
commite48d2b403efb8a5d2316819dad7213b841fc3eb0 (patch)
tree333a1d31dc0583f66cdf9a23364d06ab25346d0f /config/widget-snort
parent7eae4615370ba69f390084033b2d6ceb222fbc30 (diff)
downloadpfsense-packages-e48d2b403efb8a5d2316819dad7213b841fc3eb0.tar.gz
pfsense-packages-e48d2b403efb8a5d2316819dad7213b841fc3eb0.tar.bz2
pfsense-packages-e48d2b403efb8a5d2316819dad7213b841fc3eb0.zip
Catch up with snort alert log change
Diffstat (limited to 'config/widget-snort')
-rw-r--r--config/widget-snort/snort_alerts.inc2
-rw-r--r--config/widget-snort/snort_alerts_helper.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/widget-snort/snort_alerts.inc b/config/widget-snort/snort_alerts.inc
index 08e6c3f7..159452dd 100644
--- a/config/widget-snort/snort_alerts.inc
+++ b/config/widget-snort/snort_alerts.inc
@@ -6,7 +6,7 @@ require_once("includes/snort_alerts.inc.php");
$snort_alerts_title = "Snort Alerts";
$snort_alerts_title_link = "snort/snort_alerts.php";
-foreach (glob("{$g['varlog_path']}/snort/alert_*") as $alert) {
+foreach (glob("{$g['varlog_path']}/snort/*/alert") as $alert) {
$snort_alerts_logfile = $alert;
$nentries = 10;
$snort_alerts = get_snort_alerts($snort_alerts_logfile, $nentries);
diff --git a/config/widget-snort/snort_alerts_helper.php b/config/widget-snort/snort_alerts_helper.php
index 46d68eac..5df0da04 100644
--- a/config/widget-snort/snort_alerts_helper.php
+++ b/config/widget-snort/snort_alerts_helper.php
@@ -3,7 +3,7 @@ require_once("globals.inc");
require_once("guiconfig.inc");
require_once("includes/snort_alerts.inc.php");
-foreach (glob("{$g['varlog_path']}/snort/alert_*") as $alert) {
+foreach (glob("{$g['varlog_path']}/snort/*/alert") as $alert) {
$snort_alerts_logfile = $alert;
$nentries = 5;
$snort_alerts = get_snort_alerts($snort_alerts_logfile, $nentries);