mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
quadgraphs -> graphrow
git-svn-id: http://www.observium.org/svn/observer/trunk@3093 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -9,7 +9,7 @@ if (!is_integer($g_i/2)) { $row_colour = $list_colour_a; } else { $row_colour =
|
||||
echo('<div style="background-color: '.$row_colour.';">');
|
||||
echo('<div style="padding:4px 0px 0px 8px;" class=graphhead>'.$graph_title.'</div>');
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo('</div>');
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@ $graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $port['interface_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
?>
|
||||
|
||||
@@ -65,7 +65,7 @@ foreach (dbFetchRows("SELECT * FROM `ports` WHERE `port_descr_type` = 'cust' GRO
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $customer['port_descr_descr'];
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</tr>");
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ foreach ($graphs as $key => $text)
|
||||
|
||||
echo("<tr bgcolor='$row_colour'><td colspan=5>");
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ foreach ($graphs as $key => $text)
|
||||
|
||||
echo("<tr bgcolor='$row_colour'><td colspan=5>");
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ foreach ($graphs as $key => $text)
|
||||
echo('<h3>'.$text.'</h3>');
|
||||
echo("<tr bgcolor='$row_colour'><td colspan=5>");
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ foreach ($graphs[$vars['app_section']] as $key => $text)
|
||||
|
||||
echo("<tr bgcolor='$row_colour'><td colspan=5>");
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ foreach ($graphs as $key => $text)
|
||||
|
||||
echo("<tr bgcolor='$row_colour'><td colspan=5>");
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ foreach ($graphs as $key => $text) {
|
||||
echo('<h3>'.$text.'</h3>');
|
||||
echo("<tr bgcolor='$row_colour'><td colspan=5>");
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ foreach ($graphs as $key => $text) {
|
||||
echo('<h3>'.$text.'</h3>');
|
||||
echo("<tr bgcolor='$row_colour'><td colspan=5>");
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ foreach ($graphs as $key => $text)
|
||||
|
||||
echo("<tr bgcolor='$row_colour'><td colspan=5>");
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ if (isset($total) && $total == true)
|
||||
echo('<h3>'.$text.'</h3>');
|
||||
echo("<tr bgcolor='$row_colour'><td colspan=5>");
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
@@ -67,7 +67,7 @@ foreach ($files as $id => $file)
|
||||
echo('<h3>'.$text.'</h3>');
|
||||
echo("<tr bgcolor='$row_colour'><td colspan=5>");
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ print_optionbar_end();
|
||||
$graph_array['c_type'] = $type;
|
||||
$graph_array['c_type_instance'] = $tinst;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</div>");
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ foreach (dbFetchRows("SELECT * FROM `ucd_diskio` WHERE device_id = ? ORDER BY di
|
||||
$graph_array['id'] = $drive['diskio_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ foreach (dbFetchRows("SELECT * FROM `mempools` WHERE device_id = ?", array($devi
|
||||
$graph_array['id'] = $mempool['mempool_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ foreach (dbFetchRows("SELECT * FROM `processors` WHERE device_id = ?", array($de
|
||||
$graph_array['id'] = $proc['processor_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
}
|
||||
|
||||
echo("</table>");
|
||||
|
||||
@@ -20,7 +20,7 @@ foreach (dbFetchRows("SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `devi
|
||||
$graph_array['id'] = $sensor['sensor_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ foreach (dbFetchRows("SELECT * FROM `storage` WHERE device_id = ? ORDER BY stora
|
||||
|
||||
echo("<tr bgcolor='$row_colour'><td colspan=6>");
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ if($vars['view'] == "incoming")
|
||||
echo('<tr><td>');
|
||||
echo('<h3>Average</h3>');
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo('</td></tr>');
|
||||
|
||||
@@ -53,7 +53,7 @@ if($vars['view'] == "incoming")
|
||||
echo('<tr><td>');
|
||||
echo('<h3>Aggregate</h3>');
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo('</td></tr>');
|
||||
|
||||
@@ -72,7 +72,7 @@ if($vars['view'] == "incoming")
|
||||
$graph_array['id'] = $device['device_id'];
|
||||
$graph_array['src'] = $host['device_id'];
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo('</td></tr>');
|
||||
}
|
||||
@@ -90,7 +90,7 @@ if($vars['view'] == "incoming")
|
||||
echo('<tr><td>');
|
||||
echo('<h3>Aggregate</h3>');
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo('</td></tr>');
|
||||
|
||||
@@ -99,7 +99,7 @@ if($vars['view'] == "incoming")
|
||||
echo('<tr><td>');
|
||||
echo('<h3>Aggregate</h3>');
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo('</td></tr>');
|
||||
|
||||
@@ -119,7 +119,7 @@ if($vars['view'] == "incoming")
|
||||
$graph_array['id'] = $device['device_id'];
|
||||
$graph_array['dest'] = $host['device_id'];
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo('</td></tr>');
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ $graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $rserver['rserver_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
#include("includes/print-interface-graphs.inc.php");
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ $graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $vserver['classmap_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("
|
||||
</td>
|
||||
|
||||
@@ -46,7 +46,7 @@ foreach (dbFetchRows("SELECT * FROM `netscaler_vservers` WHERE `device_id` = ? A
|
||||
|
||||
echo('<h3>'.$graph_text.'</h3>');
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("
|
||||
</td>
|
||||
@@ -121,7 +121,7 @@ foreach (dbFetchRows("SELECT * FROM `netscaler_vservers` WHERE `device_id` = ? O
|
||||
$graph_array['id'] = $vsvr['vsvr_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("
|
||||
</td>
|
||||
|
||||
@@ -11,7 +11,7 @@ if (count($sensors))
|
||||
{
|
||||
### FIXME - make this "four graphs in popup" a function/include and "small graph" a function.
|
||||
|
||||
### FIXME - So now we need to clean this up and move it into a function. Isn't it just "print-quadgraphs"?
|
||||
### FIXME - So now we need to clean this up and move it into a function. Isn't it just "print-graphrow"?
|
||||
|
||||
$graph_colour = str_replace("#", "", $row_colour);
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@ if ($vars['subview'] == "top10")
|
||||
$graph_array['to'] = $now;
|
||||
echo('<tr bgcolor="'.$bg_colour.'"' . ($bg_image ? ' background="'.$bg_image.'"' : '') . '"><td colspan="7">');
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ foreach (dbFetchRows("SELECT * FROM `bgpPeers` WHERE `device_id` = ? ORDER BY `b
|
||||
$graph_array['to'] = $now;
|
||||
echo('<tr bgcolor="'.$bg_colour.'"' . ($bg_image ? ' background="'.$bg_image.'"' : '') . '"><td colspan="7">');
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ foreach (dbFetchRows("SELECT * FROM `cef_switching` WHERE `device_id` = ? ORDER
|
||||
|
||||
echo("<tr bgcolor='$bg_colour'><td colspan=6>");
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ $graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $tunnel['tunnel_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("
|
||||
</td>
|
||||
|
||||
@@ -42,7 +42,7 @@ if (dbFetchCell("SELECT COUNT(service_id) FROM `services` WHERE device_id = ?",
|
||||
|
||||
echo('<tr style="background-color: '.$bg.'; padding: 7px;"><td colspan=4>');
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ foreach ($slas as $sla)
|
||||
echo('<tr><td>');
|
||||
echo('<h3>'.htmlentities($name).'</h3>');
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo('</td></tr>');
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ foreach (dbFetchRows("SELECT * FROM `storage` AS S, `devices` AS D WHERE S.devic
|
||||
$graph_array['id'] = $drive['storage_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ foreach (dbFetchRows("SELECT * FROM `toner` AS S, `devices` AS D WHERE S.device_
|
||||
$graph_array['id'] = $toner['toner_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
} # endif graphs
|
||||
|
||||
@@ -75,7 +75,7 @@ foreach (getlocations() as $location)
|
||||
$graph_array['legend'] = "no";
|
||||
$graph_array['id'] = $location;
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</tr></td>");
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ else
|
||||
$graph_array['to'] = $now;
|
||||
echo('<tr></tr><tr class="bgp"' . ($bg_image ? ' background="'.$bg_image.'"' : '') . '"><td colspan="9">');
|
||||
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
echo("</td></tr>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user