mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add hardware & version detection for Thompson Speedtouch (snmp v1) clean up temperature graph (lighter range) make amp/volt/hz pages prettier (6px cell padding please)
git-svn-id: http://www.observium.org/svn/observer/trunk@1155 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
@@ -22,7 +22,7 @@ include("common.inc.php");
|
||||
$rrd_options .= " DEF:temp_min=$rrd_filename:temp:MIN";
|
||||
$rrd_options .= " CDEF:tempwarm=temp_max,".$temperature['temp_limit'].",GT,temp,UNKN,IF";
|
||||
$rrd_options .= " CDEF:tempcold=temp_min,20,LT,temp,UNKN,IF";
|
||||
$rrd_options .= " AREA:temp_max#a5a5a5";
|
||||
$rrd_options .= " AREA:temp_max#c5c5c5";
|
||||
$rrd_options .= " AREA:temp_min#ffffffff";
|
||||
|
||||
|
||||
|
@@ -8,7 +8,7 @@ if($_SESSION['userlevel'] >= '5') {
|
||||
|
||||
$query = mysql_query($sql);
|
||||
|
||||
echo('<table cellspacing="0" cellpadding="2" width="100%">');
|
||||
echo('<table cellspacing="0" cellpadding="6" width="100%">');
|
||||
|
||||
echo('<tr class=tablehead>
|
||||
<th width="280">Device</th>
|
||||
|
@@ -8,7 +8,7 @@ if($_SESSION['userlevel'] >= '5') {
|
||||
|
||||
$query = mysql_query($sql);
|
||||
|
||||
echo('<table cellspacing="0" cellpadding="2" width="100%">');
|
||||
echo('<table cellspacing="0" cellpadding="6" width="100%">');
|
||||
|
||||
echo('<tr class=tablehead>
|
||||
<th width="280">Device</th>
|
||||
|
@@ -8,7 +8,7 @@ if($_SESSION['userlevel'] >= '5') {
|
||||
|
||||
$query = mysql_query($sql);
|
||||
|
||||
echo('<table cellspacing="0" cellpadding="2" width="100%">');
|
||||
echo('<table cellspacing="0" cellpadding="6" width="100%">');
|
||||
|
||||
echo('<tr class=tablehead>
|
||||
<th width="280">Device</th>
|
||||
|
24
includes/polling/device-speedtouch.inc.php
Normal file
24
includes/polling/device-speedtouch.inc.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
echo("Doing Thompson Speedtouch ");
|
||||
|
||||
$serial = "";
|
||||
#list(,$hardware,) = explode(" ", $hardware);
|
||||
$hardware = $sysDescr;
|
||||
|
||||
$features = "";
|
||||
|
||||
### Filthy hack to get software version. may not work on anything but 585v7 :)
|
||||
|
||||
$loop = shell_exec($config['snmpget'] . ' -Ovq -v1 -c '.$device['community'].' '.$device['hostname'].' ifDescr.101');
|
||||
if($loop) {
|
||||
preg_match('@([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)@i',
|
||||
$loop, $matches);
|
||||
$version = $matches[1];
|
||||
}
|
||||
|
||||
echo("$hardware - $version - $features - $serial\n");
|
||||
|
||||
#include("hr-mib.inc.php");
|
||||
|
||||
?>
|
Reference in New Issue
Block a user