mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add ability to pass an array of values to rrdtool_update, which are checked and replaced with U if invalid.
git-svn-id: http://www.observium.org/svn/observer/trunk@3152 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -24,7 +24,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:r::a::");
|
||||
$options = getopt("h:m:i:n:r:d::a::");
|
||||
|
||||
if ($options['h'] == "odd") { $options['n'] = "1"; $options['i'] = "2"; }
|
||||
elseif ($options['h'] == "even") { $options['n'] = "0"; $options['i'] = "2"; }
|
||||
@@ -74,6 +74,8 @@ if (!$where)
|
||||
exit;
|
||||
}
|
||||
|
||||
print_r($options);
|
||||
|
||||
if (isset($options['d']))
|
||||
{
|
||||
echo("DEBUG!\n");
|
||||
|
Reference in New Issue
Block a user