Fixed some cosmetic issues with cisco graphs. Added cisco-specific OID for getting better ifType.

git-svn-id: http://www.observium.org/svn/observer/trunk@60 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2007-04-04 22:05:52 +00:00
parent 2ca09bdfd0
commit 6e1a7bbd6b
6 changed files with 144 additions and 73 deletions
+7 -1
View File
@@ -18,7 +18,10 @@
$device = getifhost($_GET['if']);
$ifIndex = getifindexbyid($_GET['if']);
}
$hostname = gethostbyid($device);
if($device) {
$hostname = gethostbyid($device);
}
$from = $_GET['from'];
$to = $_GET['to'];
$width = $_GET['width'];
@@ -34,6 +37,9 @@
switch ($type) {
case 'global_bits':
$graph = graph_global_bits ("global_bits.png", $from, $to, $width, $height);
break;
case 'device_bits':
$graph = graph_device_bits ($device, $graphfile, $from, $to, $width, $height, $title, $vertical);
break;