mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Juniper Netscreen Additions
git-svn-id: http://www.observium.org/svn/observer/trunk@174 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -45,6 +45,15 @@
|
||||
|
||||
switch ($type) {
|
||||
|
||||
case 'netscreen_sessions':
|
||||
$graph = graph_netscreen_sessions ($hostname . "/netscreen-sessions.rrd", $graphfile, $from, $to, $width, $height, $title, $vertical);
|
||||
break;
|
||||
case 'netscreen_cpu':
|
||||
$graph = graph_netscreen_cpu ($hostname . "/netscreen-cpu.rrd", $graphfile, $from, $to, $width, $height, $title, $vertical);
|
||||
break;
|
||||
case 'netscreen_memory':
|
||||
$graph = graph_netscreen_memory ($hostname . "/netscreen-memory.rrd", $graphfile, $from, $to, $width, $height, $title, $vertical);
|
||||
break;
|
||||
case 'multi_bits':
|
||||
$graph = graph_multi_bits ($_GET['interfaces'], $graphfile, $from, $to, $width, $height);
|
||||
break;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
@@ -8,6 +8,19 @@ while($device = mysql_fetch_array($device_query)) {
|
||||
echo("<div style='clear: both;'>");
|
||||
|
||||
switch ($device['os']) {
|
||||
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":
|
||||
echo("<div class=graphhead>Processor Utilisation</div>");
|
||||
$graph_type = "cpu"; include ("includes/print-device-graph.php");
|
||||
|
||||
Reference in New Issue
Block a user