monitor_bsd_hddtemp.pl - Monitor HDD temperatures on FreeBSD systems
Version 1.2 (November 2016)
monitor_bsd_hddtemp.pl
This script gathers HDD temperature information and sends it via UDP to an Influx time-series database. The data in the InfluxDB can be visualized in different ways like Grafana and Influx' own Chronograf.
The data is formatted specifically for the IndluxDB in the line protocol format. The line protocol supports tags to add information to the values. The hostname, the model, the serial number, the firmware version, GUID (or WWN if available) and the S.M.A.R.T. status are added as tags
The address and port of the InfluxDB server is configured in the hash for the settings at the top of the script. The influxDB database should be configured to accept data over UDP. See the InfluxDB documentation on how to do this.
This software has been tested on FreeNAS 9.10. It should work with other FreeBSD versions and maybe even on other BSD versions supporting smartctl and temperature monitoring.
Jurriaan Saathof <[email protected]>
Copyright 2016 Jurriaan Saathof
IO::Socket::INET(3pm), Sys::Hostname{3pm} https://www.influxdata.com/time-series-platform/ http://grafana.org http://www.freenas.org