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:
Adam Amstrong
2010-06-12 17:24:35 +00:00
parent 748bd338e5
commit 45aa3f3902
6 changed files with 28 additions and 4 deletions

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -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";

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View 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");
?>