Ad Widget

Collapse

Links in HTML emails doesn't work...

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alfista
    Senior Member
    • Mar 2017
    • 136

    #1

    Links in HTML emails doesn't work...

    Hi,

    I have now upgraded to the latest Zabbix 4.2.1 and try to set HTML emails. I have all set corectly, all is working but have problems with used links to Zabbix pages in the HTML emails. I take some ti to know that are needed to give login credentials to the links, which was posted only here on forums site.
    I try to connect to seme Zabbix pages:


    Code:
     http://IP/zabbix/history.php?action=showgraph&itemids[]=63205 http://IP/zabbix/index.php?name=user&password=passwd&enter=Sign%20in&request=history.php?action=showgraph&itemids[]=63205
    The first link is OK, but by seccont I receive only a page without any content while it will remove me this part of the link:


    Code:
     &itemids[]=63205
    And this happens by more pages (links) too, which has longer code, And I have the same problems with pictures, when I try to show it in emails and use the links from the zabbix server.

    I tried to get the used links directly from Zabbix when I opened the asked pages.

    All these started by me when I tried to add to the HTML event emails some pictures and graphs from Zabbix, that I can see all needed informations in email directly.

    Maybe you can also help me how can I show graphs directly in the email body without need to skip to the browser.

    Thanks for help.
  • Answer selected by Alfista at 29-09-2022, 11:54.
    Alfista
    Senior Member
    • Mar 2017
    • 136

    I receive an help and here is the solution:


    As a workaround, you can replace "&" symbol with "%26" starting with the 4th "&". i.e. replace this url:

    Code:
      
     http://IP/zabbix/index.php?name=user&password=passwd&enter=Sign%20in&request=tr_events.php?triggerid={TRIGGER.ID}&eventid={EVENT.ID}

    with this:

    Code:
      
     http://IP/zabbix/index.php?name=user&password=passwd&enter=Sign%20in&request=tr_events.php?triggerid={TRIGGER.ID}%26eventid={EVENT.ID}

    This is working.

    Comment

    • Alfista
      Senior Member
      • Mar 2017
      • 136

      #2
      I receive an help and here is the solution:


      As a workaround, you can replace "&" symbol with "%26" starting with the 4th "&". i.e. replace this url:

      Code:
        
       http://IP/zabbix/index.php?name=user&password=passwd&enter=Sign%20in&request=tr_events.php?triggerid={TRIGGER.ID}&eventid={EVENT.ID}

      with this:

      Code:
        
       http://IP/zabbix/index.php?name=user&password=passwd&enter=Sign%20in&request=tr_events.php?triggerid={TRIGGER.ID}%26eventid={EVENT.ID}

      This is working.

      Comment

      Working...