Skip to content

This script gathers HDD temperature information on a BSD system with smartctl and sends it via UDP to a InfluxDB database.

Notifications You must be signed in to change notification settings

jsaathof/monitor_bsd_hddtemp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

NAME

monitor_bsd_hddtemp.pl - Monitor HDD temperatures on FreeBSD systems

VERSION

Version 1.2 (November 2016)

SYNOPSYS

monitor_bsd_hddtemp.pl

DESCRIPTION

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.

NOTES

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.

AUTHOR

Jurriaan Saathof <[email protected]>

COPYRIGHT

Copyright 2016 Jurriaan Saathof

SEE ALSO

IO::Socket::INET(3pm), Sys::Hostname{3pm} https://www.influxdata.com/time-series-platform/ http://grafana.org http://www.freenas.org

About

This script gathers HDD temperature information on a BSD system with smartctl and sends it via UDP to a InfluxDB database.

Resources

Stars

Watchers

Forks

Packages

No packages published