Ad Widget

Collapse

media type script : passing variables or macro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • icirco
    Junior Member
    • May 2021
    • 5

    #1

    media type script : passing variables or macro


    hello,

    I'm working on Zabbix 5.2
    I wrote a script : xxx.sh with 2 parameters
    This script is a script configured in my media type. I've configured an action with the operation "send message" by usin "Send only to "xxx" (my script)

    The script xxx.sh works and the parameters are well passing but it's passing {ACTION.NAME} and {HOST.NAME} as a value !

    Why I can't get the value of ACTION.NAME and HOST.NAME when this media is used ? I've tried with other variables but I never get the value of variables...
    Attached Files
  • icirco
    Junior Member
    • May 2021
    • 5

    #2
    hello,

    No one has any clue to use correctly variables? in a alertscripts ?

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #3
      Hi, please see the documentation in https://www.zabbix.com/documentation...ed_by_location to see which macros are usable as alert script parameters.

      Markku

      Comment

      Working...