Ad Widget

Collapse

Discussion thread for official Zabbix Template Ceph

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iwik.sk
    Junior Member
    • May 2020
    • 2

    #31
    I was searching how to monitor ceph in proxmox and found two ways.
    First is zabbix module in ceph, seems to be working, but in documentation it is marked as deprecated.
    Other option is zabbix-agent2 working using rest module and this template - but this is no win either - rest module in ceph is also deprecated - and it is not mentioned here in thread!


    Detailed changes: * Remove `restful` mgr module dir, * Remove Python depedencies (`pecan`, `werkzeug`) from ceph.spec and debian control, * Remove docs, * Remove associated QA tests, * Update vst...



    Comment

    • tompaah
      Junior Member
      • Jan 2025
      • 10

      #32
      I have the exact same problem as this post from 2024


      All checks done by zabbix_get or the Zabbix server return
      Code:
      ZBX_NOTSUPPORTED: Empty result
      except ceph.ping that returns
      Code:
      0
      .

      There really isn't much help in the zabbix_agent2.log, this is about what it says at loglevel=5
      Code:
      2026/01/21 15:12:13.710861 received passive check request from "{\"request\":\"passive checks\",\"data\":[{\"key\":\"ceph.ping[https://cephdash.mydomain:443,user,pass\",\"timeout\":30}]}": "10.0.0.210"
      2026/01/21 15:12:13.710946 [1] adding new request for key: 'ceph.ping[https://cephdash.mydomain:443,user,pass]'
      2026/01/21 15:12:13.710956 [1] created direct exporter task for plugin 'Ceph' itemid:0 key 'ceph.ping[https://cephdash.mydomain:443,user,pass]'
      2026/01/21 15:12:13.711000 executing direct exporter task for key 'ceph.ping[https://cephdash.mydomain:443,user,pass]'
      2026/01/21 15:12:13.719131 executed direct exporter task for key 'ceph.ping[[https://cephdash.mydomain:443 user pass]'
      The /etc/zabbix/zabbix_agent2.d/plugins.d/ceph.conf contains
      Code:
      Plugins.Ceph.InsecureSkipVerify=true
      Plugins.Ceph.KeepAlive=300
      Plugins.Ceph.Timeout=30
      I have verified that the Ceph API works by using a REST client (Insomnia) directly to it, using the same URI and authentication I try with Zabbix.
      It is able to authenticate and pull data successfully with the REST client.

      Requests to the Ceph API go through a proxy server so I can see what requests the Zabbix Ceph module is trying to do. Here's what it sends
      Code:
      10.0.0.210 - user [22/Jan/2026:17:03:33 +0100] "POST /request?wait=1 HTTP/1.1" 404 137 "-" "zbx_monitor"
      Note that the request is to an URL "/request?wait=1", this is not a valid URL at the Ceph API.
      Correct requests should be done to the "/api" endpoint, like what the log says when I'm authenticating and listing cephfs instances with Insomnia
      Code:
      192.168.1.22 - - [22/Jan/2026:17:07:10 +0100] "POST /api/auth HTTP/1.1" 201 1351 "-" "insomnia/12.2.0"
      192.168.1.22 - - [22/Jan/2026:17:07:04 +0100] "GET /api/cephfs HTTP/1.1" 200 2356 "-" "insomnia/12.2.0"

      Using Ceph 20.2.0 and Zabbix 7.4.6.

      EDIT:
      Okay so I finally found the problem, it's the incompatibility with Zabbix Agent2 and current versions of Ceph, where Ceph removed a function that was long announced to be deprecated. There is no solution to this except to wait for a new release (8) of the Agent2.
      Last edited by tompaah; Today, 18:29.

      Comment

      Working...