When a log item key (also in prototypes) is updated for example from logrt.count to logrt , the agent gets confused and behaves as if it was still logrt.count
Steps to reproduce:
- create a logrt.count[...] item and run some tests
- change it to logrt[...] and specify the maxdelay parameter (this is not mandatory but makes the problem more evident)
Result:
agent is not fully aware of the change and keeps on returning log.count values. This may casue errors on server too like "unsupported value in options parameter". this happens because logrt.count expects an "option" where logrt[..] maxdelay is specified
according to the AI the bug is in "active_checks.c" near the following statements:
metric->flags |= ZBX_METRIC_FLAG_LOG_LOGRT
...and following ....
they are executed only on item creation and not on its update