aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-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);