Created
October 21, 2015 09:57
-
-
Save prakash5331/4f81318a1e40373a4409 to your computer and use it in GitHub Desktop.
MRTG suncronization Issue in IXP-Manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* Smarty version Smarty-3.1-DEV, created on 2015-09-28 11:56:59 | |
compiled from "/usr/local/ixp/application/views/statistics-cli/mrtg/switch-aggregates.cfg" */ ?> | |
<?php /*%%SmartyHeaderCode:36168322856091cfba63fe6-19756584%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); | |
$_valid = $_smarty_tpl->decodeProperties(array ( | |
'file_dependency' => | |
array ( | |
'0394f5fc1ddc29ba498958436cbb70a65cdb92f6' => | |
array ( | |
0 => '/usr/local/ixp/application/views/statistics-cli/mrtg/switch-aggregates.cfg', | |
1 => 1442230711, | |
2 => 'file', | |
), | |
), | |
'nocache_hash' => '36168322856091cfba63fe6-19756584', | |
'function' => | |
array ( | |
), | |
'variables' => | |
array ( | |
'portsByInfrastructure' => 0, | |
'infra' => 0, | |
'TRAFFIC_TYPES' => 0, | |
'switch' => 0, | |
'trafficType' => 0, | |
'ttype' => 0, | |
'mrtglabel' => 0, | |
'options' => 0, | |
), | |
'has_nocache_code' => false, | |
'version' => 'Smarty-3.1-DEV', | |
'unifunc' => 'content_56091cfbb5aa40_29059235', | |
),false); /*/%%SmartyHeaderCode%%*/?> | |
<?php if ($_valid && !is_callable('content_56091cfbb5aa40_29059235')) {function content_56091cfbb5aa40_29059235($_smarty_tpl) {?> | |
##################################################################################################################### | |
##################################################################################################################### | |
##################################################################################################################### | |
### | |
### | |
### | |
### SWITCH AGGREGATE GRAPHS | |
### | |
### | |
### | |
##################################################################################################################### | |
##################################################################################################################### | |
##################################################################################################################### | |
<?php $_smarty_tpl->tpl_vars['infra'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['infra']->_loop = false; | |
$_smarty_tpl->tpl_vars['infraid'] = new Smarty_Variable; | |
$_from = $_smarty_tpl->tpl_vars['portsByInfrastructure']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} | |
foreach ($_from as $_smarty_tpl->tpl_vars['infra']->key => $_smarty_tpl->tpl_vars['infra']->value) { | |
$_smarty_tpl->tpl_vars['infra']->_loop = true; | |
$_smarty_tpl->tpl_vars['infraid']->value = $_smarty_tpl->tpl_vars['infra']->key; | |
?> | |
<?php $_smarty_tpl->tpl_vars['switch'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['switch']->_loop = false; | |
$_from = $_smarty_tpl->tpl_vars['infra']->value['switches']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} | |
foreach ($_from as $_smarty_tpl->tpl_vars['switch']->key => $_smarty_tpl->tpl_vars['switch']->value) { | |
$_smarty_tpl->tpl_vars['switch']->_loop = true; | |
?> | |
<?php $_smarty_tpl->tpl_vars['trafficType'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['trafficType']->_loop = false; | |
$_smarty_tpl->tpl_vars['ttype'] = new Smarty_Variable; | |
$_from = $_smarty_tpl->tpl_vars['TRAFFIC_TYPES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} | |
foreach ($_from as $_smarty_tpl->tpl_vars['trafficType']->key => $_smarty_tpl->tpl_vars['trafficType']->value) { | |
$_smarty_tpl->tpl_vars['trafficType']->_loop = true; | |
$_smarty_tpl->tpl_vars['ttype']->value = $_smarty_tpl->tpl_vars['trafficType']->key; | |
?> | |
##################################################################################################################### | |
# | |
# <?php echo $_smarty_tpl->tpl_vars['switch']->value['name'];?> | |
<?php echo $_smarty_tpl->tpl_vars['trafficType']->value['name'];?> | |
traffic | |
# | |
<?php $_smarty_tpl->tpl_vars['mrtglabel'] = new Smarty_variable("switch-aggregate-".((string)$_smarty_tpl->tpl_vars['switch']->value['name'])."-".((string)$_smarty_tpl->tpl_vars['ttype']->value), null, 0);?> | |
Target[<?php echo $_smarty_tpl->tpl_vars['mrtglabel']->value;?> | |
]: <?php echo implode($_smarty_tpl->tpl_vars['switch']->value['mrtgIds'][$_smarty_tpl->tpl_vars['ttype']->value],' + ');?> | |
MaxBytes[<?php echo $_smarty_tpl->tpl_vars['mrtglabel']->value;?> | |
]: <?php if ($_smarty_tpl->tpl_vars['ttype']->value=='bits') {?><?php echo $_smarty_tpl->tpl_vars['switch']->value['maxbytes'];?> | |
<?php } else { ?><?php echo round($_smarty_tpl->tpl_vars['switch']->value['maxbytes']/64);?> | |
<?php }?> | |
Title[<?php echo $_smarty_tpl->tpl_vars['mrtglabel']->value;?> | |
]: <?php echo $_smarty_tpl->tpl_vars['options']->value['identity']['orgname'];?> | |
- Peering <?php echo $_smarty_tpl->tpl_vars['trafficType']->value['name'];?> | |
/ second on <?php echo $_smarty_tpl->tpl_vars['switch']->value['name'];?> | |
Options[<?php echo $_smarty_tpl->tpl_vars['mrtglabel']->value;?> | |
]: <?php echo $_smarty_tpl->tpl_vars['trafficType']->value['options'];?> | |
YLegend[<?php echo $_smarty_tpl->tpl_vars['mrtglabel']->value;?> | |
]: <?php echo $_smarty_tpl->tpl_vars['trafficType']->value['name'];?> | |
/ Second | |
Directory[<?php echo $_smarty_tpl->tpl_vars['mrtglabel']->value;?> | |
]: switches | |
<?php } ?> | |
<?php } ?> | |
<?php } ?> | |
##################################################################################################################### | |
##################################################################################################################### | |
##################################################################################################################### | |
<?php }} ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment