Ad Widget

Collapse

Nextcloud Template fails on XML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pitastic
    Junior Member
    • Jan 2024
    • 3

    #1

    Nextcloud Template fails on XML

    Hey there,

    thanks for this great piece of software.

    I am monitoring one of my hosts with a Nextcloud instance with the official Nextcloud Template on a dockered Zabbix 6.4. Most of the values are working great.

    However the item
    Code:
    Nextcloud:Get server information
    preprocesses an xml to jaon for all of its dependent items. For this item the error occurs, that Zabbix is not compiled with libxml2 support.

    I double checked with
    Code:
    ldd /usr/sbin/zabbix_server | grep xml
    (and …proxy) that there is libxml2 buildin. I can also test the item succesfully using zabbix server or one the proxys. But real checks always failing with the xml2 problem.

    Am I missing something or is thisma bug?
  • Pitastic
    Junior Member
    • Jan 2024
    • 3

    #2
    Affer a while a found two bugs. One in the Template and one in Zabbix Server.

    The Nextcloud Template uses an HTTP request to the API to get information as xml, tenaslate it to JSON and then use a lot of dependent items.

    The initial request and transformation from xml to json works well but the json path for some items are not correct (anymore) ‐ Bug #1

    The dependent item has nothing to do wirh xml (just the master item does) but when it fails, Zabbix Server shows "xml not supported" error - Bug #2
    Last edited by Pitastic; 12-02-2024, 18:36.

    Comment

    • Pitastic
      Junior Member
      • Jan 2024
      • 3

      #3
      I reimplemented the version checks for apps and additionally for the whole Nextcloud instance:

      Add parameters in
      Code:
      Nextcloud: Get server information
      Code:
      format=json          # (optional: delete the xml preprocessing)
      skipUpdate=false # (for instance updates)
      skipApps=false     # (for the original functionallity mentioned above)
      Customize the JSON path for the dependent item (optional, if you add instance updates)
      Code:
      $.ocs.data.nextcloud.system.update.available

      Comment


      • bruno79
        bruno79 commented
        Editing a comment
        Pitastic Hello

        Where exactly do you have to configure this?
    • chojin
      Member
      Zabbix Certified Specialist
      • Jul 2011
      • 64

      #4
      Pitastic : Thanks for your analysis of this problem. This problem still seems to exist in 7.4.0 version of the template and I did not find an active bug report about it so I submitted one: ZBX-26739

      Comment

      Working...