Ad Widget

Collapse

Passing a request in URL with POST login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Matz13
    Junior Member
    • Oct 2015
    • 2

    #1

    Passing a request in URL with POST login

    Hi there,

    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:
    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!
    Mat
  • Matz13
    Junior Member
    • Oct 2015
    • 2

    #2
    any one has an idea ?

    Comment

    • mcxian
      Junior Member
      • Mar 2013
      • 10

      #3
      Seems to work if you urlencode the & characters so they are not interpreted by the login page. So something like:
      https://zabbix-server.place.example/...ord&enter=Sign in&request=zabbix.php?action=map.view%26sysmapid=1 %26fullscreen=1%26severity_min=0

      Comment

      • aigars.kadikis
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2018
        • 208

        #4
        Originally posted by mcxian
        Seems to work if you urlencode the & characters so they are not interpreted by the login page. So something like:
        https://zabbix-server.place.example/...ord&enter=Sign in&request=zabbix.php?action=map.view%26sysmapid=1 %26fullscreen=1%26severity_min=0
        Yes, I can confirm this solution works:
        Code:
        http://192.168.88.55/zabbix/index.php?name=Admin&password=zabbix&enter=Sign%20in&request=zabbix.php?action=dashboard.view%26ddreset=1
        To be specific I need to look after 'zabbix.php' and replace every '&' with '%26'.

        Regards,

        Comment

        • kloczek
          Senior Member
          • Jun 2006
          • 1771

          #5
          http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
          https://kloczek.wordpress.com/
          zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
          My zabbix templates https://github.com/kloczek/zabbix-templates

          Comment

          Working...