Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23766

ceph.osd.stats key broken

XMLWordPrintable

    • 1

      description


      Agent2 ceph plugin makes a API call to ceph restful module to collect data. For some reason API call to

      curl 'https://zabbix:[email protected]:8003/request?wait=20' \
        -X POST \ 
        -H "Content-Type: application/json" \
        -k \
        -d  '{"prefix": "pg dump", "format": "json"}'
      

      (same one that plugin makes) returns

       

      {
        "failed": [
          { "command": "pg dump format=json", "outb": "", "outs": "access denied" }
        ],
        "finished": [],
        "has_failed": true,
        "id": "140228453419272",
        "is_finished": true,
        "is_waiting": false,
        "running": [],
        "state": "failed",
        "waiting": []
      }
      

       

      Without doing deep research ceph documentation about the restful module does not seem to included any access scopes.

      The restful module however does include API routes specific for retrieving the data about osd (https://docs.ceph.com/en/latest/mgr/restful/)

      Figure out why is the API call failing, this will either require updating the documentation with additional setup steps to make the call go through or changes to the plugin to use appropriate API calls for data retrival.

      Also check all other ceph plugin keys, that they work

            rzvejs Rudolfs Zvejs
            rzvejs Rudolfs Zvejs
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: