Plugin for Monitoring CPU Temperature

Status
Not open for further replies.

wreuel

Dabbler
Joined
Oct 26, 2012
Messages
47
Hey guys,

I searched the web but not found, need a plugin to monitor the CPU temperature.
Does anyone have this plugin working?


Thank for your attention
 

BrianDMG

Explorer
Joined
Jan 19, 2013
Messages
70
If you set up the email report settings in FreeNAS, you can set your box to notify you by email if the temperature hits a threshold (defined by you), or if your box changes temperature by a certain amount (also set by you). I set it up using my Gmail account, it was super easy, and the results are perfect.
 

wreuel

Dabbler
Joined
Oct 26, 2012
Messages
47
If you set up the email report settings in FreeNAS, you can set your box to notify you by email if the temperature hits a threshold (defined by you), or if your box changes temperature by a certain amount (also set by you). I set it up using my Gmail account, it was super easy, and the results are perfect.

Brian, my email is set up, where I find the options to send over temperature?
 

BrianDMG

Explorer
Joined
Jan 19, 2013
Messages
70
If you look down the left column (in the GUI) near the bottom is another S.M.A.R.T. (that isn't S.M.A.R.T. Tests) you can click on to configure, that's where you set the thresholds and input your email address.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
That is incorrect advice. That S.M.A.R.T. is also for hard drive monitoring, not CPU monitoring. Read the manual.

As for checking CPU temperatures, there is no plugin or GUI part you can add, it would need to be a CRON job or script to monitor CPU Temps. Do a search in the forums for cpu temperature and I'm sure if you look hard enough, it will pop out. Or type a google search for 'freebsd cpu temp' and that should get you on the right track.
 

wreuel

Dabbler
Joined
Oct 26, 2012
Messages
47
That is incorrect advice. That S.M.A.R.T. is also for hard drive monitoring, not CPU monitoring. Read the manual.

As for checking CPU temperatures, there is no plugin or GUI part you can add, it would need to be a CRON job or script to monitor CPU Temps. Do a search in the forums for cpu temperature and I'm sure if you look hard enough, it will pop out. Or type a google search for 'freebsd cpu temp' and that should get you on the right track.

I found this command:

Code:
sysctl -a | grep tempe


this is the right command? I'm not home, so I could not test.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Yes, that is the command and will display all your CPU cores.
 

wreuel

Dabbler
Joined
Oct 26, 2012
Messages
47
Thank's joeschmuck, this code is work correctly...
 

MaIakai

Dabbler
Joined
Jan 24, 2013
Messages
25
ok now someone needs to setup a cron job to output this to a file, and then build a plugin to pull the data into a purdy graph
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
ok now someone needs to setup a cron job to output this to a file, and then build a plugin to pull the data into a purdy graph
I vote you do it and then post the PBI for us. I mean it sounds so easy, right?
 

George Kyriazis

Dabbler
Joined
Sep 3, 2013
Messages
42
Yes, that is the command and will display all your CPU cores.


Something must've changed. This no longer works on FreeNAS-9.2.1.5. There is no more temperature under the dev.cpu nodes:

[root@freenas ~]# sysctl dev.cpu.0
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.P000
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 3400
dev.cpu.0.freq_levels: 3400/20781 3100/15950 2800/12812 2450/11210 2400/8047 210
0/7041 2000/4916 1750/4301 1500/3687 1250/3072 1000/2458 750/1843 500/1229 250/6
14
dev.cpu.0.cx_supported: C1/1/0 C2/2/400
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% 0.00% last 522us
[root@freenas ~]#
 

George Kyriazis

Dabbler
Joined
Sep 3, 2013
Messages
42
What did it used to say?

On a previous FreeNAS installation that I have (8.2.0), it says:

[root@zodiac] ~# sysctl dev.cpu.0
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.P001
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 1500
dev.cpu.0.freq_levels: 1500/5200 1300/4331 1137/3789 1000/3102 875/2714 800/2125 700/1859 600/1593 500/1328 400/1062 300/796 200/531 100/265
dev.cpu.0.temperature: 52.5C
dev.cpu.0.cx_supported: C1/0
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% last 201us
[root@zodiac] ~#
Note that there is a dev.cpu.0.temperature entry, while on 9.2.1.5 there is none.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
I just checked mine and it's definitely there...
From 9.2.1.6-beta

[root@mini] ~# sysctl dev.cpu.0
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.coretemp.delta: 62
dev.cpu.0.coretemp.resolution: 1
dev.cpu.0.coretemp.tjmax: 98.0C
dev.cpu.0.coretemp.throttle_log: 0
dev.cpu.0.temperature: 36.0C
dev.cpu.0.freq: 2401
dev.cpu.0.freq_levels: 2401/11500 2400/10000 2300/9250 2200/8500 2100/7750 2000/7000 1900/6250 1800/5500 1700/4750 1600/4000 1500/3250 1400/2500 1300/1750 1200/1000 1050/875 900/750 750/625 600/500 450/375 300/250 150/125
dev.cpu.0.cx_supported: C1/1/1 C2/2/41
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% 0.00% last 425us

Note that alot of hardware doesn't report temperatures properly for FreeBSD to understand them(this is particularly so for AMD based and non-server grade motherboards).

What's your hardware?
 

George Kyriazis

Dabbler
Joined
Sep 3, 2013
Messages
42
I just checked mine and it's definitely there...
From 9.2.1.6-beta

[root@mini] ~# sysctl dev.cpu.0
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.coretemp.delta: 62
dev.cpu.0.coretemp.resolution: 1
dev.cpu.0.coretemp.tjmax: 98.0C
dev.cpu.0.coretemp.throttle_log: 0
dev.cpu.0.temperature: 36.0C
dev.cpu.0.freq: 2401
dev.cpu.0.freq_levels: 2401/11500 2400/10000 2300/9250 2200/8500 2100/7750 2000/7000 1900/6250 1800/5500 1700/4750 1600/4000 1500/3250 1400/2500 1300/1750 1200/1000 1050/875 900/750 750/625 600/500 450/375 300/250 150/125
dev.cpu.0.cx_supported: C1/1/1 C2/2/41
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% 0.00% last 425us

Note that alot of hardware doesn't report temperatures properly for FreeBSD to understand them(this is particularly so for AMD based and non-server grade motherboards).

What's your hardware?


It's an AMD Kaveri (A10-7700K) on an MSI A88XM-E45 motherboard.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Well, that's probably your answer unfortunately. :(
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Well, the problem is that Intel provides a spec for monitoring temps and they have provided developers to handle that code. AMD is much less supportive of anything that isn't Windows. But, the fact that I said AMD as well as non-server boards are often a problem and your setup is both of those I think the answer is fairly likely.

So statistically your problem is probably related to owning AMD. I'm not sure how much more in-depth you can go though as it should be something that "works" or "doesn't work". AMDs seem to just have weird quirks. I've avoided AMDs for quite a few years now because Intel just flat out provides better software support for their hardware.

This isn't fanboy-ism or anything like that. 2 summers ago AMD laid off 1/2 of their developers that maintained open-source software like FreeBSD, Linux, etc. You can't do that kind of thing and expect quality to remain. And believe me, people have noticed.
 
Status
Not open for further replies.
Top