Created
August 9, 2020 14:53
-
-
Save ThisIsAreku/313f1a291564ebff5cb8e8f1d48d0eb2 to your computer and use it in GitHub Desktop.
PFSense temperature to csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sysctl -a | grep 'dev.cpu.*.temperature'|sed -E 's/dev\.cpu\.([0-9])\.temperature: ([0-9\.]+)C/temp,cpu\1,\2/'|echo -e "measurement,sensor,temp\n$(cat -)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment