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

Alert -> VRF unknown function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • None
    • Professional Edition
    • Web Interface
    • None

    Description

      Observium 24.1.13267

      Getting this error when clicking on Add Alerts -> VRF

      https://observium.XXXXXXX/add_alert_check/entity_type=vrf/

      array_merge(): Argument #2 must be of type array, null given in /opt/observium/includes/alerts.inc.php:2887
      #0: (unknown function) called at [/opt/observium/includes/alerts.inc.php:2887]
      2882: 'group_id' => [ 'label' => 'Group', 'descr' => 'Group Membership', 'type' => 'string', 'values' => 'group' ],
      2883: 'group' => [ 'label' => 'Group (Free)', 'descr' => 'Group Membership', 'type' => 'string', 'operators' => 'match, notmatch' ]
      2884: ];
      2885: //$config['entities'][$entity]['attribs']['group_id'] = array('label' => 'Group', 'descr' => 'Group Membership', 'type' => 'string', 'values' => 'group');
      2886: //$config['entities'][$entity]['attribs']['group'] = array('label' => 'Group (Free)', 'descr' => 'Group Membership', 'type' => 'string', 'operators' => 'match, notmatch');
      2887: $def[$type] = array_merge($add_group, $def[$type]);
      2888: }
      2889:
      2890: foreach ($def[$type] as $attrib_id => $attrib) {
      2891: $attrib['entity_type'] = $entity_type;
      2892: $attrib['attrib_id'] = $attrib_id;
      #1: array_merge called at [/opt/observium/includes/alerts.inc.php:2887]
      2882: 'group_id' => [ 'label' => 'Group', 'descr' => 'Group Membership', 'type' => 'string', 'values' => 'group' ],
      2883: 'group' => [ 'label' => 'Group (Free)', 'descr' => 'Group Membership', 'type' => 'string', 'operators' => 'match, notmatch' ]
      2884: ];
      2885: //$config['entities'][$entity]['attribs']['group_id'] = array('label' => 'Group', 'descr' => 'Group Membership', 'type' => 'string', 'values' => 'group');
      2886: //$config['entities'][$entity]['attribs']['group'] = array('label' => 'Group (Free)', 'descr' => 'Group Membership', 'type' => 'string', 'operators' => 'match, notmatch');
      2887: $def[$type] = array_merge($add_group, $def[$type]);
      2888: }
      2889:
      2890: foreach ($def[$type] as $attrib_id => $attrib) {
      2891: $attrib['entity_type'] = $entity_type;
      2892: $attrib['attrib_id'] = $attrib_id;
      #2: generate_querybuilder_filters called at [/opt/observium/includes/alerts.inc.php:2930]
      2925: });";
      2926:
      2927: register_html_resource('script', $rulescript);
      2928: }
      2929:
      2930: $filters = ' [ ' . implode(', ', generate_querybuilder_filters($entity_type, $type)) . ' ] ';
      2931:
      2932: //$form_id = 'builder-'.$entity_type.'-'.$type;
      2933:
      2934: echo('
      2935:
      #3: generate_querybuilder_form called at [/opt/observium/html/pages/add_alert_check.inc.php:373]
      368:
      369: $form_id = 'rules-' . random_string(8);
      370:
      371: echo '<div id="' . $form_id . '"></div>';
      372:
      373: generate_querybuilder_form($vars['entity_type'], 'attribs', $form_id, $alert_dupe['alert_assoc']);
      374:
      375: // generate_querybuilder_form($vars['entity_type'], 'metrics');
      376:
      377:
      378: $footer_content = '
      #4: include called at [/opt/observium/html/index.php:253]
      248: </div>
      249: </div>
      250: <div class="col-xl-8 col-lg-12">';
      251: }
      252:
      253: include($page_file);
      254: echo '</div>';
      255: }
      256:
      257: // Register default panel if custom not set
      258: if (!isset($GLOBALS['cache_html']['page_panel'])) {
      

      Attachments

        Activity

          People

            landy Mike Stupalov
            tromp Tromp Wezelman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: