Commit version 24.12.13800
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
@ -7,7 +6,7 @@
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
* (c) 2018 Luis Balbinot <hades.himself AT gmail.com>
|
||||
*
|
||||
@ -15,14 +14,10 @@
|
||||
|
||||
// MPLS-MIB
|
||||
|
||||
if (!is_array($lsps_cache))
|
||||
{
|
||||
$lsps_cache = snmpwalk_cache_oid($device, "mplsLspInfoEntry", NULL, "MPLS-MIB", mib_dirs('juniper'));
|
||||
$polled = time();
|
||||
if (OBS_DEBUG && count($lsps_cache))
|
||||
{
|
||||
print_vars($lsps_cache);
|
||||
}
|
||||
if (!is_array($lsps_cache)) {
|
||||
$lsps_cache = snmpwalk_cache_oid($device, "mplsLspInfoEntry", [], "MPLS-MIB");
|
||||
$polled = time();
|
||||
print_debug_vars($lsps_cache);
|
||||
}
|
||||
|
||||
$entry = $lsps_cache[$lsp['lsp_index']];
|
||||
@ -36,6 +31,6 @@ $lsp['lsp_primary_uptime'] = timeticks_to_sec($entry['mplsLspInfoPrimaryTimeUp']
|
||||
$lsp['lsp_transitions'] = $entry['mplsLspInfoTransitions'];
|
||||
$lsp['lsp_path_changes'] = $entry['mplsLspInfoPathChanges'];
|
||||
|
||||
unset ($entry);
|
||||
unset($entry);
|
||||
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user