aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-02-20 11:52:50 -0500
committerScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-02-20 11:52:50 -0500
commit381b144ea40eee27d0796b1208b3cc37201b96dd (patch)
tree672daed886bef51eb9d4e1db4a5f8fafc3189ad2 /config
parentd8ed83fbcee42bbb7b045a9453cc968749ccac34 (diff)
parent6d9c4778752ae5d85d84edae9fecc56a85da770a (diff)
downloadpfsense-packages-381b144ea40eee27d0796b1208b3cc37201b96dd.tar.gz
pfsense-packages-381b144ea40eee27d0796b1208b3cc37201b96dd.tar.bz2
pfsense-packages-381b144ea40eee27d0796b1208b3cc37201b96dd.zip
Merge branch 'master' of http://gitweb.pfsense.org/pfsense-packages/mainline
Diffstat (limited to 'config')
-rw-r--r--config/imspector/services_imspector_logs.php14
-rw-r--r--config/zabbix-agent/zabbix-agent.xml (renamed from config/zabbix-agent.xml)0
2 files changed, 10 insertions, 4 deletions
diff --git a/config/imspector/services_imspector_logs.php b/config/imspector/services_imspector_logs.php
index 6da86d47..fce9b892 100644
--- a/config/imspector/services_imspector_logs.php
+++ b/config/imspector/services_imspector_logs.php
@@ -101,15 +101,21 @@ if ($_POST['mode'] == "render") {
while (!feof($fd)) {
$line = fgets($fd);
if(feof($fd)) continue;
-
- preg_match('/([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),(|.*),(.*)/', $line, $matches);
+ $new_format = '([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),(.*)';
+ $old_format = '([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),(.*)';
+ preg_match("/${new_format}|${old_format}/", $line, $matches);
$address = $matches[1];
$timestamp = $matches[2];
$direction = $matches[3];
$type = $matches[4];
$filtered = $matches[5];
- $category = $matches[6];
- $data = $matches[7];
+ if(count($matches) == 8) {
+ $category = $matches[6];
+ $data = $matches[7];
+ } else {
+ $category = "";
+ $data = $matches[6];
+ }
if($direction == '0') {
$bgcolor = $convo_remote_bgcolor;
diff --git a/config/zabbix-agent.xml b/config/zabbix-agent/zabbix-agent.xml
index 54184b32..54184b32 100644
--- a/config/zabbix-agent.xml
+++ b/config/zabbix-agent/zabbix-agent.xml