mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
new graph structure. cleaned up extremeware. print device ver/features/hw during poll. add extreme device rewriting
git-svn-id: http://www.observium.org/svn/observer/trunk@1399 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Before Width: | Height: | Size: 977 B After Width: | Height: | Size: 977 B |
25
html/includes/graphs/device_snmp_packets.inc.php
Normal file
25
html/includes/graphs/device_snmp_packets.inc.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
include("common.inc.php");
|
||||
$device = device_by_id_cache($id);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-snmp.rrd";
|
||||
|
||||
$rrd_options .= " DEF:snmpInPkts=$rrd_filename:snmpInPkts:AVERAGE";
|
||||
$rrd_options .= " DEF:snmpInPkts_max=$rrd_filename:snmpInPkts:MAX";
|
||||
$rrd_options .= " DEF:snmpOutPkts=$rrd_filename:snmpOutPkts:AVERAGE";
|
||||
$rrd_options .= " DEF:snmpOutPkts_max=$rrd_filename:snmpOutPkts:MAX";
|
||||
$rrd_options .= " CDEF:snmpOutPkts_max_neg=snmpOutPkts_max,-1,*";
|
||||
$rrd_options .= " CDEF:snmpOutPkts_neg=snmpOutPkts,-1,*";
|
||||
$rrd_options .= " COMMENT:Packets/sec\ \ \ \ Current\ \ \ \ Average\ \ \ Maximum\\\\n";
|
||||
$rrd_options .= " LINE1.25:snmpInPkts#009900:snmpInPkts\ \ ";
|
||||
$rrd_options .= " GPRINT:snmpInPkts:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpInPkts:AVERAGE:\ %6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpInPkts_max:MAX:\ %6.2lf%s\\\\n";
|
||||
$rrd_options .= " LINE1.25:snmpOutPkts_neg#003399:snmpOutPkts\ ";
|
||||
#$rrd_options .= " AREA:snmpOutPkts_max_neg#4466AA::";
|
||||
$rrd_options .= " GPRINT:snmpOutPkts:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpOutPkts:AVERAGE:\ %6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpOutPkts_max:MAX:\ %6.2lf%s\\\\n";
|
||||
|
||||
?>
|
49
html/includes/graphs/device_snmp_statistics.inc.php
Normal file
49
html/includes/graphs/device_snmp_statistics.inc.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
include("common.inc.php");
|
||||
|
||||
$device = device_by_id_cache($id);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-snmp.rrd";
|
||||
|
||||
$rrd_options .= " DEF:snmpInTraps=$rrd_filename:snmpInTraps:AVERAGE";
|
||||
$rrd_options .= " DEF:snmpOutTraps=$rrd_filename:snmpOutTraps:AVERAGE";
|
||||
$rrd_options .= " DEF:snmpInTotalReqVars=$rrd_filename:snmpInTotalReqVars:AVERAGE";
|
||||
$rrd_options .= " DEF:snmpInTotalSetVars=$rrd_filename:snmpInTotalSetVars:AVERAGE";
|
||||
$rrd_options .= " DEF:snmpOutGetResponses=$rrd_filename:snmpOutGetResponses:AVERAGE";
|
||||
$rrd_options .= " DEF:snmpOutSetRequests=$rrd_filename:snmpOutSetRequests:AVERAGE";
|
||||
|
||||
$rrd_options .= " DEF:snmpInTraps_max=$rrd_filename:snmpInTraps:MAX";
|
||||
$rrd_options .= " DEF:snmpOutTraps_max=$rrd_filename:snmpOutTraps:MAX";
|
||||
$rrd_options .= " DEF:snmpInTotalReqVars_max=$rrd_filename:snmpInTotalReqVars:MAX";
|
||||
$rrd_options .= " DEF:snmpInTotalSetVars_max=$rrd_filename:snmpInTotalSetVars:MAX";
|
||||
$rrd_options .= " DEF:snmpOutGetResponses_max=$rrd_filename:snmpOutGetResponses:MAX";
|
||||
$rrd_options .= " DEF:snmpOutSetRequests_max=$rrd_filename:snmpOutSetRequests:MAX";
|
||||
|
||||
$rrd_options .= " COMMENT:Packets/sec\ \ \ \ \ \ \ \ Current\ \ Average\ \ Maximum\\\\n";
|
||||
$rrd_options .= " LINE1.25:snmpInTraps#00cc00:InTraps ";
|
||||
$rrd_options .= " GPRINT:snmpInTraps:LAST:\ \ \ \ \ \ \ \ %6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpInTraps:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpInTraps_max:MAX:%6.2lf%s\\\\n";
|
||||
$rrd_options .= " LINE1.25:snmpOutTraps#006600:OutTraps ";
|
||||
$rrd_options .= " GPRINT:snmpOutTraps:LAST:\ \ \ \ \ \ \ %6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpOutTraps:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpOutTraps_max:MAX:%6.2lf%s\\\\n";
|
||||
$rrd_options .= " LINE1.25:snmpInTotalReqVars#cc0000:InTotalReqVars ";
|
||||
$rrd_options .= " GPRINT:snmpInTotalReqVars:LAST:\ %6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpInTotalReqVars:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpInTotalReqVars_max:MAX:%6.2lf%s\\\\n";
|
||||
$rrd_options .= " LINE1.25:snmpInTotalSetVars#660000:InTotalSetVars ";
|
||||
$rrd_options .= " GPRINT:snmpInTotalSetVars:LAST:\ %6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpInTotalSetVars:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpInTotalSetVars_max:MAX:%6.2lf%s\\\\n";
|
||||
$rrd_options .= " LINE1.25:snmpOutGetResponses#0066cc:OutGetResponses ";
|
||||
$rrd_options .= " GPRINT:snmpOutGetResponses:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpOutGetResponses:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpOutGetResponses_max:MAX:%6.2lf%s\\\\n";
|
||||
$rrd_options .= " LINE1.25:snmpOutSetRequests#003399:OutSetResponses ";
|
||||
$rrd_options .= " GPRINT:snmpOutSetRequests:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpOutSetRequests:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:snmpOutSetRequests_max:MAX:%6.2lf%s\\\\n";
|
||||
|
||||
?>
|
@@ -7,24 +7,24 @@
|
||||
|
||||
echo('<div style="padding:4px 0px 0px 8px;" class=graphhead>'.$graph_title.'</div>');
|
||||
|
||||
$daily_traffic = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=$day&to=$now&width=215&height=100";
|
||||
$daily_traffic = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=".$config['day']."&to=".$config['now']."&width=215&height=100";
|
||||
$daily_traffic .= $args;
|
||||
$daily_url = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=$day&to=$now&width=400&height=150";
|
||||
$daily_url = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=".$config['day']."&to=".$config['now']."&width=400&height=150";
|
||||
$daily_url .= $args;
|
||||
|
||||
$weekly_traffic = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=$week&to=$now&width=215&height=100";
|
||||
$weekly_traffic = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=".$config['week']."&to=".$config['now']."&width=215&height=100";
|
||||
$weekly_traffic .= $args;
|
||||
$weekly_url = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=$week&to=$now&width=400&height=150";
|
||||
$weekly_url = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=".$config['week']."&to=".$config['now']."&width=400&height=150";
|
||||
$weekly_url .= $args;
|
||||
|
||||
$monthly_traffic = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=$month&to=$now&width=215&height=100";
|
||||
$monthly_traffic = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=".$config['month']."&to=".$config['now']."&width=215&height=100";
|
||||
$monthly_traffic .= $args;
|
||||
$monthly_url = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=$month&to=$now&width=400&height=150";
|
||||
$monthly_url = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=".$config['month']."&to=".$config['now']."&width=400&height=150";
|
||||
$monthly_url .= $args;
|
||||
|
||||
$yearly_traffic = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=$year&to=$now&width=215&height=100";
|
||||
$yearly_traffic = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=".$config['year']."&to=".$config['now']."&width=215&height=100";
|
||||
$yearly_traffic .= $args;
|
||||
$yearly_url = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=$year&to=$now&width=400&height=150";
|
||||
$yearly_url = "graph.php?device=" . $device['device_id'] . "&type=$graph_type&from=".$config['year']."&to=".$config['now']."&width=400&height=150";
|
||||
$yearly_url .= $args;
|
||||
|
||||
echo("<a onmouseover=\"return overlib('<img src=\'$daily_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">
|
||||
|
@@ -1,27 +1,52 @@
|
||||
<?php
|
||||
|
||||
$device_query = mysql_query("select * from devices WHERE `device_id` = '$_GET[id]'");
|
||||
while ($device = mysql_fetch_array($device_query))
|
||||
$bg="#ffffff";
|
||||
|
||||
echo('<div style="clear: both;">');
|
||||
|
||||
$datas = array('System','Network');
|
||||
|
||||
if(!$_GET['opta']) { $_GET['opta'] = strtolower($datas[0]); }
|
||||
|
||||
print_optionbar_start('', '');
|
||||
|
||||
$sep = "";
|
||||
foreach ($datas as $texttype)
|
||||
{
|
||||
$hostname = $device[hostname];
|
||||
$bg="#ffffff";
|
||||
|
||||
echo('<div style="clear: both;">');
|
||||
|
||||
if ($config['os'][$device['os']]['group']) { $os_group = $config['os'][$device['os']]['group']; }
|
||||
|
||||
if (is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os'].".inc.php")) {
|
||||
/// OS Specific
|
||||
include($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os'].".inc.php");
|
||||
} elseif ($os_group && is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$os_group.".inc.php")) {
|
||||
/// OS Group Specific
|
||||
include($config['install_dir'] . "/html/pages/device/graphs/os-".$os_group.".inc.php");
|
||||
} else {
|
||||
echo("No graph definitions found for OS " . $device['os'] . "!");
|
||||
$type = strtolower($texttype);
|
||||
echo($sep);
|
||||
if ($_GET['opta'] == $type)
|
||||
{
|
||||
echo("<strong>");
|
||||
echo('<img src="images/icons/'.$type.'.png" class="optionicon" />');
|
||||
}
|
||||
|
||||
echo("</div>");
|
||||
else
|
||||
{
|
||||
echo('<img src="images/icons/greyscale/'.$type.'.png" class="optionicon" />');
|
||||
}
|
||||
echo("<a href='".$config['base_url']."/device/".$device['device_id']."/graphs/" . $type . ($_GET['optb'] ? "/" . $_GET['optb'] : ''). "/'> " . $texttype ."</a>\n");
|
||||
if ($_GET['opta'] == $type) { echo("</strong>"); }
|
||||
$sep = " | ";
|
||||
}
|
||||
unset ($sep);
|
||||
print_optionbar_end();
|
||||
|
||||
#echo('<div style="float: right;">');
|
||||
|
||||
include_dir("/html/pages/device/graphs/".mres($_GET['opta']));
|
||||
|
||||
#if ($config['os'][$device['os']]['group']) { $os_group = $config['os'][$device['os']]['group']; }
|
||||
#if (is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os'].".inc.php")) {
|
||||
# /// OS Specific
|
||||
# include($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os'].".inc.php");
|
||||
#} elseif ($os_group && is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$os_group.".inc.php")) {
|
||||
# /// OS Group Specific
|
||||
# include($config['install_dir'] . "/html/pages/device/graphs/os-".$os_group.".inc.php");
|
||||
#} else {
|
||||
# echo("No graph definitions found for OS " . $device['os'] . "!");
|
||||
#}
|
||||
|
||||
# echo("</div>");
|
||||
|
||||
?>
|
||||
|
||||
|
@@ -1,33 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/ipSystemStats-ipv6.rrd")) {
|
||||
$graph_title = "IPv4/IPv6 Statistics";
|
||||
$graph_type = "device_ipSystemStats";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
|
||||
$graph_title = "IP Statistics";
|
||||
$graph_type = "device_ip";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "IP Fragmented Statistics";
|
||||
$graph_type = "device_ip_fragmented";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "TCP Statistics";
|
||||
$graph_type = "device_tcp";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "UDP Statistics";
|
||||
$graph_type = "device_udp";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "ICMP Statistics";
|
||||
$graph_type = "device_icmp";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "ICMP Informational Statistics";
|
||||
$graph_type = "device_icmp_informational";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
?>
|
51
html/pages/device/graphs/network/netstats.inc.php
Normal file
51
html/pages/device/graphs/network/netstats.inc.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/ipSystemStats-ipv6.rrd")) {
|
||||
$graph_title = "IPv4/IPv6 Statistics";
|
||||
$graph_type = "device_ipSystemStats";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/netstats-ip.rrd")) {
|
||||
$graph_title = "IP Statistics";
|
||||
$graph_type = "device_ip";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "IP Fragmented Statistics";
|
||||
$graph_type = "device_ip_fragmented";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/netstats-tcp.rrd")) {
|
||||
$graph_title = "TCP Statistics";
|
||||
$graph_type = "device_tcp";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/netstats-udp.rrd")) {
|
||||
$graph_title = "UDP Statistics";
|
||||
$graph_type = "device_udp";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/netstats-snmp.rrd")) {
|
||||
$graph_title = "SNMP Packets Statistics";
|
||||
$graph_type = "device_snmp_packets";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "SNMP Message Type Statistics";
|
||||
$graph_type = "device_snmp_statistics";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/netstats-icmp.rrd")) {
|
||||
$graph_title = "ICMP Statistics";
|
||||
$graph_type = "device_icmp";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "ICMP Informational Statistics";
|
||||
$graph_type = "device_icmp_informational";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
|
||||
?>
|
@@ -1,6 +0,0 @@
|
||||
<?php
|
||||
#include("cpu.inc.php");
|
||||
#include("temperatures.inc.php");
|
||||
include("netstats.inc.php");
|
||||
include("uptime.inc.php");
|
||||
?>
|
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
$graph_title = "ADSL Attainable Rate";
|
||||
$graph_type = "adsl_rate";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "ADSL Signal to Noise Ratio";
|
||||
$graph_type = "adsl_snr";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "ADSL Attenuation";
|
||||
$graph_type = "adsl_atn";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
include("graphs/netstats.inc.php");
|
||||
include("graphs/uptime.inc.php");
|
||||
?>
|
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
$graph_title = "Processor Utilisation";
|
||||
$graph_type = "fortigate_cpu"; include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "Memory Utilisation";
|
||||
$graph_type = "fortigate_memory"; include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "Firewall Sessions";
|
||||
$graph_type = "fortigate_sessions"; include ("includes/print-device-graph.php");
|
||||
|
||||
include("graphs/netstats.inc.php");
|
||||
include("graphs/uptime.inc.php");
|
||||
?>
|
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
#include("cpu.inc.php");
|
||||
#include("memory.inc.php");
|
||||
#include("temperatures.inc.php");
|
||||
include("netstats.inc.php");
|
||||
include("uptime.inc.php");
|
||||
|
||||
|
||||
?>
|
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
#include("cpu.inc.php");
|
||||
#include("memory.inc.php");
|
||||
#include("temperatures.inc.php");
|
||||
include("netstats.inc.php");
|
||||
include("uptime.inc.php");
|
||||
|
||||
|
||||
?>
|
@@ -1,6 +0,0 @@
|
||||
<?php
|
||||
#include("cpu.inc.php");
|
||||
#include("temperatures.inc.php");
|
||||
include("netstats.inc.php");
|
||||
include("uptime.inc.php");
|
||||
?>
|
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
#include("cpu.inc.php");
|
||||
#include("temperatures.inc.php");
|
||||
include("netstats.inc.php");
|
||||
include("uptime.inc.php");
|
||||
?>
|
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
include("uptime.inc.php");
|
||||
|
||||
?>
|
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
include("uptime.inc.php");
|
||||
|
||||
?>
|
@@ -1,5 +0,0 @@
|
||||
<?php
|
||||
include("cpu.inc.php");
|
||||
include("memory.inc.php");
|
||||
include("uptime.inc.php");
|
||||
?>
|
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
include("cpu.inc.php");
|
||||
include("memory.inc.php");
|
||||
include("uptime.inc.php");
|
||||
|
||||
?>
|
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
#include("cpu.inc.php");
|
||||
#include("memory.inc.php");
|
||||
include("temperatures.inc.php");
|
||||
include("netstats.inc.php");
|
||||
include("uptime.inc.php");
|
||||
|
||||
|
||||
?>
|
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
$graph_title = "Processor Utilisation";
|
||||
$graph_type = "netscreen_cpu"; include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "Memory Usage</div>";
|
||||
$graph_type = "netscreen_memory"; include ("includes/print-device-graph.php");
|
||||
|
||||
$graph_title = "Firewall Sessions";
|
||||
$graph_type = "netscreen_sessions"; include ("includes/print-device-graph.php");
|
||||
|
||||
|
||||
include("graphs/netstats.inc.php");
|
||||
include("graphs/uptime.inc.php");
|
||||
|
||||
?>
|
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
$graph_title = "Calls";
|
||||
$graph_type = "snom_calls"; include ("includes/print-device-graph.php");
|
||||
?>
|
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
include("cpu.inc.php");
|
||||
include("memory.inc.php");
|
||||
include("netstats.inc.php");
|
||||
include("laload.inc.php");
|
||||
include("hrusers.inc.php");
|
||||
include("hrprocesses.inc.php");
|
||||
include("uptime.inc.php");
|
||||
|
||||
?>
|
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
include("cpu.inc.php");
|
||||
include("memory.inc.php");
|
||||
include("netstats.inc.php");
|
||||
include("laload.inc.php");
|
||||
include("hrusers.inc.php");
|
||||
include("hrprocesses.inc.php");
|
||||
include("uptime.inc.php");
|
||||
|
||||
?>
|
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(mysql_result(mysql_query("SELECT count(storage_id) FROM storage WHERE device_id = '" . $device['device_id'] . "'"),0)) {
|
||||
$graph_title = "Storage";
|
||||
$graph_type = "device_storage";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
|
||||
?>
|
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/ucd_cpu.rrd")) {
|
||||
$graph_title = "Processor Utilisation";
|
||||
$graph_type = "device_cpu";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
?>
|
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/hrSystem.rrd")) {
|
||||
$graph_title = "Running Processes";
|
||||
$graph_type = "device_hrprocesses";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
?>
|
@@ -1,5 +1,11 @@
|
||||
<?php
|
||||
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/hrSystem.rrd")) {
|
||||
|
||||
$graph_title = "Users Logged On";
|
||||
$graph_type = "device_hrusers";
|
||||
include ("includes/print-device-graph.php");
|
||||
|
||||
}
|
||||
|
||||
?>
|
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/ucd_load.rrd")) {
|
||||
$graph_title = "System Load";
|
||||
$graph_type = "device_load";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
?>
|
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/ucd_mem.rrd")) {
|
||||
$graph_title = "Memory Utilisation";
|
||||
$graph_type = "device_memory";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
?>
|
@@ -3,6 +3,8 @@
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysObjectId, ".1.3.6.1.4.1.1916.2")) { $os = "extremeware"; }
|
||||
if(strstr($sysDescr, "XOS")) { $os = "xos"; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@@ -115,6 +115,82 @@ $rewrite_junose_hardware = array(
|
||||
'juniSsx1440' => 'SSX-1440',
|
||||
);
|
||||
|
||||
|
||||
$rewrite_extreme_hardware = array (
|
||||
'.1.3.6.1.4.1.1916.2.26' => 'Alpine 3802',
|
||||
'.1.3.6.1.4.1.1916.2.20' => 'Alpine 3804',
|
||||
'.1.3.6.1.4.1.1916.2.17' => 'Alpine 3808',
|
||||
'.1.3.6.1.4.1.1916.2.86' => 'Altitude 300',
|
||||
'.1.3.6.1.4.1.1916.2.75' => 'Altitude 350',
|
||||
'.1.3.6.1.4.1.1916.2.56' => 'BlackDiamond 10808',
|
||||
'.1.3.6.1.4.1.1916.2.85' => 'BlackDiamond 12802',
|
||||
'.1.3.6.1.4.1.1916.2.77' => 'BlackDiamond 12804',
|
||||
'.1.3.6.1.4.1.1916.2.8' => 'BlackDiamond 6800',
|
||||
'.1.3.6.1.4.1.1916.2.27' => 'BlackDiamond 6804',
|
||||
'.1.3.6.1.4.1.1916.2.11' => 'BlackDiamond 6808',
|
||||
'.1.3.6.1.4.1.1916.2.24' => 'BlackDiamond 6816',
|
||||
'.1.3.6.1.4.1.1916.2.74' => 'BlackDiamond 8806',
|
||||
'.1.3.6.1.4.1.1916.2.62' => 'BlackDiamond 8810',
|
||||
'.1.3.6.1.4.1.1916.2.23' => 'EnetSwitch 24Port',
|
||||
'.1.3.6.1.4.1.1916.2.83' => 'Sentriant CE150',
|
||||
'.1.3.6.1.4.1.1916.2.58' => 'Summit 400-48t',
|
||||
'.1.3.6.1.4.1.1916.2.59' => 'Summit 400-48t',
|
||||
'.1.3.6.1.4.1.1916.2.71' => 'Summit X450a-24t',
|
||||
'.1.3.6.1.4.1.1916.2.81' => 'Summit X450a-24t',
|
||||
'.1.3.6.1.4.1.1916.2.1' => 'Summit 1',
|
||||
'.1.3.6.1.4.1.1916.2.19' => 'Summit 1iSX',
|
||||
'.1.3.6.1.4.1.1916.2.14' => 'Summit 1iTX',
|
||||
'.1.3.6.1.4.1.1916.2.2' => 'Summit 2',
|
||||
'.1.3.6.1.4.1.1916.2.53' => 'Summit 200-24',
|
||||
'.1.3.6.1.4.1.1916.2.70' => 'Summit 200-24fx',
|
||||
'.1.3.6.1.4.1.1916.2.54' => 'Summit 200-48',
|
||||
'.1.3.6.1.4.1.1916.2.7' => 'Summit 24',
|
||||
'.1.3.6.1.4.1.1916.2.41' => 'Summit 24e2SX',
|
||||
'.1.3.6.1.4.1.1916.2.40' => 'Summit 24e2TX',
|
||||
'.1.3.6.1.4.1.1916.2.25' => 'Summit 24e3',
|
||||
'.1.3.6.1.4.1.1916.2.3' => 'Summit 3',
|
||||
'.1.3.6.1.4.1.1916.2.61' => 'Summit 300-24',
|
||||
'.1.3.6.1.4.1.1916.2.55' => 'Summit 300-48',
|
||||
'.1.3.6.1.4.1.1916.2.4' => 'Summit 4',
|
||||
'.1.3.6.1.4.1.1916.2.58' => 'Summit 400-24',
|
||||
'.1.3.6.1.4.1.1916.2.64' => 'Summit 400-24p',
|
||||
'.1.3.6.1.4.1.1916.2.63' => 'Summit 400-24t',
|
||||
'.1.3.6.1.4.1.1916.2.59' => 'Summit 400-24x',
|
||||
'.1.3.6.1.4.1.1916.2.6' => 'Summit 48',
|
||||
'.1.3.6.1.4.1.1916.2.16' => 'Summit 48i',
|
||||
'.1.3.6.1.4.1.1916.2.28' => 'Summit 48i1u',
|
||||
'.1.3.6.1.4.1.1916.2.5' => 'Summit 4FX',
|
||||
'.1.3.6.1.4.1.1916.2.15' => 'Summit 5i',
|
||||
'.1.3.6.1.4.1.1916.2.21' => 'Summit 5iLX',
|
||||
'.1.3.6.1.4.1.1916.2.22' => 'Summit 5iTX',
|
||||
'.1.3.6.1.4.1.1916.2.12' => 'Summit 7iSX',
|
||||
'.1.3.6.1.4.1.1916.2.13' => 'Summit 7iTX',
|
||||
'.1.3.6.1.4.1.1916.2.30' => 'Summit Px1',
|
||||
'.1.3.6.1.4.1.1916.2.67' => 'SummitStack',
|
||||
'.1.3.6.1.4.1.1916.2.93' => 'Summit Ver2Stack',
|
||||
'.1.3.6.1.4.1.1916.2.68' => 'SummitWM 100',
|
||||
'.1.3.6.1.4.1.1916.2.69' => 'SummitWM 1000',
|
||||
'.1.3.6.1.4.1.1916.2.94' => 'SummitWM 200',
|
||||
'.1.3.6.1.4.1.1916.2.95' => 'SummitWM 2000',
|
||||
'.1.3.6.1.4.1.1916.2.89' => 'Summit X250-24p',
|
||||
'.1.3.6.1.4.1.1916.2.88' => 'Summit X250-24t',
|
||||
'.1.3.6.1.4.1.1916.2.90' => 'Summit X250-24x',
|
||||
'.1.3.6.1.4.1.1916.2.92' => 'Summit X250-48p',
|
||||
'.1.3.6.1.4.1.1916.2.91' => 'Summit X250-48t',
|
||||
'.1.3.6.1.4.1.1916.2.93' => 'Summit X250e-24t (3-Stack)',
|
||||
'.1.3.6.1.4.1.1916.2.88' => 'Summit X250e-24t (Single)',
|
||||
'.1.3.6.1.4.1.1916.2.66' => 'Summit X450-24t',
|
||||
'.1.3.6.1.4.1.1916.2.65' => 'Summit X450-24x',
|
||||
'.1.3.6.1.4.1.1916.2.80' => 'Summit X450a-24tDC',
|
||||
'.1.3.6.1.4.1.1916.2.84' => 'Summit X450a-24x',
|
||||
'.1.3.6.1.4.1.1916.2.82' => 'Summit X450a-24xDC',
|
||||
'.1.3.6.1.4.1.1916.2.76' => 'Summit X450a-48t',
|
||||
'.1.3.6.1.4.1.1916.2.87' => 'Summit X450a-48tDC',
|
||||
'.1.3.6.1.4.1.1916.2.72' => 'Summit X450e-24p',
|
||||
'.1.3.6.1.4.1.1916.2.79' => 'Summit X450e-48p'
|
||||
);
|
||||
|
||||
|
||||
$rewrite_ironware_hardware = array(
|
||||
'snFIWGSwitch' => 'Stackable FastIron workgroup',
|
||||
'snFIBBSwitch' => 'Stackable FastIron backbone',
|
||||
@@ -667,6 +743,15 @@ function rewrite_ios_features ($features)
|
||||
return ($features);
|
||||
}
|
||||
|
||||
function rewrite_extreme_hardware ($hardware)
|
||||
{
|
||||
global $rewrite_extreme_hardware;
|
||||
#$hardware = array_str_replace($rewrite_extreme_hardware, $hardware);
|
||||
$hardware = $rewrite_extreme_hardware[$hardware];
|
||||
return ($hardware);
|
||||
}
|
||||
|
||||
|
||||
function rewrite_ironware_hardware ($hardware)
|
||||
{
|
||||
global $rewrite_ironware_hardware;
|
||||
|
@@ -108,6 +108,15 @@ $config['os']['ironware']['type'] = "network";
|
||||
$config['os']['extremeware']['text'] = "Extremeware";
|
||||
$config['os']['extremeware']['type'] = "network";
|
||||
$config['os']['extremeware']['ifname'] = 1;
|
||||
$config['os']['extremeware']['icon'] = "extreme";
|
||||
|
||||
|
||||
$config['os']['xos']['text'] = "Extreme XOS";
|
||||
$config['os']['xos']['type'] = "network";
|
||||
$config['os']['xos']['ifname'] = 1;
|
||||
$config['os']['xos']['group'] = "extremeware";
|
||||
$config['os']['xos']['icon'] = "extreme";
|
||||
|
||||
|
||||
$config['os']['powerconnect']['text'] = "Dell PowerConnect";
|
||||
$config['os']['powerconnect']['ifname'] = 1;
|
||||
|
@@ -162,6 +162,8 @@ while ($device = mysql_fetch_array($device_query)) {
|
||||
echo("Generic :(");
|
||||
}
|
||||
|
||||
echo("Hardware:".$hardware." Version:".$version." Features:".$features."\n");
|
||||
|
||||
$sysLocation = str_replace("\"","", $sysLocation);
|
||||
|
||||
include("includes/polling/temperatures.inc.php");
|
||||
|
Reference in New Issue
Block a user