[ZBX-23766] ceph.osd.stats key broken Created: 2023 Nov 30  Updated: 2024 Aug 01  Resolved: 2024 Jul 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent2 plugin (G)
Affects Version/s: 6.0.23, 6.4.8
Fix Version/s: 6.0.27rc1, 6.4.12rc1, 7.0.0beta2, 7.0 (plan)

Type: Problem report Priority: Major
Reporter: Rudolfs Zvejs (Inactive) Assignee: Rudolfs Zvejs (Inactive)
Resolution: Fixed Votes: 0
Labels: Agent2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Team: Team INT
Story Points: 1

 Description   

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



 Comments   
Comment by Rudolfs Zvejs (Inactive) [ 2024 Feb 15 ]

Implemented in:

Generated at Mon May 19 06:27:32 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.