Show cpu fan speed on dashboard

OS:- Ubuntu server 20.04
Webmin version:- 1.981
Virtualmin version:- 6.17

Hi,

How to add/show cpu fan speed, system fan speed and system temperature in dashboard?

Hi

Is it possible?

What’s the point? You’re not running a gaming rig. You can also check all of that with simple terminal commands.

Install app on your IOS/Android, there are several that will give you the stats you are looking for in a dashboard.

Which App in android?

JuiceSSH - Free SSH client for Android is a good option and very configurable with plugins.

I don’t want ssh

You can use https://www.nagios.org/ Nagios open source and not the commercial version. Just google around there are plenty scripts.

What is the sensors command output on the machine where you want to see CPU fan speed?

I do a sensors | grep fan

Would be nice though, to have an overview if one of the fans would be failing and not think about checking; problem is this will print all, even the ones that are not connected…

Though IPMI solves most of the hassle - that doesn’t mean that all the machines have it, that those do not require some stupid license, that people know hot to set it up and such.

Hello Ilia

You know I am waiting for your reply. Now I am very happy because my primary server has gone due to the CPU fan was not working. THIS HAPPENED JUST 5HR AGO. You should add in the Webmin dashboard near or under CPU temperature. I want to add all fan speed in the Webmin dashboard. I want it in this pc first. This is my sensors output

root@projectok:/home/server# sudo sensors-detect
# sensors-detect version 3.6.0
# Board: Intel Corporation DH61BF
# Kernel: 5.4.0-90-generic x86_64
# Processor: Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz (6/42/7)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): yes
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 16h thermal sensors...                           No
AMD Family 17h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Hygon Family 18h thermal sensors...                         No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 thermal sensor...                       No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): yes
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      Yes
Found `ITE IT8728F Super IO Sensors'                        Success!
    (address 0xa30, driver `it87')
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No

Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no): yes
Probing for `IPMI BMC KCS' at 0xca0...                      No
Probing for `IPMI BMC SMIC' at 0xca8...                     No

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (yes/NO): yes
Probing for `National Semiconductor LM78' at 0x290...       No
Probing for `National Semiconductor LM79' at 0x290...       No
Probing for `Winbond W83781D' at 0x290...                   No
Probing for `Winbond W83782D' at 0x290...                   No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): yes
Using driver `i2c-i801' for device 0000:00:1f.3: Intel Cougar Point (PCH)

Next adapter: SMBus I801 adapter at f040 (i2c-0)
Do you want to scan it? (yes/NO/selectively): yes
Client found at address 0x51
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)
Client found at address 0x53
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)

Next adapter: i915 gmbus ssc (i2c-1)
Do you want to scan it? (yes/NO/selectively): yes

Next adapter: i915 gmbus vga (i2c-2)
Do you want to scan it? (yes/NO/selectively): yes

Next adapter: i915 gmbus panel (i2c-3)
Do you want to scan it? (yes/NO/selectively): yes

Next adapter: i915 gmbus dpc (i2c-4)
Do you want to scan it? (yes/NO/selectively): yes

Next adapter: i915 gmbus dpb (i2c-5)
Do you want to scan it? (yes/NO/selectively): yes

Next adapter: i915 gmbus dpd (i2c-6)
Do you want to scan it? (yes/NO/selectively): yes

Next adapter: DPDDC-D (i2c-7)
Do you want to scan it? (yes/NO/selectively): yes


Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `it87':
  * ISA bus, address 0xa30
    Chip `ITE IT8728F Super IO Sensors' (confidence: 9)

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
coretemp
it87
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

Do you want to add these lines automatically to /etc/modules? (yes/NO)yes
Successful!

Monitoring programs won't work until the needed modules are
loaded. You may want to run '/etc/init.d/kmod start'
to load them.

Unloading cpuid... OK

What is sensors command output?

Please check

I don’t need an image, I need text, please.

Please check:

root@projectok:/home/server# sensors
it8728-isa-0a30
Adapter: ISA adapter
in0:         960.00 mV (min =  +2.88 V, max =  +0.38 V)  ALARM
in1:           1.49 V  (min =  +0.24 V, max =  +1.78 V)
in2:           2.94 V  (min =  +1.58 V, max =  +1.09 V)  ALARM
+3.3V:         3.29 V  (min =  +0.24 V, max =  +2.06 V)  ALARM
in4:           1.99 V  (min =  +2.84 V, max =  +2.46 V)  ALARM
in5:           1.06 V  (min =  +0.43 V, max =  +2.21 V)
in6:           2.22 V  (min =  +0.38 V, max =  +2.33 V)
3VSB:          3.26 V  (min =  +4.94 V, max =  +1.51 V)  ALARM
Vbat:          3.24 V
fan1:        2257 RPM  (min =   90 RPM)
fan3:           0 RPM  (min =   12 RPM)  ALARM
temp1:        +26.0°C  (low  =  -1.0°C, high = +127.0°C)  sensor = thermal diode
temp2:       -128.0°C  (low  =  -1.0°C, high = +127.0°C)  sensor = disabled
temp3:        -74.0°C  (low  =  -1.0°C, high = +127.0°C)  sensor = Intel PECI
intrusion0:  ALARM

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +27.8°C  (crit = +103.0°C)
temp2:        +29.8°C  (crit = +103.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +30.0°C  (high = +82.0°C, crit = +102.0°C)
Core 0:        +30.0°C  (high = +82.0°C, crit = +102.0°C)
Core 1:        +29.0°C  (high = +82.0°C, crit = +102.0°C)

The sensors command output is chaotic across systems. Although, I think we could safely extract fan data though.

I will update this ticket when I have a patch.

Ok. Thanks Ilia. Please update me.I want, you add in webmin dashboard permanently because if cpu fan is stop working then could save cpu.

Can we make sure this “feature” is capable of being turned off, Fan speed is the last thing I want to see filling up my screen space…

And if you haven’t guessed I think its a waste of time showing fan speed on the dash board, first lt is because I can see all temps and fan speeds etc in ILO and 2 it doesn’t stop you from loosing a CPU because you still have no idea if the fans are working or not unless you sit and look at the dash 24/7

I would prefer if the guys from VM would put their time to the release of Version 7

Thanks

1 Like

If the fan fails, the system BIOS will automatically shut the computer off. Don’t think so? Shut down your computer. Unplug the CPU fan. Try to turn your computer on. It will not.

Even if that wasn’t the case, you assume that you’d be sitting there staring at that screen watching that RPM meter the instant the fan failed. The odds of that are so astronomical it’s an exercise in futility to even compute them.

1 Like

@Shirehosting
There should be a feature to turn on and off. About ILO, but not all servers have ILO and through ILO you can’t see through remotely. My server is away from me for about 400KM.

@Gomez_Adams
As much as I know the system bios will automatically shut the computer off when the CPU goes to overheat or going temperate over the limit set in bios.

A small story.
Few days back my CPU was gone due to the stop working of CPU fan. When the CPU fan was stopped working. My server was still working till 2 days after stopping working on the CPU fan. When the CPU loads were 100% about 1 hr or more. The server was still running but I can’t access it then I unplugged the power and start again.This time server was not starting. Then I changed the CPU and run again.

BUT THIS DECISION DEPENDS UPON ALL