Initial setup
I need to update the readme and migrate the data from the below reddit post https://www.reddit.com/r/PFSENSE/comments/fsss8r/additional_grafana_dashboard/
This commit is contained in:
BIN
plugins/telegraf_netifinfo_plugin
Executable file
BIN
plugins/telegraf_netifinfo_plugin
Executable file
Binary file not shown.
5
plugins/temperature.sh
Normal file
5
plugins/temperature.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
HOSTNAME=$(hostname)
|
||||
|
||||
sysctl dev.cpu | fgrep temperature | tr -d '[:blank:]' | awk -v HOST="$HOSTNAME" -F '[.:]' '{print "temperature,sensor="$2$3",host="HOST" degrees=" $5"."substr($6, 1, length($6)-1)}'
|
||||
sysctl hw.acpi.thermal | fgrep temperature | tr -d '[:blank:]' | awk -v HOST="$HOSTNAME" -F '[.:]' '{print "temperature,sensor="$4",host="HOST" degrees="$6"." substr($7, 1, length($7)-1)}'
|
Reference in New Issue
Block a user