Ad Widget

Collapse

suggestion for actions associated with template items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mconigliaro
    Senior Member
    • Jun 2005
    • 116

    #1

    suggestion for actions associated with template items

    when adding new actions to template items, the message is pre-populated with something like this:

    Code:
    ------Latest data------
    
    Free disk space on /opt: {Host.Linux:diskfree[/opt].last(0)}  (latest value)
    Free disk space on /opt: {Host.Linux:diskfree[/opt].max(300)} (maximum value for last 5 min)
    Free disk space on /opt: {Host.Linux:diskfree[/opt].min(300)} (minimum value for last 5 min)
    
    ---------End--------
    any host linked to this template will inherit the same message, and this is fine. however, when an alert goes out for one of these hosts, the message you get is useless, because it contains no data. the reason is because Host.Linux is a template, and therefore, has no data associated with it.

    the workaround is to go into each action for a template and replace all instances of 'Host.Linux' with {HOSTNAME}. thus, {Host.Linux:diskfree[/opt].last(0)} becomes {{HOSTNAME}:diskfree[/opt].last(0)}

    it would be nice if zabbix did this substitution for you automatically whenever you worked on a template.
  • mconigliaro
    Senior Member
    • Jun 2005
    • 116

    #2
    i believe my problem is related to this bug:

    Comment

    Working...