THIS ARTICLE WAS MIGRATED TO ZENDESK ON MARCH 14 2023: https://exxactcorporation.zendesk.com/hc/en-us/articles/22025125770647-Monitoring-Your-System-Using-psensor
Hardware temperature and fan monitor tool for local GUI. DOES NOT WORK if you are SSH'ed to the system.
How to install psensor
Example installation in Ubuntu 20.04
root@rdlab:/home/exx# apt install psensor
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
eatmydata libeatmydata1 libnetplan0 python3-importlib-metadata python3-jinja2 python3-json-pointer python3-jsonpatch python3-jsonschema python3-more-itertools
python3-pyrsistent python3-zipp
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libxnvctrl0 psensor-common
The following NEW packages will be installed:
libxnvctrl0 psensor psensor-common
0 upgraded, 3 newly installed, 0 to remove and 64 not upgraded.
Need to get 110 kB of archives.
After this operation, 660 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libxnvctrl0 amd64 470.57.01-0ubuntu0.20.04.1 [11.1 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 psensor-common all 1.1.5-1.1ubuntu1 [40.4 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 psensor amd64 1.1.5-1.1ubuntu1 [58.8 kB]
Fetched 110 kB in 0s (267 kB/s)
Selecting previously unselected package libxnvctrl0:amd64.
(Reading database ... 191259 files and directories currently installed.)
Preparing to unpack .../libxnvctrl0_470.57.01-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libxnvctrl0:amd64 (470.57.01-0ubuntu0.20.04.1) ...
Selecting previously unselected package psensor-common.
Preparing to unpack .../psensor-common_1.1.5-1.1ubuntu1_all.deb ...
Unpacking psensor-common (1.1.5-1.1ubuntu1) ...
Selecting previously unselected package psensor.
Preparing to unpack .../psensor_1.1.5-1.1ubuntu1_amd64.deb ...
Unpacking psensor (1.1.5-1.1ubuntu1) ...
Setting up libxnvctrl0:amd64 (470.57.01-0ubuntu0.20.04.1) ...
Setting up psensor-common (1.1.5-1.1ubuntu1) ...
Setting up psensor (1.1.5-1.1ubuntu1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.3) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
root@rdlab:/home/exx#
CentOS calls it 'xsensors'
sudo yum install xsensors
How to run psensor
Make sure you run this with GUI. If your Linux OS is text-mode only, or if you are SSH'ing into the system, then it will give you an error.
Example of running psensor correctly with GUI, with graph suggestion
All you need to do is open a terminal and use the command 'psensor'. On a fresh install, the default background color for the graph is yellow. The CPU temperature we wanted to monitor was also set to a 'yellow' line, so I changed the background (not foreground) color to 'black' as shown below. I should also mention that the graph is trying to appear on the left-hand side, but the sensors default to the left-hand side as well. Re-sizing the screen, or minimize-maximizing the window will correct this.
Example of error when running it via SSH'ing into system
root@rdlab:/home/exx# psensor
MoTTY X11 proxy: Unsupported authorisation protocol
Unable to init server: Could not connect: Connection refused
(psensor:9093): Gtk-WARNING **: 22:18:51.081: cannot open display: localhost:11.0