Added Documentation, Scrut-fixes

This commit is contained in:
f0o
2015-01-17 14:09:59 +00:00
parent e4a1ff5b7c
commit c9dcc96649
5 changed files with 35 additions and 6 deletions

View File

@@ -26,7 +26,8 @@ if( !empty($agent_data['app']['bind']) && $app['app_id'] > 0 ) {
echo " bind ";
$bind = $agent_data['app']['bind'];
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-bind-".$app['app_id'].".rrd";
unset($bind_parsed);
$bind_parsed = array();
$prefix = "";
foreach( explode("\n",$bind) as $line ) {
$pattern = '/^\+\+ ([^+]+) \+\+$/';
preg_match($pattern, $line, $matches);