Ad Widget

Collapse

macro like $1 in trigger name but for key parameter?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #1

    macro like $1 in trigger name but for key parameter?

    I'm using Zabbix 2.0.4.

    I know that $1 through $9 can be used in trigger names to reference *constants* in the trigger expression, as described in the 2.0 manual.

    That's very useful, but what I'm wondering is if I there is a way to use macros to match *parameters* to the item key.

    For example, if the trigger expression is

    Code:
    {host.example.com:vfs.fs.size[/var,pused].last(0)}>98.0
    I know that "$1" evaluates to 98.0, however I'm looking for something like

    Code:
    {HOST.NAME} {KEY1.PARAM1} full
    This would end up evaluating to

    host.example.com /var full

    Is there anything like that? I'm not seeing it and it seems like it would be very handy.

    Thanks,

    Tim
  • pintonunes
    Junior Member
    • Feb 2010
    • 4

    #2
    Hi Tim,

    Did you found the answer for your question?

    Thats a feature that I like to use very much now with LLD and everything new in 2.2.0.

    I have LLD for windows services and like to have an action to restart the service. But I need the service name. Service name is a parameter of the item...

    So I need something like "cmd /c net start {ITEM.KEY.PARAM}"

    Thanks,

    Pedro

    Comment

    Working...