Skip to content

This script gathers CPU temperature information on a BSD system with sysctl and sends it via UDP to an InfluxDB database.

Notifications You must be signed in to change notification settings

jsaathof/monitor_bsd_cputemp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

NAME

monitor_bsd_cputemp.pl - Monitor CPU temperatures on FreeBSD systems

VERSION

Version 1.0 (September 2016)

SYNOPSYS

monitor_bsd_cputemp.pl

DESCRIPTION

This script gathers CPU 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 and the CPU (or core) ID 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 sysctl and temperature monitoring (also depends on CPU).

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 CPU temperature information on a BSD system with sysctl and sends it via UDP to an InfluxDB database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published