https://github.com/aneisch/cacti-pi-cpu-temperature
Script to write pi CPU temp to rrd for cacti
https://github.com/aneisch/cacti-pi-cpu-temperature
Last synced: about 1 year ago
JSON representation
Script to write pi CPU temp to rrd for cacti
- Host: GitHub
- URL: https://github.com/aneisch/cacti-pi-cpu-temperature
- Owner: aneisch
- Created: 2014-06-15T23:37:56.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-15T23:55:37.000Z (about 12 years ago)
- Last Synced: 2025-02-17T10:51:43.052Z (over 1 year ago)
- Language: Shell
- Size: 293 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Cacti-Pi-CPU-Temperature
========================
Script to write pi CPU temp to rrd for cacti graph.
Requires working Cacti installation perferably hosted on the pi, 'bc' (sudo apt-get install bc), and rrdtool (should be installed automatically with cacti)
After creating a folder for the files to reside, create the RRD file with the following command in your directory:
rrdtool create pitemp.rrd --step 120 DS:pi1:GAUGE:200:U:U DS:pi2:GAUGE:200:U:U RRA:AVERAGE:0.5:1:12 RRA:AVERAGE:0.5:1:288 RRA:AVERAGE:0.5:12:168 RRA:AVERAGE:0.5:12:720 RRA:AVERAGE:0.5:288:365
You can import the graph and data template to cacti, you must manually create the device. Use the screenshot provided here as a template. After modifying the path to the rrd to suite your needs, make the script executable and use cron to run it automatically every two minutes. (Be sure not to change this interval or you will have to modify cacti settings, as well as recreate the rrd)