mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add realtime port page
git-svn-id: http://www.observium.org/svn/observer/trunk@2425 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
18
html/pages/device/port/realtime.inc.php
Normal file
18
html/pages/device/port/realtime.inc.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
### FIXME - do this in a function and/or do it in graph-realtime.php
|
||||
|
||||
if($device['os'] == "linux") {
|
||||
$interval = "15";
|
||||
} else {
|
||||
$interval = "2";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div align="center">
|
||||
<object data="graph-realtime.php?type=bits&id=<?php echo($interface['interface_id'] . "&interval=".$interval); ?>" type="image/svg+xml" width="800" height="375">
|
||||
<param name="src" value="graph.php?type=bits&id=<?php echo($interface['interface_id'] . "&interval=".$interval); ?>" />
|
||||
Your browser does not support the type SVG! You need to either use Firefox or download the Adobe SVG plugin.
|
||||
</object>
|
||||
</div>
|
Reference in New Issue
Block a user