mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
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:
+7
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user