Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26252

A PHP runtime error occurs when attempting to add a discovery rule at the template level

XMLWordPrintable

    • Sprint candidates

      Steps to reproduce:

      • Create an empty template and link it to an empty host.
      • On the host, create a lld-rule filling in only the required fields (filters should remain empty).
      • Go back to the template and create the same lld-rule there.

      Result:
      The lld-rule is added and successfully linked to the host-level rule, but several PHP runtime errors are displayed.

       - Undefined array key "evaltype" [host_discovery.php:604 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CDiscoveryRule->create() → CDiscoveryRule::inherit() → CDiscoveryRule::inheritChunk() → CDiscoveryRule::updateForce() → CDiscoveryRule::updateItemFilters() → CDiscoveryRule::updateFilters() in include/classes/api/services/CDiscoveryRule.php:1992]
       - Undefined array key "evaltype" [host_discovery.php:604 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CDiscoveryRule->create() → CDiscoveryRule::inherit() → CDiscoveryRule::inheritChunk() → CDiscoveryRule::updateForce() → CDiscoveryRule::updateItemFilters() → CDiscoveryRule::updateFilters() in include/classes/api/services/CDiscoveryRule.php:1993]
       - Undefined array key "evaltype" [host_discovery.php:604 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CDiscoveryRule->create() → CDiscoveryRule::inherit() → CDiscoveryRule::inheritChunk() → CDiscoveryRule::updateForce() → CDiscoveryRule::updateItemFilters() → CDiscoveryRule::updateFilters() in include/classes/api/services/CDiscoveryRule.php:1996]

      Expected:
      No errors should occur.

            vmaksimovs Vladimirs Maksimovs
            sasha Alexander Vladishev
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: