mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	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:
		@@ -162,7 +162,12 @@ function rrdtool($command, $filename, $options)
 | 
			
		||||
    $cmd .= " --daemon " . $config['rrdcached'];
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  fwrite($rrd_pipes[0], $cmd."\n");
 | 
			
		||||
  if($config['norrd'])
 | 
			
		||||
  {
 | 
			
		||||
    print Console_Color::convert("%g RRD Disabled %n", false);
 | 
			
		||||
  } else {
 | 
			
		||||
    fwrite($rrd_pipes[0], $cmd."\n");
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if ($debug)
 | 
			
		||||
  {
 | 
			
		||||
@@ -189,7 +194,12 @@ function rrdtool_create($filename, $options)
 | 
			
		||||
{
 | 
			
		||||
  global $config, $debug;
 | 
			
		||||
 | 
			
		||||
  $command = $config['rrdtool'] . " create $filename $options";
 | 
			
		||||
  if($config['norrd'])
 | 
			
		||||
  {
 | 
			
		||||
    print Console_Color::convert("%g RRD Disabled %n", false);
 | 
			
		||||
  } else {
 | 
			
		||||
    $command = $config['rrdtool'] . " create $filename $options";
 | 
			
		||||
  }
 | 
			
		||||
  if ($debug) { echo($command."\n"); }
 | 
			
		||||
 | 
			
		||||
  return shell_exec($command);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user