Add metrics of temperature obtained from S.M.A.R.T. to mackerel.
for Ubuntu/Debian
sudo apt-get -y install smartmontools
for CentOS
sudo yum -y install smartmontools
curl -o /usr/local/bin/mackerel-plugin-smart-temp https://raw.githubusercontent.com/masato-hi/mackerel-plugin-smart-temp/master/mackerel-plugin-smart-temp
chmod +x /usr/local/bin/mackerel-plugin-smart-temp
[plugin.metrics.smart-temp]
command = "mackerel-plugin-smart-temp"
service mackerel-agent reload
Bug reports and pull requests are welcome on GitHub at https://github.com/masato-hi/mackerel-plugin-smart-temp.
The script is available as open source under the terms of the MIT License.