-
Type:
New Feature Request
-
Resolution: Done
-
Priority:
Minor
-
None
-
Affects Version/s: 2.4.5
-
Component/s: Agent (G), Frontend (F), Server (S)
It is sometimes useful to have an item echo back a particular value. Here is a short list of ideas:
- echo[] item can be used for concatenating strings: echo["{$SOFTWARE} {$VERSION}"];
- in low-level discovery, it can be used to echo a discovered value: echo["{#SOFTWARE.VERSION}"];
- in an issue like ZBXNEXT-2827, it can be used to work around places where a macro is not allowed, but an item is: echo["{HOST.NAME}"].
Another useful function would be a true() trigger function that would always be true. It is useful when we wish to trigger on any received value, for instance, errors in a log file. Currently, people have to use something like host:item.strlen()>0.