Ad Widget

Collapse

macro fields not populating from zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • orwin.lopes
    Junior Member
    • Jun 2019
    • 8

    #1

    macro fields not populating from zabbix

    i am trying to integrate zabbix to snow & for this i have created an action in the trigger actions i am setting the below but when passed they dont send the information :-

    Trigger: {TRIGGER.NAME}
    Trigger description: {TRIGGER.DESCRIPTION}
    Trigger severity: {TRIGGER.SEVERITY}
    Trigger nseverity: {TRIGGER.NSEVERITY}
    Trigger status: {TRIGGER.STATUS}
    Trigger URL: {TRIGGER.URL}
    Host: {HOST.HOST}
    Host description: {HOST.DESCRIPTION}
    Event age: {EVENT.AGE}
    Current Zabbix time: {DATE} {TIME}
  • zabbixhero
    Junior Member
    • Jul 2019
    • 1

    #2
    I am facing similar issue. I am passing macro as argument to a script. When I echo the arguments, macro names are displayed, not their value, so I think the literal macro name is being sent to the script and not its value.

    Comment

    • ingus.vilnis
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Mar 2014
      • 908

      #3
      Please see if the selected macros are supported in the locations where you expect to use them. https://www.zabbix.com/documentation...ed_by_location

      Comment

      • Howell20
        Junior Member
        • Jul 2019
        • 1

        #4
        Well in mine location it is not supported,,,Is there any way to make it support?If yes then pls post it here...Would love if i get a help here.Thanks My Wegmans Connect
        Last edited by Howell20; 25-07-2019, 06:38.

        Comment

        • splitek
          Senior Member
          • Dec 2018
          • 101

          #5
          Try to use other macros, ie:
          {TRIGGER.NAME} >>> {EVENT.NAME}
          {TRIGGER.SEVERITY} >>> {EVENT.SEVERITY}

          But in Actions Commands box I have something like this and this works:
          /tmp/send/wyslij.sh "{HOST.NAME}" "{EVENT.NAME}" "{ITEM.NAME}" "{ITEM.KEY}" "{ITEM.VALUE}"

          Comment


          • orwin.lopes
            orwin.lopes commented
            Editing a comment
            thanks it worked !!!
        Working...