mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
path fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@379 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -6,7 +6,7 @@ $query = mysql_query($sql);
|
||||
echo("<table cellspacing=0 cellpadding=5 width=100%>");
|
||||
|
||||
echo("<tr class=tablehead>
|
||||
<th width=280>Sensor</th>
|
||||
<th width=200>Sensor</th>
|
||||
<th width=100>Current</th>
|
||||
<th width=100>Alert</th>
|
||||
<th>Notes</th>
|
||||
@@ -19,7 +19,7 @@ while($temp = mysql_fetch_array($query)) {
|
||||
if(is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
||||
echo("<tr class=list-large style=\"background-color: $row_colour; padding: 5px;\">
|
||||
<td width=200>" . $temp['temp_descr'] . "</td>
|
||||
<td>" . $temp['temp_descr'] . "</td>
|
||||
<td>" . print_temperature($temp['temp_current'], $temp['temp_limit']) . "</td>
|
||||
<td>" . $temp['temp_limit'] . "</td>
|
||||
<td>" . $temp['temp_notes'] . "</td>
|
||||
|
||||
@@ -69,7 +69,7 @@ function getHostOS($hostname, $community, $snmpver, $port) {
|
||||
$dir_handle = @opendir($config['install_dir'] . "/includes/osdiscovery") or die("Unable to open $path");
|
||||
while ($file = readdir($dir_handle)) {
|
||||
if( preg_match("/^discover-([a-z0-9]*).php/", $file) ) {
|
||||
include($config['install_dir'] . "includes/osdiscovery/" . $file);
|
||||
include($config['install_dir'] . "/includes/osdiscovery/" . $file);
|
||||
}
|
||||
}
|
||||
closedir($dir_handle);
|
||||
|
||||
Reference in New Issue
Block a user