Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4673

discovery.php -h all | Stack Trace

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • None
    • Professional Edition
    • Discovery
    • 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))

      { 18: print_vars($lsps); 19: }

      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']))

      { 18: print_vars($valid['lsp']); 19: }

      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))

      { 216: discover_device($device, $options); 217: }

      else

      { 218: $string = "Device '" . $device['hostname'] . "' skipped, because switched off during runtime discovery process."; 219: print_debug($string); 220: logfile($argv[0] . ": $string"); 221: }

      Attachments

        Activity

          People

            landy Mike Stupalov
            U||er Ulrich Häberlein
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: