Ad Widget

Collapse

help ZabbixAPI

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jonathan57
    Junior Member
    • Jul 2013
    • 4

    #1

    help ZabbixAPI

    Hello,

    I am currently in the process of develop of a web interface using Zabbix API to generate pdf report. The goal is to have a web page
    to choose a host group, a server and a time period then click generate and have all graph from that server in a PDF file.

    Actually I integrate my php pages into Zabbix using a Screen with ressource URL (target is my application's URL)
    My application use a configuration file in which is declared a user/password who have access to Zabbix API.

    Now i would like to go further and retrieve the customer's credential who just logged into main zabbix interface, then pass these
    credentials to my app.
    That way, customer would only access his/her server(s) because right are granted via Zabbix.

    Can you tell me if it's possible ?

    Thank you in advance, Regards.

    PS : I use Zabbix 2.0.6 on Debian Wheezy
  • jonathan57
    Junior Member
    • Jul 2013
    • 4

    #2
    Can someone help me ?

    Comment

    • steveboyson
      Senior Member
      • Jul 2013
      • 582

      #3
      Originally posted by jonathan57
      Can someone help me ?
      You will not get the users's password in clear text since it is stored in encrypted form.

      It might be a better approach to let Zabbix generate all the output via the frontend, save it as a temporary file and pass that to ypur PDF engine?

      Don't know if that would work, though.

      Comment

      • jonathan57
        Junior Member
        • Jul 2013
        • 4

        #4
        Finaly I made a login form where someone can enter his/her login and password and if the function login of Zabbix api return 1, I put in a session variable the login and the password.

        Thanks for your help.

        Comment

        Working...