mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
more fixes for new sensor setup. more to come no doubt. also started making graphs which can 'widen'
git-svn-id: http://www.observium.org/svn/observer/trunk@1534 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -12,13 +12,13 @@ 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=350>" . $temp['sensor_descr'] . "</td>
|
||||
<td width=350>" . $temp['sensor_type'] . "</td>
|
||||
<td>" . print_temperature($temp['sensor_current'], $temp['sensor_limit']) . " °C</td>
|
||||
<td>" . $temp['sensor_limit'] . " °C</td>
|
||||
<td>" . $temp['sensor_notes'] . "</td>
|
||||
<td width=450>" . $temp['sensor_descr'] . "</td>
|
||||
<td >" . $temp['sensor_type'] . "</td>
|
||||
<td width=50>" . print_temperature($temp['sensor_current'], $temp['sensor_limit']) . " °C</td>
|
||||
<td width=50>" . $temp['sensor_limit'] . " °C</td>
|
||||
<td width=350>" . $temp['sensor_notes'] . "</td>
|
||||
</tr>\n");
|
||||
echo("<tr bgcolor=$row_colour><td colspan='4'>");
|
||||
echo("<tr bgcolor=$row_colour><td colspan='5'>");
|
||||
|
||||
$graph_type = "sensor_temperature";
|
||||
|
||||
|
@ -12,12 +12,13 @@ while($volt = 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=350>" . $volt['sensor_descr'] . "</td>
|
||||
<td>" . $volt['sensor_current'] . "V</td>
|
||||
<td>" . $volt['sensor_limit_low'] . 'V - ' . $volt['sensor_limit'] . "V</td>
|
||||
<td>" . $volt['sensor_notes'] . "</td>
|
||||
<td width=450>" . $volt['sensor_descr'] . "</td>
|
||||
<td>" . $volt['sensor_type'] . "</td>
|
||||
<td width=50>" . $volt['sensor_current'] . "V</td>
|
||||
<td width=75>" . $volt['sensor_limit_low'] . 'V - ' . $volt['sensor_limit'] . "V</td>
|
||||
<td width=200>" . $volt['sensor_notes'] . "</td>
|
||||
</tr>\n");
|
||||
echo("<tr bgcolor=$row_colour><td colspan='4'>");
|
||||
echo("<tr bgcolor=$row_colour><td colspan='5'>");
|
||||
|
||||
$graph_type = "sensor_voltage";
|
||||
|
||||
|
Reference in New Issue
Block a user