Ad Widget

Collapse

Passing a request in URL with POST login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GeorgeMendes
    Junior Member
    • Jul 2019
    • 3

    #1

    Passing a request in URL with POST login

    Hello everyone,,

    I am trying to get a map and a screen displayed to non-authenticated users with guest login deactivated. The joy of dashboarding!

    I was hoping to use the api to get the full image of the map and the graphs, but there is no such option, so I am a bit stuck.
    The only alternative I found is using a back-end script to collect the PNG and store them on a server, and then display it.
    For this I am trying to use this path

    Code:

    HTML Code:
      https://zabbixserver/zabbix/index.php? name=username&password=Password&enter=Sign%20in&request=map.php?sysmapid=200200000000460&severity_min=2&fullscreen=1
    Unfotunately, the parameters after sysmapid=200200000000460 are read during the sign in and are not around when time comes to display the maps.

    Does anyone know how to get around this ?


    Thanks all for your help!!!!
    Last edited by vitalijs.m; 09-03-2020, 12:32.
  • gcalenko
    Zabbix developer
    • Mar 2017
    • 27

    #2
    You forgot to urlencode "request" argument, i think this should be correct link:

    https: // zabbixserver/zabbix/index.php?name=username&password=Password&enter=Si gn%20in&request=map.php%3Fsysmapid%3D2002000000004 60%26severity_min%3D2%26fullscreen%3D1

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #3
      Alternatively you can use "after login" feature to redirect user anywhere after logging in. That is configured per user in Administration -> Users:
      Click image for larger version  Name:	zabbix-user-after-login.png Views:	0 Size:	34.2 KB ID:	396619

      Comment

      Working...