[ZBX-19465] zabbix-agent2 (5.4.0) with ceph plugin fails to get ceph.osd.stats Created: 2021 May 26 Updated: 2025 Apr 11 Resolved: 2025 Apr 11 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Problem report | Priority: | Trivial |
Reporter: | Rudolf Kastl | Assignee: | Zabbix Support Team |
Resolution: | Fixed | Votes: | 4 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
rhel8 zabbix-5.4.0, zabbix-agent-5.4.0 |
Description |
Steps to reproduce:
Result: Access denied Expected: |
Comments |
Comment by Zeljko [ 2021 Oct 21 ] |
Hi all, I am facing this issue as wheel, any info on a possible resolution/fix? My zabbix server and client are 5.0.10 Regards |
Comment by Lapshin Sergey [ 2022 Jun 28 ] |
Hello, add permissions to ceph, I use ceph in docker, but should work on other installations too... example (mgr.ceph-111.fjiqar - you mgr id): ceph auth caps mgr.ceph-111.fjiqar mon 'allow *' osd 'allow *' mds 'allow *' and restart ceph mgr docker restart ceph-eca7f4e8-efdc-11ec-ba11-5254002ebac7-mgr-ceph-111-fjiqar curl: curl -X GET -d "{'prefix':'pg dump', 'format':'json','epoch': 0}" -k https://zabbix:[email protected]:8003/request?wait=1 | jq .[0].finished[0].outb response: "{\"pg_ready\":false,\"pg_map\":{\"version\":2,\"stamp\":\"2022-06-28T05:18:03.028384+0000\",\"last_osdmap_epoch\":0,\"last_pg_scan\":0,\"pg_stats_sum\":{\"stat_sum\":{\"num_bytes\":0,\"num_objects\":0,\"num_object_clones\":0,\"num_object_copies\":0,\"num_objects_missing_on_primary\":0,\"num_objects_missing\":0,\"num_objects_degraded\":0,\"num_objects_misplaced\":0,\"num_objects_unfound\":0,\"num_objects_dirty\":0,\"num_whiteouts\":0,\"num_read\":0,\"num_read_kb\":0,\"num_write\":0,\"num_write_kb\":0,\"num_scrub_errors\":0,\"num_shallow_scrub_errors\":0,\"num_deep_scrub_errors\":0,\"num_objects_recovered\":0,\"num_bytes_recovered\":0,\"num_keys_recovered\":0,\"num_objects_omap\":0,\"num_objects_hit_set_archive\":0,\"num_bytes_hit_set_archive\":0,\"num_flush\":0,\"num_flush_kb\":0,\"num_evict\":0,\"num_evict_kb\":0,\"num_promote\":0,\"num_flush_mode_high\":0,\"num_flush_mode_low\":0,\"num_evict_mode_some\":0,\"num_evict_mode_full\":0,\"num_objects_pinned\":0,\"num_legacy_snapsets\":0,\"num_large_omap_objects\":0,\"num_objects_manifest\":0,\..................... |