From dc04b5189b70286ff987de55f416a1d232c16d20 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 25 Feb 2010 01:52:32 +0000 Subject: [PATCH] syslog fix + device_fanspeeds graph for health main page git-svn-id: http://www.observium.org/svn/observer/trunk@951 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/graphs/device_fanspeeds.inc.php | 55 +++++++++++++++++++ includes/syslog.php | 2 +- syslog.php | 1 + 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 html/includes/graphs/device_fanspeeds.inc.php diff --git a/html/includes/graphs/device_fanspeeds.inc.php b/html/includes/graphs/device_fanspeeds.inc.php new file mode 100644 index 000000000..e3e171999 --- /dev/null +++ b/html/includes/graphs/device_fanspeeds.inc.php @@ -0,0 +1,55 @@ + diff --git a/includes/syslog.php b/includes/syslog.php index fe795e89e..8e265e11d 100755 --- a/includes/syslog.php +++ b/includes/syslog.php @@ -62,7 +62,7 @@ function process_syslog ($entry, $update) { $x .= "VALUES ('".$entry['device_id']."','".$entry['program']."','".$entry['facility']."','".$entry['priority']."', '".$entry['level']."', '".$entry['tag']."', '".$entry['msg']."','".$entry['timestamp']."')"; if($update && $entry['device_id']) { mysql_query($x); } unset ($fix); - } + } else { print_r($entry); echo("D-$delete");} return $entry; diff --git a/syslog.php b/syslog.php index 5698ed787..64fd88fb1 100755 --- a/syslog.php +++ b/syslog.php @@ -3,6 +3,7 @@ include("config.php"); include("includes/syslog.php"); +include("includes/common.php"); $i="1";