Ad Widget

Collapse

Zabbix API Request

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • checifaccioqua?
    Junior Member
    • Mar 2011
    • 14

    #1

    Zabbix API Request

    Hello, I want to send requests to the zabbix's API, only that I want to do every 30 seconds. Each time authentication is required? Or I can unary one for most popular?
    Thanks.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    No, you do not need to authenticate every time you use the API. Normally the work flow looks like:

    1. user.login in order to get "auth" token

    See: http://www.zabbix.com/documentation/1.8/api/user/login

    2. Do whatever you want using the "auth"

    Look at example: http://www.zabbix.com/documentation/...st/get#example

    3. user.logout
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • checifaccioqua?
      Junior Member
      • Mar 2011
      • 14

      #3
      Thanks a lot!!!

      Comment

      • checifaccioqua?
        Junior Member
        • Mar 2011
        • 14

        #4
        Another one ....... If I don't send the logout request?

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          The "auth" will stay valid for some time, depending on user auto-logout settings.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • checifaccioqua?
            Junior Member
            • Mar 2011
            • 14

            #6
            Originally posted by Alexei
            The "auth" will stay valid for some time, depending on user auto-logout settings.
            Where i getting this setting? In config file or Configuration->User from web?

            Thanks

            Comment

            Working...