add the ability to run poller without updating rrds. add --rigid to graphs.

git-svn-id: http://www.observium.org/svn/observer/trunk@3124 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-05-03 10:45:36 +00:00
parent 7e14405439
commit 62180e6146
5 changed files with 23 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ include("includes/polling/functions.inc.php");
$poller_start = utime();
echo("Observium Poller v".$config['version']."\n\n");
$options = getopt("h:m:i:n:d::a::");
$options = getopt("h:m:i:n:d:r::a::");
if ($options['h'] == "odd") { $options['n'] = "1"; $options['i'] = "2"; }
elseif ($options['h'] == "even") { $options['n'] = "0"; $options['i'] = "2"; }
@@ -64,6 +64,7 @@ if (!$where)
echo("-i <instances> -n <number> Poll as instance <number> of <instances>\n");
echo(" Instances start at 0. 0-3 for -n 4\n\n");
echo("Debugging and testing options:\n");
echo("-r Do not create or update RRDs\n");
echo("-d Enable debugging output\n");
echo("-m Specify module(s) to be run\n");
echo("\n");
@@ -87,6 +88,11 @@ if (isset($options['d']))
# ini_set('error_reporting', 0);
}
if (isset($options['r']))
{
$config['norrd'] = TRUE;
}
rrdtool_pipe_open($rrd_process, $rrd_pipes);
echo("Starting polling run:\n\n");