Skip to content

Instantly share code, notes, and snippets.

@ThisIsAreku
Created August 9, 2020 14:53
Show Gist options
  • Save ThisIsAreku/313f1a291564ebff5cb8e8f1d48d0eb2 to your computer and use it in GitHub Desktop.
Save ThisIsAreku/313f1a291564ebff5cb8e8f1d48d0eb2 to your computer and use it in GitHub Desktop.
PFSense temperature to csv
#!/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