mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
remove legacy variables, hopefully i didn't mess anything up
git-svn-id: http://www.observium.org/svn/observer/trunk@3134 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -40,10 +40,10 @@ echo('
|
||||
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "310";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $device['device_id'];
|
||||
$graph_array['type'] = "device_bits";
|
||||
$graph_array['from'] = $day;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array['legend'] = "no";
|
||||
$graph_array['popup_title'] = $descr;
|
||||
# $graph_array['link'] = generate_device_link($device_id);
|
||||
|
||||
@@ -31,9 +31,9 @@ foreach ($vlan_ports as $port)
|
||||
<a href='device/device=".$device['device_id']."/tab=port/port=".$port['interface_id']."/' onmouseover=\"return overlib('\
|
||||
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #e5e5e5;\'>".$device['hostname']." - ".$port['ifDescr']."</div>\
|
||||
".$port['ifAlias']." \
|
||||
<img src=\'graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$now."&width=450&height=150\'>\
|
||||
<img src=\'graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$config['time']['now']."&width=450&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<img src='graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$now."&width=132&height=40&legend=no'>
|
||||
"<img src='graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$config['time']['now']."&width=132&height=40&legend=no'>
|
||||
</a>
|
||||
<div style='font-size: 9px;'>".truncate(short_port_descr($port['ifAlias']), 22, '')."</div>
|
||||
</div>");
|
||||
|
||||
@@ -19,9 +19,9 @@ foreach (dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVrf` = ?"
|
||||
<a href='device/".$device['device_id']."/port/".$port['interface_id']."/' onmouseover=\"return overlib('\
|
||||
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #e5e5e5;\'>".$device['hostname']." - ".$port['ifDescr']."</div>\
|
||||
".$port['ifAlias']." \
|
||||
<img src=\'graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$now."&width=450&height=150\'>\
|
||||
<img src=\'graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$config['time']['now']."&width=450&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<img src='graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$now."&width=132&height=40&legend=no'>
|
||||
"<img src='graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$config['time']['now']."&width=132&height=40&legend=no'>
|
||||
</a>
|
||||
<div style='font-size: 9px;'>".truncate(short_port_descr($port['ifAlias']), 22, '')."</div>
|
||||
</div>");
|
||||
|
||||
@@ -100,14 +100,6 @@ include("includes/authenticate.inc.php");
|
||||
if (strstr($_SERVER['REQUEST_URI'], 'widescreen=yes')) { $_SESSION['widescreen'] = 1; }
|
||||
if (strstr($_SERVER['REQUEST_URI'], 'widescreen=no')) { unset($_SESSION['widescreen']); }
|
||||
|
||||
$now = time();
|
||||
$fourhour = time() - (4 * 60 * 60);
|
||||
$day = time() - (24 * 60 * 60);
|
||||
$twoday = time() - (2 * 24 * 60 * 60);
|
||||
$week = time() - (7 * 24 * 60 * 60);
|
||||
$month = time() - (31 * 24 * 60 * 60);
|
||||
$year = time() - (365 * 24 * 60 * 60);
|
||||
|
||||
# Load the settings for Multi-Tenancy.
|
||||
if (isset($config['branding']) && is_array($config['branding']))
|
||||
{
|
||||
|
||||
@@ -1,45 +1,46 @@
|
||||
<?php
|
||||
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "220";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array_zoom = $graph_array;
|
||||
$graph_array_zoom['height'] = "150";
|
||||
$graph_array_zoom['width'] = "400";
|
||||
$graph_array['legend'] = "no";
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "220";
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array_zoom = $graph_array;
|
||||
$graph_array_zoom['height'] = "150";
|
||||
$graph_array_zoom['width'] = "400";
|
||||
$graph_array['legend'] = "no";
|
||||
|
||||
echo('<h2>'.$vars['app'].'</h2>');
|
||||
echo('<table cellpadding=5 cellspacing=0 class=devicetable width=100%>');
|
||||
$app_devices = dbFetchRows("SELECT * FROM `devices` AS D, `applications` AS A WHERE D.device_id = A.device_id AND A.app_type = ?", array($vars['app']));
|
||||
foreach ($app_devices as $app_device)
|
||||
{
|
||||
echo('<tr class="list-device">');
|
||||
echo('<td class="device-head" width=300px>'.generate_device_link($app_device, shorthost($app_device['hostname']), array('tab'=>'apps','app'=>$vars['app'])).'</td>');
|
||||
echo('<td class="device-head" width=100px>'.$app_device['app_instance'].'</td>');
|
||||
echo('<td class="device-head" width=100px>'.$app_device['app_status'].'</td>');
|
||||
echo('<td></td>');
|
||||
echo('</tr>');
|
||||
echo('<tr class="list-device">');
|
||||
echo('<td colspan=4>');
|
||||
echo('<h2>'.$vars['app'].'</h2>');
|
||||
echo('<table cellpadding=5 cellspacing=0 class=devicetable width=100%>');
|
||||
$app_devices = dbFetchRows("SELECT * FROM `devices` AS D, `applications` AS A WHERE D.device_id = A.device_id AND A.app_type = ?", array($vars['app']));
|
||||
foreach ($app_devices as $app_device)
|
||||
{
|
||||
echo('<tr class="list-device">');
|
||||
echo('<td class="device-head" width=300px>'.generate_device_link($app_device, shorthost($app_device['hostname']), array('tab'=>'apps','app'=>$vars['app'])).'</td>');
|
||||
echo('<td class="device-head" width=100px>'.$app_device['app_instance'].'</td>');
|
||||
echo('<td class="device-head" width=100px>'.$app_device['app_status'].'</td>');
|
||||
echo('<td></td>');
|
||||
echo('</tr>');
|
||||
echo('<tr class="list-device">');
|
||||
echo('<td colspan=4>');
|
||||
|
||||
foreach ($graphs[$vars['app']] as $graph_type)
|
||||
{
|
||||
$graph_array['type'] = "application_".$vars['app']."_".$graph_type;
|
||||
$graph_array['id'] = $app_device['app_id'];
|
||||
$graph_array_zoom['type'] = "application_".$vars['app']."_".$graph_type;
|
||||
$graph_array_zoom['id'] = $app_device['app_id'];
|
||||
foreach ($graphs[$vars['app']] as $graph_type)
|
||||
{
|
||||
$graph_array['type'] = "application_".$vars['app']."_".$graph_type;
|
||||
$graph_array['id'] = $app_device['app_id'];
|
||||
$graph_array_zoom['type'] = "application_".$vars['app']."_".$graph_type;
|
||||
$graph_array_zoom['id'] = $app_device['app_id'];
|
||||
|
||||
$link_array = $graph_array;
|
||||
$link_array['page'] = "graphs";
|
||||
unset($link_array['height'], $link_array['width']);
|
||||
$link = generate_url($link_array);
|
||||
$link_array = $graph_array;
|
||||
$link_array['page'] = "graphs";
|
||||
unset($link_array['height'], $link_array['width']);
|
||||
$link = generate_url($link_array);
|
||||
|
||||
echo(overlib_link($link, generate_graph_tag($graph_array), generate_graph_tag($graph_array_zoom), NULL));
|
||||
}
|
||||
echo('</td>');
|
||||
echo('</tr>');
|
||||
}
|
||||
echo('</table>');
|
||||
echo(overlib_link($link, generate_graph_tag($graph_array), generate_graph_tag($graph_array_zoom), NULL));
|
||||
}
|
||||
echo('</td>');
|
||||
echo('</tr>');
|
||||
}
|
||||
|
||||
echo('</table>');
|
||||
|
||||
?>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "218";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array_zoom = $graph_array;
|
||||
$graph_array_zoom['height'] = "150";
|
||||
|
||||
@@ -13,7 +13,7 @@ foreach ($graphs as $key => $text)
|
||||
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $app['app_id'];
|
||||
$graph_array['type'] = "application_".$key;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ foreach ($graphs as $key => $text)
|
||||
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $app['app_id'];
|
||||
$graph_array['type'] = "application_".$key;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ foreach ($graphs as $key => $text)
|
||||
$graph_type = $key;
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $app['app_id'];
|
||||
$graph_array['type'] = "application_".$key;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ foreach ($graphs as $key => $text)
|
||||
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $app['app_id'];
|
||||
$graph_array['type'] = "application_".$key;
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ foreach ($graphs[$vars['app_section']] as $key => $text)
|
||||
$graph_type = $key;
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $app['app_id'];
|
||||
$graph_array['type'] = "application_".$key;
|
||||
echo('<h3>'.$text.'</h3>');
|
||||
|
||||
@@ -10,7 +10,7 @@ foreach ($graphs as $key => $text)
|
||||
$graph_type = $key;
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $app['app_id'];
|
||||
$graph_array['type'] = "application_".$key;
|
||||
echo('<h3>'.$text.'</h3>');
|
||||
|
||||
@@ -9,7 +9,7 @@ foreach ($graphs as $key => $text) {
|
||||
$graph_type = $key;
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $app['app_id'];
|
||||
$graph_array['type'] = "application_".$key;
|
||||
echo('<h3>'.$text.'</h3>');
|
||||
|
||||
@@ -14,7 +14,7 @@ foreach ($graphs as $key => $text) {
|
||||
$graph_type = $key;
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $app['app_id'];
|
||||
$graph_array['type'] = "application_".$key;
|
||||
echo('<h3>'.$text.'</h3>');
|
||||
|
||||
@@ -15,7 +15,7 @@ foreach ($graphs as $key => $text)
|
||||
$graph_type = $key;
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $app['app_id'];
|
||||
$graph_array['type'] = "application_".$key;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ if (isset($total) && $total == true)
|
||||
$graph_type = $key;
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $app['app_id'];
|
||||
$graph_array['type'] = "application_".$key;
|
||||
echo('<h3>'.$text.'</h3>');
|
||||
@@ -60,7 +60,7 @@ foreach ($files as $id => $file)
|
||||
$graph_type = $key;
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $app['app_id'];
|
||||
$graph_array['type'] = "application_".$key;
|
||||
$graph_array['hostname'] = $hostname;
|
||||
|
||||
@@ -7,6 +7,8 @@ echo("<table width=100% cellpadding=6 cellspacing=0>");
|
||||
|
||||
$i = '1';
|
||||
|
||||
#FIXME css alternating colours
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `mempools` WHERE device_id = ?", array($device['device_id'])) as $mempool)
|
||||
{
|
||||
if (!is_integer($i/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
@@ -14,10 +16,10 @@ foreach (dbFetchRows("SELECT * FROM `mempools` WHERE device_id = ?", array($devi
|
||||
$text_descr = rewrite_entity_descr($mempool['mempool_descr']);
|
||||
|
||||
$mempool_url = "device/".$device['device_id']."/health/mempool/";
|
||||
$mini_url = "graph.php?id=".$mempool['mempool_id']."&type=".$graph_type."&from=".$day."&to=".$now."&width=80&height=20&bg=f4f4f4";
|
||||
$mini_url = "graph.php?id=".$mempool['mempool_id']."&type=".$graph_type."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=80&height=20&bg=f4f4f4";
|
||||
|
||||
$mempool_popup = "onmouseover=\"return overlib('<div class=list-large>".$device['hostname']." - ".$text_descr;
|
||||
$mempool_popup .= "</div><img src=\'graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=$month&to=$now&width=400&height=125\'>";
|
||||
$mempool_popup .= "</div><img src=\'graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=400&height=125\'>";
|
||||
$mempool_popup .= "', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"";
|
||||
|
||||
$total = formatStorage($mempool['mempool_total']);
|
||||
|
||||
@@ -10,14 +10,14 @@ foreach (dbFetchRows("SELECT * FROM `processors` WHERE device_id = ?", array($de
|
||||
{
|
||||
$proc_url = "device/device=".$device['device_id']."/tab=health/metric=processor/";
|
||||
|
||||
$mini_url = "graph.php?id=".$proc['processor_id']."&type=".$graph_type."&from=".$day."&to=".$now."&width=80&height=20&bg=f4f4f4";
|
||||
$mini_url = "graph.php?id=".$proc['processor_id']."&type=".$graph_type."&from=".$day."&to=".$config['time']['now']."&width=80&height=20&bg=f4f4f4";
|
||||
|
||||
$text_descr = $proc['processor_descr'];
|
||||
|
||||
$text_descr = rewrite_entity_descr($text_descr);
|
||||
|
||||
$proc_popup = "onmouseover=\"return overlib('<div class=list-large>".$device['hostname']." - ".$text_descr;
|
||||
$proc_popup .= "</div><img src=\'graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=$month&to=$now&width=400&height=125\'>";
|
||||
$proc_popup .= "</div><img src=\'graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=400&height=125\'>";
|
||||
$proc_popup .= "', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"";
|
||||
|
||||
$percent = round($proc['processor_usage']);
|
||||
|
||||
@@ -28,7 +28,7 @@ foreach (dbFetchRows("SELECT * FROM `storage` WHERE device_id = ? ORDER BY stora
|
||||
$fs_url = "device/device=".$device['device_id']."/tab=health/metric=storage/";
|
||||
|
||||
$fs_popup = "onmouseover=\"return overlib('<div class=list-large>".$device['hostname']." - ".$drive['storage_descr'];
|
||||
$fs_popup .= "</div><img src=\'graph.php?id=" . $drive['storage_id'] . "&type=".$graph_type."&from=$month&to=$now&width=400&height=125\'>";
|
||||
$fs_popup .= "</div><img src=\'graph.php?id=" . $drive['storage_id'] . "&type=".$graph_type."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=400&height=125\'>";
|
||||
$fs_popup .= "', RIGHT, FGCOLOR, '#e5e5e5');\" onmouseout=\"return nd();\"";
|
||||
|
||||
$background = get_percentage_colours($percent);
|
||||
|
||||
@@ -13,16 +13,16 @@ foreach (dbFetchRows("SELECT * FROM `hrDevice` WHERE `device_id` = ? ORDER BY `h
|
||||
$proc_id = dbFetchCell("SELECT processor_id FROM processors WHERE device_id = '".$device['device_id']."' AND hrDeviceIndex = '".$hrdevice['hrDeviceIndex']."'");
|
||||
$proc_url = "device/".$device['device_id']."/health/processor/";
|
||||
$proc_popup = "onmouseover=\"return overlib('<div class=list-large>".$device['hostname']." - ".$hrdevice['hrDeviceDescr'];
|
||||
$proc_popup .= "</div><img src=\'graph.php?id=" . $proc_id . "&type=processor_usage&from=$month&to=$now&width=400&height=125\'>";
|
||||
$proc_popup .= "</div><img src=\'graph.php?id=" . $proc_id . "&type=processor_usage&from=".$config['time']['month']."&to=".$config['time']['now']."&width=400&height=125\'>";
|
||||
$proc_popup .= "', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"";
|
||||
echo("<td><a href='$proc_url' $proc_popup>".$hrdevice['hrDeviceDescr']."</a></td>");
|
||||
|
||||
$graph_array['height'] = "20";
|
||||
$graph_array['width'] = "100";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = ".$config['time']['now'].";
|
||||
$graph_array['id'] = $proc_id;
|
||||
$graph_array['type'] = 'processor_usage';
|
||||
$graph_array['from'] = $day;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array_zoom = $graph_array; $graph_array_zoom['height'] = "150"; $graph_array_zoom['width'] = "400";
|
||||
|
||||
$mini_graph = overlib_link($proc_url, generate_graph_tag($graph_array), generate_graph_tag($graph_array_zoom), NULL);
|
||||
@@ -39,10 +39,10 @@ foreach (dbFetchRows("SELECT * FROM `hrDevice` WHERE `device_id` = ? ORDER BY `h
|
||||
|
||||
$graph_array['height'] = "20";
|
||||
$graph_array['width'] = "100";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $interface['interface_id'];
|
||||
$graph_array['type'] = 'port_bits';
|
||||
$graph_array['from'] = $day;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array_zoom = $graph_array; $graph_array_zoom['height'] = "150"; $graph_array_zoom['width'] = "400";
|
||||
|
||||
# FIXME click on graph should also link to port, but can't use generate_port_link here...
|
||||
|
||||
@@ -53,12 +53,12 @@ foreach ($entity_state['group']['c6kxbar'] as $index => $entry)
|
||||
$graph_array = array();
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "210";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $device['device_id'];
|
||||
$graph_array['mod'] = $index;
|
||||
$graph_array['chan'] = $subindex;
|
||||
$graph_array['type'] = "c6kxbar_util";
|
||||
$graph_array['from'] = $day;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array['legend'] = "no";
|
||||
|
||||
$link_array = $graph_array;
|
||||
|
||||
@@ -27,7 +27,7 @@ if (count($sensors))
|
||||
$graph_array = array();
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "210";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $sensor['sensor_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
|
||||
@@ -24,10 +24,10 @@ if (count($mempools))
|
||||
$graph_array = array();
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "210";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $mempool['mempool_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
$graph_array['from'] = $day;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array['legend'] = "no";
|
||||
|
||||
$link_array = $graph_array;
|
||||
|
||||
@@ -6,10 +6,10 @@ if ($ports['total'])
|
||||
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "485";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $device['device_id'];
|
||||
$graph_array['type'] = "device_bits";
|
||||
$graph_array['from'] = $day;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array['legend'] = "no";
|
||||
$graph = generate_graph_tag($graph_array);
|
||||
|
||||
|
||||
@@ -25,10 +25,10 @@ if (count($processors))
|
||||
$graph_array = array();
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "210";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $proc['processor_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
$graph_array['from'] = $day;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array['legend'] = "no";
|
||||
|
||||
$link_array = $graph_array;
|
||||
|
||||
@@ -49,10 +49,10 @@ if (count($drives))
|
||||
$graph_array = array();
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "210";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $drive['storage_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
$graph_array['from'] = $day;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array['legend'] = "no";
|
||||
|
||||
$link_array = $graph_array;
|
||||
|
||||
@@ -24,10 +24,10 @@ if (count($toners))
|
||||
$graph_array = array();
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "210";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $toner['toner_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
$graph_array['from'] = $day;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array['legend'] = "no";
|
||||
|
||||
$link_array = $graph_array;
|
||||
|
||||
@@ -16,7 +16,7 @@ foreach (dbFetchRows("SELECT * FROM juniAtmVp WHERE interface_id = ?", array($in
|
||||
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "214";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $vp['juniAtmVp_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
|
||||
@@ -151,9 +151,9 @@ if ($vars['subview'] == "top10")
|
||||
".$addy['ipv4_address']." - ".$asn."
|
||||
<a href='#' onmouseover=\"return overlib('\
|
||||
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #555555;\'>".$name." - ".$addy['ipv4_address']." - ".$asn."</div>\
|
||||
<img src=\'graph.php?id=" . $acc['ma_id'] . "&type=$graph_type&from=-2day&to=$now&width=450&height=150\'>\
|
||||
<img src=\'graph.php?id=" . $acc['ma_id'] . "&type=$graph_type&from=-2day&to=".$config['time']['now']."&width=450&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >
|
||||
<img src='graph.php?id=" . $acc['ma_id'] . "&type=$graph_type&from=-2day&to=$now&width=213&height=45'></a>
|
||||
<img src='graph.php?id=" . $acc['ma_id'] . "&type=$graph_type&from=-2day&to=".$config['time']['now']."&width=213&height=45'></a>
|
||||
|
||||
<span style='font-size: 10px;'>".$name."</span>
|
||||
</div>");
|
||||
@@ -181,7 +181,7 @@ if ($vars['subview'] == "top10")
|
||||
$graph_array['id'] = $acc['ma_id'];
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "216";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
echo('<tr bgcolor="'.$bg_colour.'"' . ($bg_image ? ' background="'.$bg_image.'"' : '') . '"><td colspan="7">');
|
||||
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
@@ -6,17 +6,17 @@ global $config;
|
||||
|
||||
if (!$graph_type) { $graph_type = "pagp_bits"; }
|
||||
|
||||
$daily_traffic = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=$day&to=$now&width=215&height=100";
|
||||
$daily_url = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=$day&to=$now&width=500&height=150";
|
||||
$daily_traffic = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=".$config['time']['day']."&to=".$config['time']['now']."&width=215&height=100";
|
||||
$daily_url = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=".$config['time']['day']."&to=".$config['time']['now']."&width=500&height=150";
|
||||
|
||||
$weekly_traffic = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=$week&to=$now&width=215&height=100";
|
||||
$weekly_url = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=$week&to=$now&width=500&height=150";
|
||||
$weekly_traffic = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=".$config['time']['week']."&to=".$config['time']['now']."&width=215&height=100";
|
||||
$weekly_url = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=".$config['time']['week']."&to=".$config['time']['now']."&width=500&height=150";
|
||||
|
||||
$monthly_traffic = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=$month&to=$now&width=215&height=100";
|
||||
$monthly_url = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=$month&to=$now&width=500&height=150";
|
||||
$monthly_traffic = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=".$config['time']['month']."&to=".$config['time']['now']."&width=215&height=100";
|
||||
$monthly_url = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=".$config['time']['month']."&to=".$config['time']['now']."&width=500&height=150";
|
||||
|
||||
$yearly_traffic = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=$year&to=$now&width=215&height=100";
|
||||
$yearly_url = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=$year&to=$now&width=500&height=150";
|
||||
$yearly_traffic = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=".$config['time']['yearh']."&to=".$config['time']['now']."&width=215&height=100";
|
||||
$yearly_url = "graph.php?port=" . $port['interface_id'] . "&type=$graph_type&from=".$config['time']['yearh']."&to=".$config['time']['now']."&width=500&height=150";
|
||||
|
||||
echo("<a href='#' onmouseover=\"return overlib('<img src=\'$daily_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">
|
||||
<img src='$daily_traffic' border=0></a> ");
|
||||
|
||||
@@ -78,9 +78,9 @@ if ($vars['view'] == 'minigraphs')
|
||||
<a href=\"" . generate_port_url($port) . "\" onmouseover=\"return overlib('\
|
||||
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #e5e5e5;\'>".$device['hostname']." - ".$port['ifDescr']."</div>\
|
||||
".$port['ifAlias']." \
|
||||
<img src=\'graph.php?type=".$graph_type."&id=".$port['interface_id']."&from=".$from."&to=".$now."&width=450&height=150\'>\
|
||||
<img src=\'graph.php?type=".$graph_type."&id=".$port['interface_id']."&from=".$from."&to=".$config['time']['now']."&width=450&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<img src='graph.php?type=".$graph_type."&id=".$port['interface_id']."&from=".$from."&to=".$now."&width=180&height=45&legend=no'>
|
||||
"<img src='graph.php?type=".$graph_type."&id=".$port['interface_id']."&from=".$from."&to=".$config['time']['now']."&width=180&height=45&legend=no'>
|
||||
</a>
|
||||
<div style='font-size: 9px;'>".truncate(short_port_descr($port['ifAlias']), 32, '')."</div>
|
||||
</div>");
|
||||
|
||||
@@ -58,8 +58,8 @@ foreach (dbFetchRows("SELECT * FROM pseudowires AS P, ports AS I WHERE P.interfa
|
||||
{
|
||||
$pw_a['width'] = "150";
|
||||
$pw_a['height'] = "30";
|
||||
$pw_a['from'] = $day;
|
||||
$pw_a['to'] = $now;
|
||||
$pw_a['from'] = $config['time']['day'];
|
||||
$pw_a['to'] = $config['time']['now'];
|
||||
$pw_a['bg'] = $bg;
|
||||
$types = array('bits','upkts','errors');
|
||||
foreach ($types as $graph_type)
|
||||
@@ -74,8 +74,8 @@ foreach (dbFetchRows("SELECT * FROM pseudowires AS P, ports AS I WHERE P.interfa
|
||||
{
|
||||
$pw_b['width'] = "150";
|
||||
$pw_b['height'] = "30";
|
||||
$pw_b['from'] = $day;
|
||||
$pw_b['to'] = $now;
|
||||
$pw_b['from'] = $config['time']['day'];
|
||||
$pw_b['to'] = $config['time']['now'];
|
||||
$pw_b['bg'] = $bg;
|
||||
$types = array('bits','upkts','errors');
|
||||
foreach ($types as $graph_type)
|
||||
|
||||
@@ -127,7 +127,7 @@ foreach (dbFetchRows("SELECT * FROM `bgpPeers` WHERE `device_id` = ? ORDER BY `b
|
||||
unset($sep);
|
||||
|
||||
$graph_type = "bgp_updates";
|
||||
$peer_daily_url = "graph.php?id=" . $peer['bgpPeer_id'] . "&type=" . $graph_type . "&from=$day&to=$now&width=500&height=150";
|
||||
$peer_daily_url = "graph.php?id=" . $peer['bgpPeer_id'] . "&type=" . $graph_type . "&from=".$config['time']['day']."&to=".$config['time']['now']."&width=500&height=150";
|
||||
$peeraddresslink = "<span class=list-large><a onmouseover=\"return overlib('<img src=\'$peer_daily_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">" . $peer['bgpPeerIdentifier'] . "</a></span>";
|
||||
|
||||
echo('<tr bgcolor="'.$bg_colour.'"' . ($peer['alert'] ? ' bordercolor="#cc0000"' : '') .
|
||||
@@ -183,7 +183,7 @@ foreach (dbFetchRows("SELECT * FROM `bgpPeers` WHERE `device_id` = ? ORDER BY `b
|
||||
{
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "216";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
echo('<tr bgcolor="'.$bg_colour.'"' . ($bg_image ? ' background="'.$bg_image.'"' : '') . '"><td colspan="7">');
|
||||
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
@@ -89,7 +89,7 @@ foreach (dbFetchRows("SELECT * FROM `cef_switching` WHERE `device_id` = ? ORDER
|
||||
{
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $cef['cef_switching_id'];
|
||||
$graph_array['type'] = "cefswitching_graph";
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ if (dbFetchCell("SELECT COUNT(service_id) FROM `services` WHERE device_id = ?",
|
||||
{
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "210";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $service['service_id'];
|
||||
$graph_array['type'] = "service_availability";
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ if ($config['warn']['ifdown'])
|
||||
$interface = ifNameDescr($interface);
|
||||
generate_front_box("#ffdd99", "<center><strong>".generate_device_link($interface, shorthost($interface['hostname']))."</strong><br />
|
||||
<span style='font-size: 14px; font-weight: bold; margin: 5px; color: #c00;'>Port Down</span><br />
|
||||
<!-- <img src='graph.php?type=bits&if=".$interface['interface_id']."&from=$day&to=$now&width=100&height=32' /> -->
|
||||
<!-- <img src='graph.php?type=bits&if=".$interface['interface_id']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=100&height=32' /> -->
|
||||
<strong>".generate_port_link($interface, truncate(makeshortif($interface['label']),13,''))."</strong> <br />
|
||||
" . ($interface['ifAlias'] ? '<span class="body-date-1">'.truncate($interface['ifAlias'], 20, '').'</span>' : '') . "
|
||||
</center>");
|
||||
|
||||
@@ -17,10 +17,10 @@ foreach ($dev_list as $device_id => $descr)
|
||||
echo("<div style='font-size: 16px; font-weight: bold; color: #555555;'>".$descr."</div>");
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "310";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $device_id;
|
||||
$graph_array['type'] = "device_bits";
|
||||
$graph_array['from'] = $day;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array['legend'] = "no";
|
||||
$graph_array['popup_title'] = $descr;
|
||||
# $graph_array['link'] = generate_device_link($device_id);
|
||||
|
||||
@@ -143,28 +143,28 @@ if ($_SESSION['userlevel'] >= '5')
|
||||
if ($ports['transit'])
|
||||
{
|
||||
echo("<a onmouseover=\"return overlib('<img src=\'graph.php?type=multi_bits&ports=".$ports['transit'].
|
||||
"&from=".$day."&to=".$now."&width=400&height=150\'>', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 250);\" onmouseout=\"return nd();\" >".
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150\'>', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 250);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 18px; font-weight: bold;'>Internet Transit</div>".
|
||||
"<img src='graph.php?type=multi_bits&ports=".$ports['transit'].
|
||||
"&from=".$day."&to=".$now."&width=200&height=100'></a>");
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=200&height=100'></a>");
|
||||
}
|
||||
|
||||
if ($ports['l2tp'])
|
||||
{
|
||||
echo("<a onmouseover=\"return overlib('<img src=\'graph.php?type=multi_bits&ports=".$ports['l2tp'].
|
||||
"&from=".$day."&to=".$now."&width=400&height=150\'>', LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 250);\" onmouseout=\"return nd();\" >".
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150\'>', LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 250);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 18px; font-weight: bold;'>L2TP ADSL</div>".
|
||||
"<img src='graph.php?type=multi_bits&ports=".$ports['l2tp'].
|
||||
"&from=".$day."&to=".$now."&width=200&height=100'></a>");
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=200&height=100'></a>");
|
||||
}
|
||||
|
||||
if ($ports['voip'])
|
||||
{
|
||||
echo("<a onmouseover=\"return overlib('<img src=\'graph.php?type=multi_bits&ports=".$ports['voip'].
|
||||
"&from=".$day."&to=".$now."&width=400&height=150\'>', LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 250);\" onmouseout=\"return nd();\" >".
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150\'>', LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 250);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 18px; font-weight: bold;'>VoIP to PSTN</div>".
|
||||
"<img src='graph.php?type=multi_bits&ports=".$ports['voip'].
|
||||
"&from=".$day."&to=".$now."&width=200&height=100'></a>");
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=200&height=100'></a>");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -142,12 +142,12 @@ if ($_SESSION['userlevel'] >= '5')
|
||||
if ($ports['peering'] && $ports['transit']) {
|
||||
echo("<div style='width: 235px; '>
|
||||
<a href='internet/' onmouseover=\"return overlib('\
|
||||
<img src=\'graph.php?type=multiport_bits_duo&id=".$ports['peering']."&idb=".$ports['transit']."&from=".$day."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits_duo&id=".$ports['peering']."&idb=".$ports['transit']."&from=".$week."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits_duo&id=".$ports['peering']."&idb=".$ports['transit']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits_duo&id=".$ports['peering']."&idb=".$ports['transit']."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 16px; font-weight: bold; color: #555555;'>Aggregate Internet Traffic</div>".
|
||||
"<img src='graph.php?type=multiport_bits_duo&id=".$ports['peering']."&idb=".$ports['transit'].
|
||||
"&from=".$day."&to=".$now."&width=385&height=100&legend=no'></a></div>");
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=385&height=100&legend=no'></a></div>");
|
||||
}
|
||||
|
||||
echo("</div>");
|
||||
@@ -157,23 +157,23 @@ if ($_SESSION['userlevel'] >= '5')
|
||||
if ($ports['transit']) {
|
||||
echo("<div style='width: 235px; float: left;'>
|
||||
<a href='iftype/transit/' onmouseover=\"return overlib('\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['transit']."&from=".$day."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['transit']."&from=".$week."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['transit']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['transit']."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 16px; font-weight: bold; color: #555555;'>Internet Transit</div>".
|
||||
"<img src='graph.php?type=multiport_bits&id=".$ports['transit'].
|
||||
"&from=".$day."&to=".$now."&width=155&height=100&legend=no'></a></div>");
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=155&height=100&legend=no'></a></div>");
|
||||
}
|
||||
|
||||
if ($ports['peering']) {
|
||||
echo("<div style='width: 235px; float: right;'>
|
||||
<a href='iftype/peering/' onmouseover=\"return overlib('\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['peering']."&from=".$day."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['peering']."&from=".$week."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['peering']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['peering']."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 16px; font-weight: bold; color: #555555;'>Internet Peering</div>".
|
||||
"<img src='graph.php?type=multiport_bits&id=".$ports['peering'].
|
||||
"&from=".$day."&to=".$now."&width=155&height=100&legend=no'></a></div>");
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=155&height=100&legend=no'></a></div>");
|
||||
}
|
||||
|
||||
echo("</div>");
|
||||
@@ -183,12 +183,12 @@ if ($_SESSION['userlevel'] >= '5')
|
||||
if ($ports['broadband'] && $ports['wave_broadband'] && $ports['new_broadband']) {
|
||||
echo("<div style='width: 466px; '>
|
||||
<a href='broadband/' onmouseover=\"return overlib('\
|
||||
<img src=\'graph.php?type=multiport_bits_trio&id=".$ports['broadband']."&idb=".$ports['new_broadband']."&idc=".$ports['wave_broadband']."&from=".$day."&to=".$now."&width=400&height=150&inverse=c\'>\
|
||||
<img src=\'graph.php?type=multiport_bits_trio&id=".$ports['broadband']."&idb=".$ports['new_broadband']."&idc=".$ports['wave_broadband']."&from=".$week."&to=".$now."&width=400&height=150&inverse=c\'>\
|
||||
<img src=\'graph.php?type=multiport_bits_trio&id=".$ports['broadband']."&idb=".$ports['new_broadband']."&idc=".$ports['wave_broadband']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150&inverse=c\'>\
|
||||
<img src=\'graph.php?type=multiport_bits_trio&id=".$ports['broadband']."&idb=".$ports['new_broadband']."&idc=".$ports['wave_broadband']."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150&inverse=c\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 16px; font-weight: bold; color: #555555;'>Aggregate Broadband Traffic</div>".
|
||||
"<img src='graph.php?type=multiport_bits_trio&id=".$ports['broadband']."&idb=".$ports['new_broadband']."&idc=".$ports['wave_broadband'].
|
||||
"&from=".$day."&to=".$now."&width=385&height=100&legend=no&inverse=c'></a></div>");
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=385&height=100&legend=no&inverse=c'></a></div>");
|
||||
}
|
||||
|
||||
echo("<div style=' margin-bottom: 5px;'>");
|
||||
@@ -196,12 +196,12 @@ if ($_SESSION['userlevel'] >= '5')
|
||||
if ($ports['broadband']) {
|
||||
echo("<div style='width: 235px; float: left;'>
|
||||
<a onmouseover=\"return overlib('\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['broadband']."&from=".$day."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['broadband']."&from=".$week."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['broadband']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['broadband']."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
', LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 16px; font-weight: bold; color: #555555;'>Jersey Broadband ATM</div>".
|
||||
"<img src='graph.php?type=multiport_bits&id=".$ports['broadband'].
|
||||
"&from=".$day."&to=".$now."&width=155&height=100&legend=no'></a></div>");
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=155&height=100&legend=no'></a></div>");
|
||||
}
|
||||
|
||||
echo("<div style=' margin-bottom: 5px;'>");
|
||||
@@ -209,11 +209,11 @@ if ($_SESSION['userlevel'] >= '5')
|
||||
if ($ports['new_broadband']) {
|
||||
echo("<div style='width: 235px; float: left;'>
|
||||
<a onmouseover=\"return overlib('\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['new_broadband']."&from=".$day."&to=".$now."&width=400&height=150&inverse=0\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['new_broadband']."&from=".$week."&to=".$now."&width=400&height=150&inverse=0\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['new_broadband']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150&inverse=0\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['new_broadband']."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150&inverse=0\'>\
|
||||
', LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 16px; font-weight: bold; color: #555555;'>Jersey Broadband NGN</div>".
|
||||
"<img src='graph.php?type=multiport_bits&id=".$ports['new_broadband']."&from=".$day."&to=".$now."&width=155&height=100&inverse=0&legend=no'></a></div>");
|
||||
"<img src='graph.php?type=multiport_bits&id=".$ports['new_broadband']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=155&height=100&inverse=0&legend=no'></a></div>");
|
||||
}
|
||||
|
||||
echo("</div>");
|
||||
@@ -221,11 +221,11 @@ if ($_SESSION['userlevel'] >= '5')
|
||||
if ($ports['wave_broadband']) {
|
||||
echo("<div style='width: 235px; float: left;'>
|
||||
<a onmouseover=\"return overlib('\
|
||||
<img src=\'graph.php?type=port_bits&id=".$ports['wave_broadband']."&from=".$day."&to=".$now."&width=400&height=150&inverse=1&legend=1\'>\
|
||||
<img src=\'graph.php?type=port_bits&id=".$ports['wave_broadband']."&from=".$week."&to=".$now."&width=400&height=150&inverse=1&legend=1\'>\
|
||||
<img src=\'graph.php?type=port_bits&id=".$ports['wave_broadband']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150&inverse=1&legend=1\'>\
|
||||
<img src=\'graph.php?type=port_bits&id=".$ports['wave_broadband']."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150&inverse=1&legend=1\'>\
|
||||
', LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >". "
|
||||
<div style='font-size: 16px; font-weight: bold; color: #555555;'>Wave Broadband</div>".
|
||||
"<img src='graph.php?type=port_bits&id=".$ports['wave_broadband']."&from=".$day."&to=".$now."&width=155&height=100&inverse=1&legend=no'></a></div>");
|
||||
"<img src='graph.php?type=port_bits&id=".$ports['wave_broadband']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=155&height=100&inverse=1&legend=no'></a></div>");
|
||||
}
|
||||
|
||||
echo("</div>");
|
||||
|
||||
@@ -141,52 +141,56 @@ if ($_SESSION['userlevel'] >= '5')
|
||||
|
||||
echo("<div style=' margin-bottom: 5px;'>");
|
||||
|
||||
if ($ports['peering'] && $ports['transit']) {
|
||||
if ($ports['peering'] && $ports['transit'])
|
||||
{
|
||||
echo("<div style='width: 235px; '>
|
||||
<a href='internet/' onmouseover=\"return overlib('\
|
||||
<img src=\'graph.php?type=multiport_bits_duo&id=".$ports['peering']."&idb=".$ports['transit']."&from=".$day."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits_duo&id=".$ports['peering']."&idb=".$ports['transit']."&from=".$week."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits_duo&id=".$ports['peering']."&idb=".$ports['transit']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits_duo&id=".$ports['peering']."&idb=".$ports['transit']."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 16px; font-weight: bold; color: #555555;'>Aggregate Internet Traffic</div>".
|
||||
"<img src='graph.php?type=multiport_bits_duo&id=".$ports['peering']."&idb=".$ports['transit'].
|
||||
"&from=".$day."&to=".$now."&width=385&height=100&legend=no'></a></div>");
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=385&height=100&legend=no'></a></div>");
|
||||
}
|
||||
|
||||
echo("</div>");
|
||||
|
||||
echo("<div style=' margin-bottom: 5px;'>");
|
||||
|
||||
if ($ports['transit']) {
|
||||
if ($ports['transit'])
|
||||
{
|
||||
echo("<div style='width: 235px; float: left;'>
|
||||
<a href='iftype/transit/' onmouseover=\"return overlib('\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['transit']."&from=".$day."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['transit']."&from=".$week."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['transit']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['transit']."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 16px; font-weight: bold; color: #555555;'>Internet Transit</div>".
|
||||
"<img src='graph.php?type=multiport_bits&id=".$ports['transit'].
|
||||
"&from=".$day."&to=".$now."&width=155&height=100&legend=no'></a></div>");
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=155&height=100&legend=no'></a></div>");
|
||||
}
|
||||
|
||||
if ($ports['peering']) {
|
||||
if ($ports['peering'])
|
||||
{
|
||||
echo("<div style='width: 235px; float: right;'>
|
||||
<a href='iftype/peering/' onmouseover=\"return overlib('\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['peering']."&from=".$day."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['peering']."&from=".$week."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['peering']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['peering']."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 16px; font-weight: bold; color: #555555;'>Internet Peering</div>".
|
||||
"<img src='graph.php?type=multiport_bits&id=".$ports['peering'].
|
||||
"&from=".$day."&to=".$now."&width=155&height=100&legend=no'></a></div>");
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=155&height=100&legend=no'></a></div>");
|
||||
}
|
||||
|
||||
if ($ports['core']) {
|
||||
if ($ports['core'])
|
||||
{
|
||||
echo("<div style='width: 235px;'>
|
||||
<a href='iftype/core/' onmouseover=\"return overlib('\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['core']."&from=".$day."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['core']."&from=".$week."&to=".$now."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['core']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
<img src=\'graph.php?type=multiport_bits&id=".$ports['core']."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<div style='font-size: 16px; font-weight: bold; color: #555555;'>Core Traffic</div>".
|
||||
"<img src='graph.php?type=multiport_bits&id=".$ports['core'].
|
||||
"&from=".$day."&to=".$now."&width=385&height=100&legend=no'></a></div>");
|
||||
"&from=".$config['time']['day']."&to=".$config['time']['now']."&width=385&height=100&legend=no'></a></div>");
|
||||
}
|
||||
|
||||
echo("</div>");
|
||||
|
||||
@@ -56,7 +56,7 @@ if (!$auth)
|
||||
$graph_array['height'] = "60";
|
||||
$graph_array['width'] = $thumb_width;
|
||||
$graph_array['legend'] = "no";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
|
||||
print_optionbar_start();
|
||||
echo($title);
|
||||
|
||||
@@ -20,10 +20,10 @@ foreach (dbFetchRows("SELECT * FROM `mempools` AS M, `devices` as D WHERE D.devi
|
||||
$text_descr = $mempool['mempool_descr'];
|
||||
|
||||
$mempool_url = "device/device=".$mempool['device_id']."/tab=health/metric=mempool/";
|
||||
$mini_url = "graph.php?id=".$mempool['mempool_id']."&type=".$graph_type."&from=".$day."&to=".$now."&width=80&height=20&bg=f4f4f4";
|
||||
$mini_url = "graph.php?id=".$mempool['mempool_id']."&type=".$graph_type."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=80&height=20&bg=f4f4f4";
|
||||
|
||||
$mempool_popup = "onmouseover=\"return overlib('<div class=list-large>".$device['hostname']." - ".$text_descr;
|
||||
$mempool_popup .= "</div><img src=\'graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=$month&to=$now&width=400&height=125\'>";
|
||||
$mempool_popup .= "</div><img src=\'graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=400&height=125\'>";
|
||||
$mempool_popup .= "', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"";
|
||||
|
||||
$total = formatStorage($mempool['mempool_total']);
|
||||
@@ -46,17 +46,17 @@ foreach (dbFetchRows("SELECT * FROM `mempools` AS M, `devices` as D WHERE D.devi
|
||||
{
|
||||
echo("<tr></tr><tr class='health'><td colspan=5>");
|
||||
|
||||
$daily_graph = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=$day&to=$now&width=211&height=100";
|
||||
$daily_url = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=$day&to=$now&width=400&height=150";
|
||||
$daily_graph = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=211&height=100";
|
||||
$daily_url = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150";
|
||||
|
||||
$weekly_graph = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=$week&to=$now&width=211&height=100";
|
||||
$weekly_url = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=$week&to=$now&width=400&height=150";
|
||||
$weekly_graph = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=211&height=100";
|
||||
$weekly_url = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150";
|
||||
|
||||
$monthly_graph = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=$month&to=$now&width=211&height=100";
|
||||
$monthly_url = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=$month&to=$now&width=400&height=150";
|
||||
$monthly_graph = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=211&height=100";
|
||||
$monthly_url = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=400&height=150";
|
||||
|
||||
$yearly_graph = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=$year&to=$now&width=211&height=100";
|
||||
$yearly_url = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=$year&to=$now&width=400&height=150";
|
||||
$yearly_graph = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=".$config['time']['yearh']."&to=".$config['time']['now']."&width=211&height=100";
|
||||
$yearly_url = "graph.php?id=" . $mempool['mempool_id'] . "&type=".$graph_type."&from=".$config['time']['yearh']."&to=".$config['time']['now']."&width=400&height=150";
|
||||
|
||||
echo("<a onmouseover=\"return overlib('<img src=\'$daily_url\'>', LEFT);\" onmouseout=\"return nd();\">
|
||||
<img src='$daily_graph' border=0></a> ");
|
||||
|
||||
@@ -27,10 +27,10 @@ foreach (dbFetchRows("SELECT * FROM `processors` AS P, `devices` AS D WHERE D.de
|
||||
|
||||
$proc_url = "device/".$device['device_id']."/health/processor/";
|
||||
|
||||
$mini_url = "graph.php?id=".$proc['processor_id']."&type=".$graph_type."&from=".$day."&to=".$now."&width=80&height=20&bg=f4f4f400";
|
||||
$mini_url = "graph.php?id=".$proc['processor_id']."&type=".$graph_type."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=80&height=20&bg=f4f4f400";
|
||||
|
||||
$proc_popup = "onmouseover=\"return overlib('<div class=list-large>".$device['hostname']." - ".$text_descr;
|
||||
$proc_popup .= "</div><img src=\'graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=$month&to=$now&width=400&height=125\'>";
|
||||
$proc_popup .= "</div><img src=\'graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=".$config['month']."&to=".$config['time']['now']."&width=400&height=125\'>";
|
||||
$proc_popup .= "', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"";
|
||||
|
||||
$perc = round($proc['processor_usage']);
|
||||
@@ -50,17 +50,17 @@ foreach (dbFetchRows("SELECT * FROM `processors` AS P, `devices` AS D WHERE D.de
|
||||
{
|
||||
echo(' <tr></tr><tr class="health"><td colspan="5">');
|
||||
|
||||
$daily_graph = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=211&height=100";
|
||||
$daily_url = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=400&height=150";
|
||||
$daily_graph = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=211&height=100";
|
||||
$daily_url = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150";
|
||||
|
||||
$weekly_graph = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=211&height=100";
|
||||
$weekly_url = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=400&height=150";
|
||||
$weekly_graph = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=211&height=100";
|
||||
$weekly_url = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150";
|
||||
|
||||
$monthly_graph = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=$month&to=$now&width=211&height=100";
|
||||
$monthly_url = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=$month&to=$now&width=400&height=150";
|
||||
$monthly_graph = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=211&height=100";
|
||||
$monthly_url = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=400&height=150";
|
||||
|
||||
$yearly_graph = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=211&height=100";
|
||||
$yearly_url = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=400&height=150";
|
||||
$yearly_graph = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=".$config['time']['yearh']."&to=".$config['time']['now']."&width=211&height=100";
|
||||
$yearly_url = "graph.php?id=" . $proc['processor_id'] . "&type=".$graph_type."&from=".$config['time']['yearh']."&to=".$config['time']['now']."&width=400&height=150";
|
||||
|
||||
echo(" <a onmouseover=\"return overlib('<img src=\'$daily_url\'>', LEFT);\" onmouseout=\"return nd();\">
|
||||
<img src=\"$daily_graph\" border=\"0\"></a> ");
|
||||
|
||||
@@ -38,16 +38,16 @@ foreach (dbFetchRows($sql, $param) as $sensor)
|
||||
if ($sensor['sensor_current'] >= $sensor['sensor_limit']) { $alert = '<img src="images/16/flag_red.png" alt="alert" />'; } else { $alert = ""; }
|
||||
}
|
||||
|
||||
$weekly_sensor = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=500&height=150";
|
||||
$weekly_sensor = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=500&height=150";
|
||||
$sensor_popup = "<a href=\"graphs/id=" . $sensor['sensor_id'] . "/type=".$graph_type."/\" onmouseover=\"return overlib('<img src=\'$weekly_sensor\'>', LEFT);\" onmouseout=\"return nd();\">
|
||||
" . $sensor['sensor_descr'] . "</a>";
|
||||
|
||||
$sensor_day = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=300&height=100";
|
||||
$sensor_week = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=300&height=100";
|
||||
$sensor_month = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$month&to=$now&width=300&height=100";
|
||||
$sensor_year = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=300&height=100";
|
||||
$sensor_day = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=300&height=100";
|
||||
$sensor_week = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=300&height=100";
|
||||
$sensor_month = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=300&height=100";
|
||||
$sensor_year = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['year']."&to=".$config['time']['now']."&width=300&height=100";
|
||||
|
||||
$sensor_minigraph = "<img src='graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=100&height=20&bg=ffffff00'";
|
||||
$sensor_minigraph = "<img src='graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=100&height=20&bg=ffffff00'";
|
||||
$sensor_minigraph .= " onmouseover=\"return overlib('<div class=list-large>".$sensor['hostname']." - ".mres($sensor['sensor_descr']);
|
||||
$sensor_minigraph .= "</div><div style=\'width: 750px\'><img src=\'$sensor_day\'><img src=\'$sensor_week\'><img src=\'$sensor_month\'><img src=\'$sensor_year\'></div>', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\" >";
|
||||
|
||||
@@ -65,17 +65,17 @@ foreach (dbFetchRows($sql, $param) as $sensor)
|
||||
{
|
||||
echo("<tr></tr><tr class='health'><td colspan=7>");
|
||||
|
||||
$daily_graph = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=211&height=100";
|
||||
$daily_url = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=400&height=150";
|
||||
$daily_graph = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=211&height=100";
|
||||
$daily_url = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=400&height=150";
|
||||
|
||||
$weekly_graph = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=211&height=100";
|
||||
$weekly_url = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=400&height=150";
|
||||
$weekly_graph = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=211&height=100";
|
||||
$weekly_url = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=400&height=150";
|
||||
|
||||
$monthly_graph = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$month&to=$now&width=211&height=100";
|
||||
$monthly_url = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$month&to=$now&width=400&height=150";
|
||||
$monthly_graph = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=211&height=100";
|
||||
$monthly_url = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=400&height=150";
|
||||
|
||||
$yearly_graph = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=211&height=100";
|
||||
$yearly_url = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=400&height=150";
|
||||
$yearly_graph = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['yearh']."&to=".$config['time']['now']."&width=211&height=100";
|
||||
$yearly_url = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['yearh']."&to=".$config['time']['now']."&width=400&height=150";
|
||||
|
||||
echo("<a onmouseover=\"return overlib('<img src=\'$daily_url\'>', LEFT);\" onmouseout=\"return nd();\">
|
||||
<img src='$daily_graph' border=0></a> ");
|
||||
|
||||
@@ -27,10 +27,10 @@ foreach ($ports as $port)
|
||||
$graph_array = array();
|
||||
$graph_array['height'] = 100;
|
||||
$graph_array['width'] = 210;
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $port['interface_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
$graph_array['from'] = $day;
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
$graph_array['legend'] = "no";
|
||||
|
||||
$link_array = $graph_array;
|
||||
|
||||
@@ -58,8 +58,8 @@ foreach (dbFetchRows("SELECT * FROM pseudowires AS P, ports AS I, devices AS D W
|
||||
{
|
||||
$pw_a['width'] = "150";
|
||||
$pw_a['height'] = "30";
|
||||
$pw_a['from'] = $day;
|
||||
$pw_a['to'] = $now;
|
||||
$pw_a['from'] = $config['time']['day'];
|
||||
$pw_a['to'] = $config['time']['now'];
|
||||
$pw_a['bg'] = $bg;
|
||||
$types = array('bits','upkts','errors');
|
||||
foreach ($types as $graph_type)
|
||||
@@ -74,8 +74,8 @@ foreach (dbFetchRows("SELECT * FROM pseudowires AS P, ports AS I, devices AS D W
|
||||
{
|
||||
$pw_b['width'] = "150";
|
||||
$pw_b['height'] = "30";
|
||||
$pw_b['from'] = $day;
|
||||
$pw_b['to'] = $now;
|
||||
$pw_b['from'] = $config['time']['day'];
|
||||
$pw_b['to'] = $config['time']['now'];
|
||||
$pw_b['bg'] = $bg;
|
||||
$types = array('bits','upkts','errors');
|
||||
foreach ($types as $graph_type)
|
||||
|
||||
@@ -167,11 +167,11 @@ else
|
||||
// display overlib graphs
|
||||
|
||||
$graph_type = "bgp_updates";
|
||||
$local_daily_url = "graph.php?id=" . $peer['bgpPeer_id'] . "&type=" . $graph_type . "&from=$day&to=$now&width=500&height=150&&afi=ipv4&safi=unicast";
|
||||
$local_daily_url = "graph.php?id=" . $peer['bgpPeer_id'] . "&type=" . $graph_type . "&from=".$config['time']['day']."&to=".$config['time']['now']."&width=500&height=150&&afi=ipv4&safi=unicast";
|
||||
$localaddresslink = "<span class=list-large><a href='device/device=" . $peer['device_id'] . "/tab=routing/proto=bgp/' onmouseover=\"return overlib('<img src=\'$local_daily_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">" . $peer['bgpLocalAddr'] . "</a></span>";
|
||||
|
||||
$graph_type = "bgp_updates";
|
||||
$peer_daily_url = "graph.php?id=" . $peer['bgpPeer_id'] . "&type=" . $graph_type . "&from=$day&to=$now&width=500&height=150";
|
||||
$peer_daily_url = "graph.php?id=" . $peer['bgpPeer_id'] . "&type=" . $graph_type . "&from=".$config['time']['day']."&to=".$config['time']['now']."&width=500&height=150";
|
||||
$peeraddresslink = "<span class=list-large><a href='device/device=" . $peer['device_id'] . "/tab=routing/proto=bgp/' onmouseover=\"return overlib('<img src=\'$peer_daily_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">" . $peer['bgpPeerIdentifier'] . "</a></span>";
|
||||
|
||||
echo('<tr class="bgp"' . ($peer['alert'] ? ' bordercolor="#cc0000"' : '') . ($peer['disabled'] ? ' bordercolor="#cccccc"' : '') . ">");
|
||||
@@ -235,7 +235,7 @@ else
|
||||
{
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "218";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
echo('<tr></tr><tr class="bgp"' . ($bg_image ? ' background="'.$bg_image.'"' : '') . '"><td colspan="9">');
|
||||
|
||||
include("includes/print-graphrow.inc.php");
|
||||
|
||||
@@ -100,8 +100,8 @@ if($_GET['optb'] == "all" ) {
|
||||
case 'errors':
|
||||
$port['width'] = "130";
|
||||
$port['height'] = "30";
|
||||
$port['from'] = $day;
|
||||
$port['to'] = $now;
|
||||
$port['from'] = $config['time']['day'];
|
||||
$port['to'] = $config['time']['now'];
|
||||
$port['bg'] = "#".$bg;
|
||||
$port['graph_type'] = "port_".$_GET['optc'];
|
||||
echo("<div style='display: block; padding: 3px; margin: 3px; min-width: 135px; max-width:135px; min-height:75px; max-height:75px;
|
||||
|
||||
@@ -52,7 +52,7 @@ if ($_SESSION['userlevel'] >= '5')
|
||||
{
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $service['service_id'];
|
||||
$graph_array['type'] = "service_availability";
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
global $debug;
|
||||
|
||||
if ($config['enable_bgp'])
|
||||
{
|
||||
### Discover BGP peers
|
||||
@@ -113,21 +115,24 @@ if ($config['enable_bgp'])
|
||||
$safis[1] = "unicast";
|
||||
$safis[2] = "multicast";
|
||||
|
||||
if (!isset($peerIndexes))
|
||||
if (!isset($j_peerIndexes))
|
||||
{
|
||||
$j_bgp = snmpwalk_cache_multi_oid($device, "jnxBgpM2PeerTable", $jbgp, "BGP4-V2-MIB-JUNIPER", $config['install_dir']."/mibs/junos");
|
||||
|
||||
foreach ($j_bgp as $index => $entry)
|
||||
{
|
||||
switch ($entry['jnxBgpM2PeerRemoteAddrType'])
|
||||
{
|
||||
case 'ipv4':
|
||||
$ip = long2ip(hexdec($entry['jnxBgpM2PeerRemoteAddr']));
|
||||
if ($debug) { echo("peerindex for ipv4 $ip is " . $entry['jnxBgpM2PeerIndex'] . "\n"); }
|
||||
$j_peerIndexes[$ip] = $entry['jnxBgpM2PeerIndex'];
|
||||
break;
|
||||
case 'ipv6':
|
||||
$ip6 = trim(str_replace(' ','',$entry['jnxBgpM2PeerRemoteAddr']),'"');
|
||||
$ip6 = substr($ip6,0,4) . ':' . substr($ip6,4,4) . ':' . substr($ip6,8,4) . ':' . substr($ip6,12,4) . ':' . substr($ip6,16,4) . ':' . substr($ip6,20,4) . ':' . substr($ip6,24,4) . ':' . substr($ip6,28,4);
|
||||
$ip6 = Net_IPv6::compress($ip6);
|
||||
if ($debug) { echo("peerindex for ipv6 $ip6 is " . $entry['jnxBgpM2PeerIndex'] . "\n"); }
|
||||
$j_peerIndexes[$ip6] = $entry['jnxBgpM2PeerIndex'];
|
||||
break;
|
||||
default:
|
||||
@@ -146,7 +151,7 @@ if ($config['enable_bgp'])
|
||||
$j_afisafi[$index][] = $afisafi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
foreach ($j_afisafi[$j_peerIndexes[$peer['ip']]] as $afisafi)
|
||||
{
|
||||
list ($afi,$safi) = explode('.',$afisafi); $safi = $safis[$safi];
|
||||
|
||||
@@ -1191,15 +1191,6 @@ if ($config['memcached']['enable'])
|
||||
|
||||
# Set some times needed by loads of scripts (it's dynamic, so we do it here!)
|
||||
|
||||
## Please remove these where found replacing with $config['time']
|
||||
|
||||
$now = time();
|
||||
$day = time() - (24 * 60 * 60);
|
||||
$twoday = time() - (2 * 24 * 60 * 60);
|
||||
$week = time() - (7 * 24 * 60 * 60);
|
||||
$month = time() - (31 * 24 * 60 * 60);
|
||||
$year = time() - (365 * 24 * 60 * 60);
|
||||
|
||||
$config['time']['now'] = time();
|
||||
$config['time']['fourhour'] = time() - (4 * 60 * 60);
|
||||
$config['time']['sixhour'] = time() - (6 * 60 * 60);
|
||||
|
||||
739
mibs/ASTERISK-MIB
Normal file
739
mibs/ASTERISK-MIB
Normal file
@@ -0,0 +1,739 @@
|
||||
ASTERISK-MIB DEFINITIONS ::= BEGIN
|
||||
|
||||
IMPORTS
|
||||
OBJECT-TYPE, MODULE-IDENTITY, Integer32, Counter32, TimeTicks
|
||||
FROM SNMPv2-SMI
|
||||
|
||||
TEXTUAL-CONVENTION, DisplayString, TruthValue
|
||||
FROM SNMPv2-TC
|
||||
|
||||
digium
|
||||
FROM DIGIUM-MIB;
|
||||
|
||||
asterisk MODULE-IDENTITY
|
||||
LAST-UPDATED "200603061840Z"
|
||||
ORGANIZATION "Digium, Inc."
|
||||
CONTACT-INFO
|
||||
"Mark A. Spencer
|
||||
Postal: Digium, Inc.
|
||||
445 Jan Davis Drive
|
||||
Huntsville, AL 35806
|
||||
USA
|
||||
Tel: +1 256 428 6000
|
||||
Email: markster@digium.com
|
||||
|
||||
Thorsten Lockert
|
||||
Postal: Voop AS
|
||||
Boehmergaten 42
|
||||
NO-5057 Bergen
|
||||
Norway
|
||||
Tel: +47 5598 7200
|
||||
Email: tholo@voop.no"
|
||||
DESCRIPTION
|
||||
"Asterisk is an Open Source PBX. This MIB defined
|
||||
objects for managing Asterisk instances."
|
||||
REVISION "200603061840Z"
|
||||
DESCRIPTION
|
||||
"Change audio codec identification from 3kAudio to
|
||||
Audio3k to conform better with specification.
|
||||
|
||||
Expand on contact information."
|
||||
REVISION "200602041900Z"
|
||||
DESCRIPTION
|
||||
"Initial published revision."
|
||||
::= { digium 1 }
|
||||
|
||||
asteriskVersion OBJECT IDENTIFIER ::= { asterisk 1 }
|
||||
asteriskConfiguration OBJECT IDENTIFIER ::= { asterisk 2 }
|
||||
asteriskModules OBJECT IDENTIFIER ::= { asterisk 3 }
|
||||
asteriskIndications OBJECT IDENTIFIER ::= { asterisk 4 }
|
||||
asteriskChannels OBJECT IDENTIFIER ::= { asterisk 5 }
|
||||
|
||||
-- asteriskVersion
|
||||
|
||||
astVersionString OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Text version string of the version of Asterisk that
|
||||
the SNMP Agent was compiled to run against."
|
||||
::= { asteriskVersion 1 }
|
||||
|
||||
astVersionTag OBJECT-TYPE
|
||||
SYNTAX Unsigned32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"SubVersion revision of the version of Asterisk that
|
||||
the SNMP Agent was compiled to run against -- this is
|
||||
typically 0 for release-versions of Asterisk."
|
||||
::= { asteriskVersion 2 }
|
||||
|
||||
-- asteriskConfiguration
|
||||
|
||||
astConfigUpTime OBJECT-TYPE
|
||||
SYNTAX TimeTicks
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Time ticks since Asterisk was started."
|
||||
::= { asteriskConfiguration 1 }
|
||||
|
||||
astConfigReloadTime OBJECT-TYPE
|
||||
SYNTAX TimeTicks
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Time ticks since Asterisk was last reloaded."
|
||||
::= { asteriskConfiguration 2 }
|
||||
|
||||
astConfigPid OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The process id of the running Asterisk process."
|
||||
::= { asteriskConfiguration 3 }
|
||||
|
||||
astConfigSocket OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The control socket for giving Asterisk commands."
|
||||
::= { asteriskConfiguration 4 }
|
||||
|
||||
-- asteriskModules
|
||||
|
||||
astNumModules OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of modules currently loaded into Asterisk."
|
||||
::= { asteriskModules 1 }
|
||||
|
||||
-- asteriskIndications
|
||||
|
||||
astNumIndications OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of indications currently defined in Asterisk."
|
||||
::= { asteriskIndications 1 }
|
||||
|
||||
astCurrentIndication OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Default indication zone to use."
|
||||
::= { asteriskIndications 2 }
|
||||
|
||||
astIndicationsTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF AstIndicationsEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Table with all the indication zones currently know to
|
||||
the running Asterisk instance."
|
||||
::= { asteriskIndications 3 }
|
||||
|
||||
astIndicationsEntry OBJECT-TYPE
|
||||
SYNTAX AstIndicationsEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Information about a single indication zone."
|
||||
INDEX { astIndIndex }
|
||||
::= { astIndicationsTable 1 }
|
||||
|
||||
AstIndicationsEntry ::= SEQUENCE {
|
||||
astIndIndex Integer32,
|
||||
astIndCountry DisplayString,
|
||||
astIndAlias DisplayString,
|
||||
astIndDescription DisplayString
|
||||
}
|
||||
|
||||
astIndIndex OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Numerical index into the table of indication zones."
|
||||
::= { astIndicationsEntry 1 }
|
||||
|
||||
astIndCountry OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Country for which the indication zone is valid,
|
||||
typically this is the ISO 2-letter code of the country."
|
||||
::= { astIndicationsEntry 2 }
|
||||
|
||||
astIndAlias OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
""
|
||||
::= { astIndicationsEntry 3 }
|
||||
|
||||
astIndDescription OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Description of the indication zone, usually the full
|
||||
name of the country it is valid for."
|
||||
::= { astIndicationsEntry 4 }
|
||||
|
||||
-- asteriskChannels
|
||||
|
||||
astNumChannels OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Current number of active channels."
|
||||
::= { asteriskChannels 1 }
|
||||
|
||||
astChanTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF AstChanEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Table with details of the currently active channels
|
||||
in the Asterisk instance."
|
||||
::= { asteriskChannels 2 }
|
||||
|
||||
astChanEntry OBJECT-TYPE
|
||||
SYNTAX AstChanEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Details of a single channel."
|
||||
INDEX { astChanIndex }
|
||||
::= { astChanTable 1 }
|
||||
|
||||
AstChanEntry ::= SEQUENCE {
|
||||
astChanIndex Integer32,
|
||||
astChanName DisplayString,
|
||||
astChanLanguage DisplayString,
|
||||
astChanType DisplayString,
|
||||
astChanMusicClass DisplayString,
|
||||
astChanBridge DisplayString,
|
||||
astChanMasq DisplayString,
|
||||
astChanMasqr DisplayString,
|
||||
astChanWhenHangup TimeTicks,
|
||||
astChanApp DisplayString,
|
||||
astChanData DisplayString,
|
||||
astChanContext DisplayString,
|
||||
astChanMacroContext DisplayString,
|
||||
astChanMacroExten DisplayString,
|
||||
astChanMacroPri Integer32,
|
||||
astChanExten DisplayString,
|
||||
astChanPri Integer32,
|
||||
astChanAccountCode DisplayString,
|
||||
astChanForwardTo DisplayString,
|
||||
astChanUniqueId DisplayString,
|
||||
astChanCallGroup Unsigned32,
|
||||
astChanPickupGroup Unsigned32,
|
||||
astChanState INTEGER,
|
||||
astChanMuted TruthValue,
|
||||
astChanRings Integer32,
|
||||
astChanCidDNID DisplayString,
|
||||
astChanCidNum DisplayString,
|
||||
astChanCidName DisplayString,
|
||||
astChanCidANI DisplayString,
|
||||
astChanCidRDNIS DisplayString,
|
||||
astChanCidPresentation DisplayString,
|
||||
astChanCidANI2 Integer32,
|
||||
astChanCidTON Integer32,
|
||||
astChanCidTNS Integer32,
|
||||
astChanAMAFlags INTEGER,
|
||||
astChanADSI INTEGER,
|
||||
astChanToneZone DisplayString,
|
||||
astChanHangupCause INTEGER,
|
||||
astChanVariables DisplayString,
|
||||
astChanFlags BITS,
|
||||
astChanTransferCap INTEGER
|
||||
}
|
||||
|
||||
astChanIndex OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Index into the channel table."
|
||||
::= { astChanEntry 1 }
|
||||
|
||||
astChanName OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Name of the current channel."
|
||||
::= { astChanEntry 2 }
|
||||
|
||||
astChanLanguage OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Which language the current channel is configured to
|
||||
use -- used mainly for prompts."
|
||||
::= { astChanEntry 3 }
|
||||
|
||||
astChanType OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Underlying technology for the current channel."
|
||||
::= { astChanEntry 4 }
|
||||
|
||||
astChanMusicClass OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Music class to be used for Music on Hold for this
|
||||
channel."
|
||||
::= { astChanEntry 5 }
|
||||
|
||||
astChanBridge OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Which channel this channel is currently bridged (in a
|
||||
conversation) with."
|
||||
::= { astChanEntry 6 }
|
||||
|
||||
astChanMasq OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Channel masquerading for us."
|
||||
::= { astChanEntry 7 }
|
||||
|
||||
astChanMasqr OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Channel we are masquerading for."
|
||||
::= { astChanEntry 8 }
|
||||
|
||||
astChanWhenHangup OBJECT-TYPE
|
||||
SYNTAX TimeTicks
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"How long until this channel will be hung up."
|
||||
::= { astChanEntry 9 }
|
||||
|
||||
astChanApp OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Current application for the channel."
|
||||
::= { astChanEntry 10 }
|
||||
|
||||
astChanData OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Arguments passed to the current application."
|
||||
::= { astChanEntry 11 }
|
||||
|
||||
astChanContext OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Current extension context."
|
||||
::= { astChanEntry 12 }
|
||||
|
||||
astChanMacroContext OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Current macro context."
|
||||
::= { astChanEntry 13 }
|
||||
|
||||
astChanMacroExten OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Current macro extension."
|
||||
::= { astChanEntry 14 }
|
||||
|
||||
astChanMacroPri OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Current macro priority."
|
||||
::= { astChanEntry 15 }
|
||||
|
||||
astChanExten OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Current extension."
|
||||
::= { astChanEntry 16 }
|
||||
|
||||
astChanPri OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Current priority."
|
||||
::= { astChanEntry 17 }
|
||||
|
||||
astChanAccountCode OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Account Code for billing."
|
||||
::= { astChanEntry 18 }
|
||||
|
||||
astChanForwardTo OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Where to forward to if asked to dial on this
|
||||
interface."
|
||||
::= { astChanEntry 19 }
|
||||
|
||||
astChanUniqueId OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Unique Channel Identifier."
|
||||
::= { astChanEntry 20 }
|
||||
|
||||
astChanCallGroup OBJECT-TYPE
|
||||
SYNTAX Unsigned32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Call Group."
|
||||
::= { astChanEntry 21 }
|
||||
|
||||
astChanPickupGroup OBJECT-TYPE
|
||||
SYNTAX Unsigned32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Pickup Group."
|
||||
::= { astChanEntry 22 }
|
||||
|
||||
astChanState OBJECT-TYPE
|
||||
SYNTAX INTEGER {
|
||||
stateDown(0),
|
||||
stateReserved(1),
|
||||
stateOffHook(2),
|
||||
stateDialing(3),
|
||||
stateRing(4),
|
||||
stateRinging(5),
|
||||
stateUp(6),
|
||||
stateBusy(7),
|
||||
stateDialingOffHook(8),
|
||||
statePreRing(9)
|
||||
}
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Channel state."
|
||||
::= { astChanEntry 23 }
|
||||
|
||||
astChanMuted OBJECT-TYPE
|
||||
SYNTAX TruthValue
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Transmission of voice data has been muted."
|
||||
::= { astChanEntry 24 }
|
||||
|
||||
astChanRings OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of rings so far."
|
||||
::= { astChanEntry 25 }
|
||||
|
||||
astChanCidDNID OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Dialled Number ID."
|
||||
::= { astChanEntry 26 }
|
||||
|
||||
astChanCidNum OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Caller Number."
|
||||
::= { astChanEntry 27 }
|
||||
|
||||
astChanCidName OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Caller Name."
|
||||
::= { astChanEntry 28 }
|
||||
|
||||
astCanCidANI OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"ANI"
|
||||
::= { astChanEntry 29 }
|
||||
|
||||
astChanCidRDNIS OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Redirected Dialled Number Service."
|
||||
::= { astChanEntry 30 }
|
||||
|
||||
astChanCidPresentation OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number Presentation/Screening."
|
||||
::= { astChanEntry 31 }
|
||||
|
||||
astChanCidANI2 OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"ANI 2 (info digit)."
|
||||
::= { astChanEntry 32 }
|
||||
|
||||
astChanCidTON OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Type of Number."
|
||||
::= { astChanEntry 33 }
|
||||
|
||||
astChanCidTNS OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Transit Network Select."
|
||||
::= { astChanEntry 34 }
|
||||
|
||||
astChanAMAFlags OBJECT-TYPE
|
||||
SYNTAX INTEGER {
|
||||
Default(0),
|
||||
Omit(1),
|
||||
Billing(2),
|
||||
Documentation(3)
|
||||
}
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"AMA Flags."
|
||||
::= { astChanEntry 35 }
|
||||
|
||||
astChanADSI OBJECT-TYPE
|
||||
SYNTAX INTEGER {
|
||||
Unknown(0),
|
||||
Available(1),
|
||||
Unavailable(2),
|
||||
OffHookOnly(3)
|
||||
}
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Whether or not ADSI is detected on CPE."
|
||||
::= { astChanEntry 36 }
|
||||
|
||||
astChanToneZone OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Indication zone to use for channel."
|
||||
::= { astChanEntry 37 }
|
||||
|
||||
astChanHangupCause OBJECT-TYPE
|
||||
SYNTAX INTEGER {
|
||||
NotDefined(0),
|
||||
Unregistered(3),
|
||||
Normal(16),
|
||||
Busy(17),
|
||||
NoAnswer(19),
|
||||
Congestion(34),
|
||||
Failure(38),
|
||||
NoSuchDriver(66)
|
||||
}
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Why is the channel hung up."
|
||||
::= { astChanEntry 38 }
|
||||
|
||||
astChanVariables OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Channel Variables defined for this channel."
|
||||
::= { astChanEntry 39 }
|
||||
|
||||
astChanFlags OBJECT-TYPE
|
||||
SYNTAX BITS {
|
||||
WantsJitter(0),
|
||||
DeferDTMF(1),
|
||||
WriteInterrupt(2),
|
||||
Blocking(3),
|
||||
Zombie(4),
|
||||
Exception(5),
|
||||
MusicOnHold(6),
|
||||
Spying(7),
|
||||
NativeBridge(8),
|
||||
AutoIncrementingLoop(9)
|
||||
}
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Flags set on this channel."
|
||||
::= { astChanEntry 40 }
|
||||
|
||||
astChanTransferCap OBJECT-TYPE
|
||||
SYNTAX INTEGER {
|
||||
Speech(0),
|
||||
Digital(8),
|
||||
RestrictedDigital(9),
|
||||
Audio3k(16),
|
||||
DigitalWithTones(17),
|
||||
Video(24)
|
||||
}
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Transfer Capabilities for this channel."
|
||||
::= { astChanEntry 41 }
|
||||
|
||||
astNumChanTypes OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of channel types (technologies) supported."
|
||||
::= { asteriskChannels 3 }
|
||||
|
||||
astChanTypeTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF AstChanTypeEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Table with details of the supported channel types."
|
||||
::= { asteriskChannels 4 }
|
||||
|
||||
astChanTypeEntry OBJECT-TYPE
|
||||
SYNTAX AstChanTypeEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Information about a technology we support, including
|
||||
how many channels are currently using this technology."
|
||||
INDEX { astChanTypeIndex }
|
||||
::= { astChanTypeTable 1 }
|
||||
|
||||
AstChanTypeEntry ::= SEQUENCE {
|
||||
astChanTypeIndex Integer32,
|
||||
astChanTypeName DisplayString,
|
||||
astChanTypeDesc DisplayString,
|
||||
astChanTypeDeviceState Integer32,
|
||||
astChanTypeIndications Integer32,
|
||||
astChanTypeTransfer Integer32,
|
||||
astChanTypeChannels Gauge32
|
||||
}
|
||||
|
||||
astChanTypeIndex OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Index into the table of channel types."
|
||||
::= { astChanTypeEntry 1 }
|
||||
|
||||
astChanTypeName OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Unique name of the technology we are describing."
|
||||
::= { astChanTypeEntry 2 }
|
||||
|
||||
astChanTypeDesc OBJECT-TYPE
|
||||
SYNTAX DisplayString
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Description of the channel type (technology)."
|
||||
::= { astChanTypeEntry 3 }
|
||||
|
||||
astChanTypeDeviceState OBJECT-TYPE
|
||||
SYNTAX TruthValue
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Whether the current technology can hold device states."
|
||||
::= { astChanTypeEntry 4 }
|
||||
|
||||
astChanTypeIndications OBJECT-TYPE
|
||||
SYNTAX TruthValue
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Whether the current technology supports progress indication."
|
||||
::= { astChanTypeEntry 5 }
|
||||
|
||||
astChanTypeTransfer OBJECT-TYPE
|
||||
SYNTAX TruthValue
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Whether the current technology supports transfers, where
|
||||
Asterisk can get out from inbetween two bridged channels."
|
||||
::= { astChanTypeEntry 6 }
|
||||
|
||||
astChanTypeChannels OBJECT-TYPE
|
||||
SYNTAX Gauge32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of active channels using the current technology."
|
||||
::= { astChanTypeEntry 7 }
|
||||
|
||||
END
|
||||
17
mibs/DIGIUM-MIB
Normal file
17
mibs/DIGIUM-MIB
Normal file
@@ -0,0 +1,17 @@
|
||||
DIGIUM-MIB DEFINITIONS ::= BEGIN
|
||||
|
||||
IMPORTS
|
||||
enterprises
|
||||
FROM SNMPv2-SMI;
|
||||
|
||||
digium MODULE-IDENTITY
|
||||
LAST-UPDATED "200602041900Z"
|
||||
ORGANIZATION "Digium, Inc."
|
||||
CONTACT-INFO
|
||||
"Mark Spencer
|
||||
Email: markster@digium.com"
|
||||
DESCRIPTION
|
||||
""
|
||||
::= { enterprises 22736 }
|
||||
|
||||
END
|
||||
Reference in New Issue
Block a user