Ad Widget

Collapse

Adding url in action message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alex_SYB
    Senior Member
    • Feb 2012
    • 133

    #1

    Adding url in action message

    Hi

    I recently found out how to add a link in the email that goes out to people which links back to the zabbix server web interface and to the particular event. but how can I get say to last data for a particular host.

    So for a triggered event what macro and what uri would I use

    say the base zabbix url is


    and where can I find what these url's are
  • Alex_SYB
    Senior Member
    • Feb 2012
    • 133

    #2
    I checked out the web interface

    seem to be zabbix/latest.php?hostid=@hostid

    Comment

    • Pada
      Senior Member
      • Apr 2012
      • 236

      #3
      Try using something like the following:
      Code:
      http://zabbix.abc.net/history.php?action=showgraph&itemid={ITEM.ID1}
      Please just take note that the {ITEM.ID<1-9} macro is only available from v1.8.12 onwards: http://www.zabbix.com/documentation/.../config/macros

      Unfortunately I don't think there is a macro for getting the Host ID in an action message to make up an URL like Alex_SYB mentioned.
      eg:
      Code:
      http://zabbix.abc.net/latest.php?open=1&hostid={HOST.ID}
      Here is the list of macro's for v2.0: http://www.zabbix.com/documentation/...ed_by_location
      Last edited by Pada; 16-11-2012, 12:22.

      Comment

      • Alex_SYB
        Senior Member
        • Feb 2012
        • 133

        #4
        yep no host.id only available in maps

        maybe worth a jira as a feature request !

        Comment

        Working...