Ad Widget

Collapse

Macro in item key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • otheus
    Member
    • Mar 2009
    • 53

    #16
    Error in documentation??

    The 2.2 documentation https://www.zabbix.com/documentation...ed_by_location states that [tt]{HOSTNAME}[/tt] is depracated and [tt]{HOST.NAMEn}[/tt] should be used. But this is clearly wrong. With 3.0 server and 2.2 agent, the agent reports:

    HTML Code:
    1232:20161118:001106.254 item [vfs.check_write[/archive/xlog/{HOST.HOST1}]] error: special characters "\, ', ", `, *, ?, [, ], {, }, ~, $, !, &, ;, (, ), <, >, |, #, @, 0x0a" are not allowed in the parameters
    When I use [tt]{HOSTNAME}[/tt] in these items instead, everything works correctly. Note: these are custom items used in passive mode.

    Comment

    • glebs.ivanovskis
      Senior Member
      • Jul 2015
      • 237

      #17
      You should have used {HOST.HOST}, not {HOST.HOST1}. Neither {HOST.HOST1} nor {HOSTNAME1} will work in this context. The link you mentioned has some information on where macro index can be used.

      Comment

      Working...