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

zabbix-agent2 ceph plugin ceph.df.details does not return proper percent_used per pool

XMLWordPrintable

    • Team INT
    • Sprint 103 (Aug 2023), Sprint 104 (Sep 2023)
    • 1

      Steps to reproduce:

      1.  Output of 
        ceph df detail -f json
        {"stats":{"total_bytes":384020542128128,"total_avail_bytes":146847923986432,"total_used_bytes":236689122107392,"total_used_raw_bytes":237172618141696,"total_used_raw_ratio":0.61760401725769043,"num_osds":100,"num_per_pool_osds":100},"stats_by_class":{"hdd":{"total_bytes":149767795507200,"total_avail_bytes":56009127165952,"total_used_bytes":93593364070400,"total_used_raw_bytes":93758668341248,"total_used_raw_ratio":0.62602692842483521},"ssd":{"total_bytes":234252746620928,"total_avail_bytes":90838796820480,"total_used_bytes":143095758036992,"total_used_raw_bytes":143413949800448,"total_used_raw_ratio":0.61221885681152344}},"pools":[{"name":"glance_pool","id":1,"stats":{"stored":67730913747557,"objects":8084276,"kb_used":198430993337,"bytes_used":203193337176677,"percent_used":0.68758738040924072,"max_avail":30774355034112,"quota_objects":0,"quota_bytes":0,"dirty":8084276,"rd":203499956129,"rd_bytes":15367259357197312,"wr":150701373,"wr_bytes":195993139089408,"compress_bytes_used":0,"compress_under_bytes":0,"stored_raw":203192739422821,"avail_raw":92323067350754}},{"name":"cinder_pool","id":2,"stats":{"stored":11153064872838,"objects":2700828,"kb_used":32698982319,"bytes_used":33483757894534,"percent_used":0.26615217328071594,"max_avail":30774355034112,"quota_objects":0,"quota_bytes":0,"dirty":2700828,"rd":131096996720,"rd_bytes":2854157822790656,"wr":110085329319,"wr_bytes":1994225782016000,"compress_bytes_used":0,"compress_under_bytes":0,"stored_raw":33459192482694,"avail_raw":92323067350754}},{"name":"nova_pool","id":3,"stats":{"stored":2267035900,"objects":565,"kb_used":6659740,"bytes_used":6819573244,"percent_used":7.3860952397808433e-05,"max_avail":30774355034112,"quota_objects":0,"quota_bytes":0,"dirty":565,"rd":801415630,"rd_bytes":1014221914112,"wr":757354308,"wr_bytes":12494521153536,"compress_bytes_used":0,"compress_under_bytes":0,"stored_raw":6801068028,"avail_raw":92323067350754}}]}
      1. Output of
        zabbix_agent2 -t ceph.df.details["localhost:8003","zabbix","{$CEPH.API.KEY}"]
        
        
      ceph.df.details[localhost:8003,zabbix,{$CEPH.API.KEY}][s|{"pools":{"cinder_pool":{"percent_used":0,"objects":2700348,"bytes_used":33478099716998,"rd_ops":131097973937,"rd_bytes":2854167607888896,"wr_ops":110086177173,"wr_bytes":1994239061645312,"stored_raw":33453536463750,"max_avail":30776729010176},"glance_pool":{"percent_used":1,"objects":8084276,"bytes_used":203193337176677,"rd_ops":203502055639,"rd_bytes":15367397057112064,"wr_ops":150701460,"wr_bytes":195993139178496,"stored_raw":203192739422821,"max_avail":30776729010176},"nova_pool":{"percent_used":0,"objects":565,"bytes_used":6819573244,"rd_ops":801415728,"rd_bytes":1014221914112,"wr_ops":757354406,"wr_bytes":12494521876480,"stored_raw":6801068028,"max_avail":30776729010176}},"rd_ops":335401445304,"rd_bytes":18222578886915072,"wr_ops":110994233039,"wr_bytes":2202726722700288,"num_pools":3,"total_bytes":384020542128128,"total_avail_bytes":146852942237696,"total_used_bytes":236683848986624,"total_objects":10785189}]

      zabbix_agent2 -t ceph.df.details["localhost:8003","zabbix","\{$CEPH.API.KEY}"]

      Result:

      In the ceph df details  output "used_percent" is a floating point number like e.g. for nova_pool -> "percent_used":7.3860952397808433e-05

      While the zabbix agent 2 returns with ceph.df.details for nova_pool -> "percent_used":0

      The two other pools show a similar symptom.

      Expected:
      Correct output of percent_used for each pool

            asebiskveradze Aleksandre Sebiskveradze
            che666 Rudolf Kastl
            Team INT
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: