-
Problem report
-
Resolution: Unresolved
-
Trivial
-
7.0.11, 7.2.5
-
None
-
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.
- caused by
-
ZBXNEXT-6986 Implement audit for LLD rules
-
- Closed
-