Ad Widget

Collapse

Is there a way get trigger arguments passed to trigger fucntion?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mpolitaev
    Member
    • Jun 2015
    • 32

    #1

    Is there a way get trigger arguments passed to trigger fucntion?

    Hello team!

    I know there is macro ITEM.LASTVALUE which represent last value came into item which invoke trigger.

    But can i see with trigger like this:

    {Template App Zabbix Agent:agent.ping.nodata(5m)}=1

    Alert like this:

    "Zabbix agent unreachable TRIGGER.FUNCTION.ARGUMENT"

    TRIGGER.FUNCTION.ARGUMENT should be resolved to "5m" which is passed to trigger function "nodata()"

    Is there possible?

    Thank you.
  • Richi
    Junior Member
    • Jun 2017
    • 5

    #2
    Hi,

    as an possibility you could use a Macro for your Template.
    Template -- Macro:
    {$TRIGGER_NODATA_TIME}=>5m

    Trigger Name: "Zabbix agent unreachable {$TRIGGER_NODATA_TIME}"
    Item Setup: {Template App Zabbix Agent:agent.ping.nodata({$TRIGGER_NODATA_TIME})
    Trigger Condition: {Template App Zabbix Agent:agent.ping.nodata({$TRIGGER_NODATA_TIME})}=1

    Best Regards

    Comment

    • mpolitaev
      Member
      • Jun 2015
      • 32

      #3
      Originally posted by Richi
      Hi,

      as an possibility you could use a Macro for your Template.
      Template -- Macro:
      {$TRIGGER_NODATA_TIME}=>5m

      Trigger Name: "Zabbix agent unreachable {$TRIGGER_NODATA_TIME}"
      Item Setup: {Template App Zabbix Agent:agent.ping.nodata({$TRIGGER_NODATA_TIME})
      Trigger Condition: {Template App Zabbix Agent:agent.ping.nodata({$TRIGGER_NODATA_TIME})}=1

      Best Regards
      Thank you, I plan to do that, but curious if Zabbix has internal Macro.

      Zabbix don't has, right?

      Comment

      Working...