Ad Widget

Collapse

Proxy API 1.9.5 Alpha

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rday
    Junior Member
    • Aug 2011
    • 3

    #1

    Proxy API 1.9.5 Alpha

    I am running 1.8.4 in production, but I really wanted to get the API features to create new proxies in code, which I found in 1.9.5alpha. I ported the class.cproxy.php over, and found a few problems with variables being treated as object properties when they are called statically (via call_user_func, am I using the right terminology?).

    I was able to get everything working as long as I import $USER_DETAILS from global and and set the self::$userData['type'] to match whats in the global USER_DETAILS. This seems to be playing with security settings that I know nothing about, so I figured I'd post here for feedback.

    So I am wondering if USER_DETAILS is going away? Or if this was just a problem because its an alpha version. Does my workaround seem ok? Am I going to run into problems because my Zabbix back end is really 1.8.4, but I'm kluding in 1.9.5a code?

    Please feel free to send me to the proper forum if this isn't it.. thanks!
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    interestingly, http://www.zabbix.com/documentation/...nges_1.8_-_2.0 and api documentation in general lack any information on this. could you please file a bugreport for the documentation part ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • rday
      Junior Member
      • Aug 2011
      • 3

      #3


      Report filed.

      FYI, after heavier usage my patch didn't hold up, so if anyone happens upon this thread, my solution isn't viable.

      Comment

      Working...