use rrdtool pipe in poller.

git-svn-id: http://www.observium.org/svn/observer/trunk@2631 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-10-01 14:54:06 +00:00
parent c15bfa62a4
commit 66dd6dbd61
6 changed files with 203 additions and 94 deletions

View File

@@ -85,6 +85,8 @@ if (isset($options['d']))
# ini_set('error_reporting', 0);
}
rrdtool_pipe_open($rrd_process, $rrd_pipes);
echo("Starting polling run:\n\n");
$polled_devices = 0;
if (!isset($query))
@@ -120,7 +122,7 @@ echo('MySQL: Cell['.($db_stats['fetchcell']+0).'/'.round($db_stats['fetchcell_se
echo("\n");
logfile($string);
rrdtool_pipe_close($rrd_process, $rrd_pipes);
unset($config); ### Remove this for testing
#print_r(get_defined_vars());