make sensor_type larger, merge both logs into one tab (ran out of space!)

git-svn-id: http://www.observium.org/svn/observer/trunk@2719 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-11-07 19:39:15 +00:00
parent 9891f0201b
commit 86248c8bce
9 changed files with 56 additions and 41 deletions

View File

@@ -34,15 +34,17 @@ function get_cache($host, $value) {
function process_syslog ($entry, $update) {
global $config;
global $dev_cache;
foreach ($config['syslog_filter'] as $bi)
if (strpos($entry['msg'], $bi) !== FALSE) {
{
if (strpos($entry['msg'], $bi) !== FALSE)
{
print_r($entry);
echo('D-'.$bi);
return $entry;
}
}
$entry['device_id'] = get_cache($entry['host'], 'device_id');
if ($entry['device_id']) {