mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	push more state to memcached fix sensors poller to not retry all temperature sensors where return >9000 5 times (lmsensors returns milliC, so 30000 for 30C)
git-svn-id: http://www.observium.org/svn/observer/trunk@3244 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		| @@ -108,12 +108,10 @@ if ($vars['view'] == 'minigraphs') | ||||
|   { | ||||
|     if ($config['memcached']['enable']) | ||||
|     { | ||||
|       $oids = array('ifInOctets', 'ifOutOctets', 'ifInUcastPkts', 'ifOutUcastPkts', 'ifInErrors', 'ifOutErrors'); | ||||
|       foreach ($oids as $oid) | ||||
|       { | ||||
|         $port[$oid.'_rate'] = $memcache->get('port-'.$port['port_id'].'-'.$oid.'_rate'); | ||||
|         if ($debug) { echo("MC[".$oid."->".$port[$oid.'_rate']."]"); } | ||||
|       } | ||||
|       $state = $memcache->get('port-'.$port['port_id'].'-state'); | ||||
|       if($debug) { print_r($state); } | ||||
|       if(is_array($state)) { $port = array_merge($port, $state); } | ||||
|       unset($state); | ||||
|     } | ||||
|  | ||||
|     include("includes/print-interface.inc.php"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user