mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
some new things!
git-svn-id: http://www.observium.org/svn/observer/trunk@221 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -44,7 +44,15 @@
|
||||
$os = gethostosbyid($device_id);
|
||||
|
||||
switch ($type) {
|
||||
|
||||
case 'fortigate_sessions':
|
||||
$graph = graph_fortigate_sessions ($hostname . "/fortigate-sessions.rrd", $graphfile, $from, $to, $width, $height, $title, $vertical);
|
||||
break;
|
||||
case 'fortigate_cpu':
|
||||
$graph = graph_fortigate_cpu ($hostname . "/fortigate-cpu.rrd", $graphfile, $from, $to, $width, $height, $title, $vertical);
|
||||
break;
|
||||
case 'fortigate_memory':
|
||||
$graph = graph_fortigate_memory ($hostname . "/fortigate-memory.rrd", $graphfile, $from, $to, $width, $height, $title, $vertical);
|
||||
break;
|
||||
case 'netscreen_sessions':
|
||||
$graph = graph_netscreen_sessions ($hostname . "/netscreen-sessions.rrd", $graphfile, $from, $to, $width, $height, $title, $vertical);
|
||||
break;
|
||||
|
@@ -8,17 +8,22 @@ while($device = mysql_fetch_array($device_query)) {
|
||||
echo("<div style='clear: both;'>");
|
||||
|
||||
switch ($device['os']) {
|
||||
case "ScreenOS":
|
||||
case "Fortigate":
|
||||
echo("<div class=graphhead>Processor Utilisation</div>");
|
||||
$graph_type = "fortigate_cpu"; include ("includes/print-device-graph.php");
|
||||
echo("<div class=graphhead>Memory Usage</div>");
|
||||
$graph_type = "fortigate_memory"; include ("includes/print-device-graph.php");
|
||||
echo("<div class=graphhead>Firewall Sessions</div>");
|
||||
$graph_type = "fortigate_sessions"; include ("includes/print-device-graph.php");
|
||||
break;
|
||||
|
||||
case "ScreenOS":
|
||||
echo("<div class=graphhead>Processor Utilisation</div>");
|
||||
$graph_type = "netscreen_cpu"; include ("includes/print-device-graph.php");
|
||||
|
||||
echo("<div class=graphhead>Memory Usage</div>");
|
||||
$graph_type = "netscreen_memory"; include ("includes/print-device-graph.php");
|
||||
|
||||
echo("<div class=graphhead>Firewall Sessions</div>");
|
||||
$graph_type = "netscreen_sessions"; include ("includes/print-device-graph.php");
|
||||
|
||||
break;
|
||||
|
||||
case "ProCurve":
|
||||
|
Reference in New Issue
Block a user