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

add_alert_check issue

    XMLWordPrintable

Details

    Description

      Hello,

      On a new installation of Observium, we have a problem with the alerting module (*http://observium/add_alert_check/*).

      Cannot access offset of type string on string in /opt/observium/html/pages/add_alert_check.inc.php:46
      #0: (unknown function) called at [/opt/observium/html/pages/add_alert_check.inc.php:46]
      41:
      42: ksort($config['entities']);
      43:
      44: foreach ($config['entities'] as $entity_type => $entity_type_array) {
      45:
      46: if (!$entity_type_array['hide']) {
      47: //echo '<option value="' . generate_url(array('page' => 'group_add', 'entity_type' => $entity_type)) . '" ' . ($entity_type == $vars['entity_type'] ? ' selected' : '') . '>' . $entity_type . '</option>';
      48:
      49: echo '<btn class="btn" style="margin: 5px;"><a href="' . generate_url([ 'page' => 'add_alert_check', 'entity_type' => $entity_type ]) . '">' .
      50: get_icon($config['entities'][$entity_type]['icon']) . ' ' . nicecase($entity_type) . '</a></btn>';
      51:
      

      #1: include called at [/opt/observium/html/index.php:258]
      253: </div>
      254: </div>
      255: <div class="col-xl-8 col-lg-12">';
      256: }
      257:
      258: include($page_file);
      259: echo '</div>';
      260: }
      261:
      262: // Register default panel if custom not set
      263: if (!isset($GLOBALS['cache_html']['page_panel'])) { 
      

      Version Information :
      _Observium 25.7.14157 (stable) (30th July 2025)
      OS Linux 5.10.0-26-amd64 [amd64] (Debian 12)
      VM VMware Virtual Machine
      Apache 2.4.62 (Debian)
      PHP 8.2.29 (OPcache: Yes; FastCache: Yes, Apcu, 687kB) (Memory: 128MB)
      Python 3.11.2
      MariaDB 10.11.11-MariaDB-0+deb12u1 (extension: mysqli 8.2.29)
      SNMP NET-SNMP 5.9.3
      RRDtool 1.7.2 (rrdcached 1.7.2: unix:/var/run/rrdcached.sock)
      Fping 5.1 (IPv4 and IPv6)
      Fetch cURL 7.88.1 (OpenSSL/3.0.17, LibZ 1.2.13, LibIDN 2.3.3)_

      Thanks for your help.

      Attachments

        Activity

          People

            adama Adam Armstrong
            signet net_team
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: