mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	bring back graphs tab, add greyscale images
git-svn-id: http://www.observium.org/svn/observer/trunk@1401 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 749 B After Width: | Height: | Size: 701 B  | 
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 530 B After Width: | Height: | Size: 509 B  | 
@@ -37,15 +37,15 @@ echo("
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if ((is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os'].".inc.php")) ||
 | 
			
		||||
   ($device['os_group'] && is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os_group'].".inc.php")))
 | 
			
		||||
{
 | 
			
		||||
#if ((is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os'].".inc.php")) ||
 | 
			
		||||
#   ($device['os_group'] && is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os_group'].".inc.php")))
 | 
			
		||||
#{
 | 
			
		||||
  echo('<li class="' . $select['graphs'] . '">
 | 
			
		||||
  <a href="'.$config['base_url'].'/device/' . $device['device_id'] . '/graphs/">
 | 
			
		||||
    <img src="images/16/server_chart.png" align="absmiddle" border="0"> Graphs
 | 
			
		||||
  </a>
 | 
			
		||||
</li>');
 | 
			
		||||
}
 | 
			
		||||
#}
 | 
			
		||||
 | 
			
		||||
$health =  mysql_result(mysql_query("select count(*) from storage WHERE device_id = '" . $device['device_id'] . "'"), 0) +
 | 
			
		||||
           mysql_result(mysql_query("select count(sensor_id) from sensors WHERE device_id = '" . $device['device_id'] . "'"), 0) +
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user