{"id":5157,"date":"2023-06-28T14:46:05","date_gmt":"2023-06-28T13:46:05","guid":{"rendered":"http:\/\/roboblog.fatal-fury.de\/?p=5157"},"modified":"2023-06-28T14:46:05","modified_gmt":"2023-06-28T13:46:05","slug":"ganglia-ssd-metrics","status":"publish","type":"post","link":"http:\/\/roboblog.fatal-fury.de\/?p=5157","title":{"rendered":"Ganglia SSD Metrics"},"content":{"rendered":"<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\nGMETRIC=&quot;\/usr\/bin\/gmetric -c \/etc\/ganglia\/gmond.conf&quot;\r\nDEV=\/dev\/sda\r\n\r\ntemperature=$(sudo smartctl -A $DEV | grep Temperature_Celsius |  awk '{print $10}')\r\nReallocated_Sector_Ct=$(sudo smartctl -A $DEV | grep Reallocated_Sector_Ct |  awk '{print $10}')\r\nCurrent_Pending_Sector=$(sudo smartctl -A $DEV | grep Current_Pending_Sector |  awk '{print $10}')\r\nOffline_Uncorrectable=$(sudo smartctl -A $DEV | grep Offline_Uncorrectable |  awk '{print $10}')\r\nUDMA_CRC_Error_Count=$(sudo smartctl -A $DEV | grep UDMA_CRC_Error_Count |  awk '{print $10}')\r\nProgram_Fail_Count_Chip=$(sudo smartctl -A $DEV | grep Program_Fail_Count_Chip |  awk '{print $10}')\r\nErase_Fail_Count_Chip=$(sudo smartctl -A $DEV | grep Erase_Fail_Count_Chip |  awk '{print $10}')\r\nWear_Leveling_Count=$(sudo smartctl -A $DEV | grep Wear_Leveling_Count  |  awk '{print $10}')\r\nUsed_Rsvd_Blk_Cnt_Chip=$(sudo smartctl -A $DEV | grep Used_Rsvd_Blk_Cnt_Chip  |  awk '{print $10}')\r\nProgram_Fail_Cnt_Total=$(sudo smartctl -A $DEV | grep Program_Fail_Cnt_Total  |  awk '{print $10}')\r\nErase_Fail_Count_Total=$(sudo smartctl -A $DEV | grep Erase_Fail_Count_Total  |  awk '{print $10}')\r\n\r\necho &quot;temperature&quot; $temperature\r\necho &quot;Reallocated_Sector_Ct&quot; $Reallocated_Sector_Ct\r\necho &quot;Current_Pending_Sector&quot; $Current_Pending_Sector\r\necho &quot;Offline_Uncorrectable&quot; $Offline_Uncorrectable\r\necho &quot;UDMA_CRC_Error_Count&quot; $UDMA_CRC_Error_Count\r\necho &quot;Program_Fail_Count_Chip&quot; $Program_Fail_Count_Chip\r\necho &quot;Erase_Fail_Count_Chip&quot; $Erase_Fail_Count_Chip\r\necho &quot;Wear_Leveling_Count &quot; $Wear_Leveling_Count \r\necho &quot;Used_Rsvd_Blk_Cnt_Chip&quot; $Used_Rsvd_Blk_Cnt_Chip\r\necho &quot;Program_Fail_Cnt_Total&quot; $Program_Fail_Cnt_Total\r\necho &quot;Erase_Fail_Count_Total&quot; $Erase_Fail_Count_Total\r\n\r\n\r\n$GMETRIC  -t float -n &quot;Temperature&quot; -u &quot;Celcius&quot; -g &quot;SSD&quot; -v $temperature\r\n$GMETRIC  -t float -n &quot;Reallocated_Sector_Ct&quot; -g &quot;SSD&quot; -v $Reallocated_Sector_Ct\r\n$GMETRIC  -t float -n &quot;Current_Pending_Sector&quot; -g &quot;SSD&quot; -v $Current_Pending_Sector\r\n$GMETRIC  -t float -n &quot;Offline_Uncorrectable&quot; -g &quot;SSD&quot; -v $Offline_Uncorrectable\r\n$GMETRIC  -t float -n &quot;UDMA_CRC_Error_Count&quot; -g &quot;SSD&quot; -v $UDMA_CRC_Error_Count\r\n$GMETRIC  -t float -n &quot;Program_Fail_Count_Chip&quot; -g &quot;SSD&quot; -v $Program_Fail_Count_Chip\r\n$GMETRIC  -t float -n &quot;Erase_Fail_Count_Chip&quot; -g &quot;SSD&quot; -v $Erase_Fail_Count_Chip\r\n$GMETRIC  -t float -n &quot;Wear_Leveling_Count&quot; -g &quot;SSD&quot; -v $Wear_Leveling_Count\r\n$GMETRIC  -t float -n &quot;Used_Rsvd_Blk_Cnt_Chip&quot; -g &quot;SSD&quot; -v $Used_Rsvd_Blk_Cnt_Chip\r\n$GMETRIC  -t float -n &quot;Program_Fail_Cnt_Total&quot; -g &quot;SSD&quot; -v $Program_Fail_Cnt_Total\r\n$GMETRIC  -t float -n &quot;Erase_Fail_Count_Total&quot; -g &quot;SSD&quot; -v $Erase_Fail_Count_Total\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GMETRIC=&quot;\/usr\/bin\/gmetric -c \/etc\/ganglia\/gmond.conf&quot; DEV=\/dev\/sda temperature=$(sudo smartctl -A $DEV | grep Temperature_Celsius | awk '{print $10}') Reallocated_Sector_Ct=$(sudo smartctl -A $DEV | grep Reallocated_Sector_Ct | awk '{print $10}') Current_Pending_Sector=$(sudo smartctl -A $DEV | grep Current_Pending_Sector | awk '{print $10}') Offline_Uncorrectable=$(sudo smartctl -A $DEV | grep Offline_Uncorrectable | awk '{print $10}') UDMA_CRC_Error_Count=$(sudo smartctl -A $DEV | grep UDMA_CRC_Error_Count [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[18],"class_list":["post-5157","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-linux"],"_links":{"self":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/5157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5157"}],"version-history":[{"count":2,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/5157\/revisions"}],"predecessor-version":[{"id":5315,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/5157\/revisions\/5315"}],"wp:attachment":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5157"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}