Ad Widget

Collapse

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #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


      #3
      Originally posted by Richi View Post
      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

      Announcement

      Collapse
      No announcement yet.
      Working...
      X