Details
-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
Professional Edition
-
None
Description
Oops! Something went wrong! You may want to report this to the Observium developers.
count(): Argument #1 ($value) must be of type Countable|array, null given in /opt/observium/includes/discovery/lsp/mpls-mib.inc.php:21
Stack trace:
#0: (unknown function) called at [/opt/observium/includes/discovery/lsp/mpls-mib.inc.php:21]
16: $lsps = snmpwalk_cache_oid($device, "mplsLspInfoEntry", NULL, $mib, mib_dirs('juniper'));
17: if (OBS_DEBUG && count($lsps))
20:
21: if (count($lsps)) {
22: foreach ($lsps as $index => $lsp) {
23: $proto = "RSVP-TE";
24: $name = trim($lsp['mplsLspInfoName'], "."); // name has trailing \0's that are converted to dots by snmp
25: $state = $lsp['mplsLspInfoState'];
26: $uptime = timeticks_to_sec($lsp['mplsLspInfoTimeUp']);
#1: include called at [/opt/observium/includes/include-dir-mib.inc.php:32]
27:
28: if (is_file($inc_file)) {
29: print_cli_data_field("$mib ");
30:
31: $inc_start = microtime(TRUE); // MIB timing start
32: $inc_status = include($inc_file);
33: echo(PHP_EOL);
34:
35: if ($include_lib && is_file($inc_dir . '.lib.php')) {
36: // separated functions include, for exclude fatal redeclare errors
37: include_once($inc_dir . '.lib.php');
#2: include called at [/opt/observium/includes/discovery/lsp.inc.php:15]
10: *
11: */
12:
13: // Include all discovery modules
14: $include_dir = "includes/discovery/lsp";
15: include("includes/include-dir-mib.inc.php");
16:
17: if (OBS_DEBUG && count($valid['lsp']))
20:
#3: include called at [/opt/observium/includes/discovery/functions.inc.php:878]
873: $GLOBALS['module_stats'][$module] = [];
874: $valid[$module] = [];
875:
876: print_cli_heading("Module Start: %R" . $module);
877:
878: include("includes/discovery/$module.inc.php");
879:
880: $m_end = utime();
881: $GLOBALS['module_stats'][$module]['time'] = round($m_end - $m_start, 4);
882: print_module_stats($device, $module);
883: echo(PHP_EOL);
#4: discover_device called at [/opt/observium/discovery.php:216]
211:
212: foreach (dbFetchRows("SELECT * FROM `devices` WHERE `disabled` = 0 $where ORDER BY `last_discovered_timetaken` ASC", $params) as $device) {
213: // Additional check if device SNMPable, because during
214: // discovery many devices (long time), the some device can be switched off
215: if ($options['h'] === 'new' || is_snmpable($device))
else
{ 218: $string = "Device '" . $device['hostname'] . "' skipped, because switched off during runtime discovery process."; 219: print_debug($string); 220: logfile($argv[0] . ": $string"); 221: }