Ad Widget

Collapse

Customize "Error" field for "Message Actions"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mtkali
    Junior Member
    • May 2013
    • 3

    #1

    Customize "Error" field for "Message Actions"

    Hello!

    For each event it is possible to view its details via Time link in events list. Is it possible to put some custom data into "Error" column in "Message Actions" section in that detailed view? Let's say we have an action defined, which fires an external script in order to send SMS. Beside of knowing that action has been taken without any issues I'd like to know what was the output of the external script. Is it possible to read that output (for example exit code of the script) and put it into "Error' field of "Message Actions" section?

    Regards,
    Mateus
    Attached Files
  • Heilig
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2013
    • 366

    #2
    If for some reason the message has not been sent, you will see there information about error.
    What you mean by "custom data"?

    Also, this information you can view in the audit.

    Comment

    • mtkali
      Junior Member
      • May 2013
      • 3

      #3
      By "custom data" I mean for example passing output data from alarm script (which is responsible for sending SMS) back to Zabbix and put this data into Error ccolumn of "Message Actions". We are talking about correct behaviour of script, which means that message was sent successfully. Is it possible to return some additional data from the script to Zabbbix?

      Regards,
      Mateusz

      Comment

      Working...