Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
temperature sensors - get the data from OPNsense on regular basis - CLI or API
« previous
next »
Print
Pages: [
1
]
Author
Topic: temperature sensors - get the data from OPNsense on regular basis - CLI or API (Read 933 times)
zyghom
Newbie
Posts: 22
Karma: 0
temperature sensors - get the data from OPNsense on regular basis - CLI or API
«
on:
April 11, 2024, 09:10:56 am »
hi there,
I am trying to figure out if I need a fan or not but one thing that does not help me is: the cpu temperatures shown in the report on GUI are not showing trends - only the status at this particular moment:
Is there any way to have it exported on regular basis?
I tried Monit and Telegraf but it seems this information is not there.
Any other way?
thx
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: temperature sensors - get the data from OPNsense on regular basis - CLI or API
«
Reply #1 on:
April 11, 2024, 11:34:50 am »
No, the UI is only point in time.
Best way is with telegraf which you seem to have. What you're missing is the right sensor setup. You might need to use inputs.exec
https://github.com/influxdata/telegraf/blob/master/plugins/inputs/exec/README.md
Logged
zyghom
Newbie
Posts: 22
Karma: 0
Re: temperature sensors - get the data from OPNsense on regular basis - CLI or API
«
Reply #2 on:
April 11, 2024, 11:40:30 am »
thank you @cookiemonster, I shall try, I think I know how to ;-)
Logged
zyghom
Newbie
Posts: 22
Karma: 0
Re: temperature sensors - get the data from OPNsense on regular basis - CLI or API
«
Reply #3 on:
April 11, 2024, 03:27:55 pm »
it looks like I succeeded - thank you again
with small caviat: to get disks temperature I, the command:
Code:
[Select]
smartctl -a /dev/ada1 | grep Temperat | awk '{ print $10 }'
requires root priviledges so I did not get it yet how to. But for CPU/ACPI the user telegraf is enough to get the data (without and with fan installed):
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: temperature sensors - get the data from OPNsense on regular basis - CLI or API
«
Reply #4 on:
April 11, 2024, 04:22:44 pm »
Nice!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
temperature sensors - get the data from OPNsense on regular basis - CLI or API