initial commit; version 22.5.12042

This commit is contained in:
2022-12-12 23:28:25 -05:00
commit af1b03d79f
17653 changed files with 22692970 additions and 0 deletions

View File

@ -0,0 +1,31 @@
<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
*
*/
if (is_numeric($vars['id']))
{
$data = dbFetchRow("SELECT * FROM `eigrp_ports` WHERE `eigrp_port_id` = ?", array($vars['id']));
if (is_numeric($data['device_id']) && ($auth || device_permitted($data['device_id'])))
{
$device = device_by_id_cache($data['device_id']);
$port = get_port_by_id($data['port_id']);
$rrd_filename = get_rrd_path($device, "eigrp_port-".$data['eigrp_vpn']."-".$data['eigrp_as']."-".$port['ifIndex'].".rrd");
$title = generate_device_link($device);
$title .= " :: EIGRP :: Port :: " . escape_html($port['port_label']);
$auth = TRUE;
}
}
// EOF

View File

@ -0,0 +1,44 @@
<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
*
*/
$array = array('UMcasts' => array('descr' => 'Unreliable Mcast', 'colour' => '22FF22'),
'RMcasts' => array('descr' => 'Reliable Mcast', 'colour' => '0022FF'),
'UUcasts' => array('descr' => 'Unreliable Ucast', 'colour' => 'FF0000'),
'RUcasts' => array('descr' => 'Reliable Ucast', 'colour' => '00AAAA'),
'McastExcepts' => array('descr' => 'Mcast Excepts', 'colour' => 'FF00FF'),
'CRpkts' => array('descr' => 'CR Packets', 'colour' => 'FFA500'),
'AcksSuppressed' => array('descr' => 'Acks Suppressed', 'colour' => 'CC0000'),
'RetransSent' => array('descr' => 'Retransmits Sent', 'colour' => '0000CC'),
'OOSrvcd' => array('descr' => 'Out-of-Sequence', 'colour' => '0080C0'),
);
$i = 0;
if (rrd_is_file($rrd_filename))
{
foreach ($array as $ds => $entry)
{
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $entry['descr'];
$rrd_list[$i]['ds'] = $ds;
# $rrd_list[$i]['colour'] = $entry['colour'];
$i++;
}
} else { echo("file missing: $file"); }
$colours = "mixed";
$nototal = 1;
$unit_text = "Packets";
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
// EOF