Ad Widget

Collapse

Missing documentation for optional "host" part of "/host/key" function parameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neebygoosay
    Junior Member
    • Jul 2023
    • 3

    #1

    Missing documentation for optional "host" part of "/host/key" function parameter

    Hi Everyone.

    After spending a lot of time searching through the Zabbix documentation for versions 5.0 through 6.4 I was not able to find where it is documented, that one may omit the "host" part of the "/host/key" function parameter, i.e. it's possible to use "last(//agent.ping)" instead of "last(/host/agent.ping)" in a trigger expression. It doesn't help the matter that searching for special characters, a double slash in this case, is generally not possible, so I cannot search for "last(//" neither in Zabbix docs, nor here in the forum.

    Judging by the number of times I've seen people using "last(//..." in the forum posts, it seems to me that this is some sort of a universally known shortcut that was, perhaps, documented a long time ago for the first versions of Zabbix and lost during documentation updates.

    Where can I find the documentation for this?
    If one does not exist, what exactly does an omitted host part resolve to when, say, a "last" function of a trigger or a trigger prototype?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    I don't seem to be able to insert such trigger, which does not have hostname in it... So where exactly did you find, that it can be omitted?

    Comment

    Working...