# Read CPU-Load of Linux-Device where Node-Red is installed on

**URL:** <https://discourse.nodered.org/t/read-cpu-load-of-linux-device-where-node-red-is-installed-on/94922>\
**Category:** General\
**Tags:** function-node\
**Created:** [26 January 2025 13:09 UTC](https://discourse.nodered.org/t/read-cpu-load-of-linux-device-where-node-red-is-installed-on/94922 "2025-01-26T13:09:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gawan](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@Gawan](https://discourse.nodered.org/u/Gawan)\
**Post date:** [26 January 2025 13:09 UTC](https://discourse.nodered.org/t/read-cpu-load-of-linux-device-where-node-red-is-installed-on/94922/1 "2025-01-26T13:09:05Z")

</div>

Hi all,

I have some performance issues to I would like to read the node-red server CPU load in Node-Red and show it somewhere in a Maintenance-Tab.  
I am not a linux person, but I managed to get this line if I simply send a TOP via ssh:

Mem: 720120K used, 309960K free, 1880K shrd, 73440K buff, 303928K cached  
CPU: 33% usr 11% sys 0% nic 52% idle 0% io 1% irq 0% sirq

Now I would like to extract the 33, the 11 and the 0%, sum it up and put it into a msg.payload to use it further.  
Can this be done somehow in Node-Red ?

BR  
Gawan

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [26 January 2025 13:14 UTC](https://discourse.nodered.org/t/read-cpu-load-of-linux-device-where-node-red-is-installed-on/94922/2 "2025-01-26T13:14:52Z")

</div>

> [@Gawan](#):
>
> Can this be done somehow in Node-Red ?

You could try using `node-red-contrib-cpu` or one of the [other nodes](https://flows.nodered.org/search?term=cpu&type=node)

---

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [26 January 2025 14:52 UTC](https://discourse.nodered.org/t/read-cpu-load-of-linux-device-where-node-red-is-installed-on/94922/3 "2025-01-26T14:52:41Z")

</div>

> [@Gawan](#):
>
> Can this be done somehow in Node-Red ?

Are you aware of [@ralphwetzel/node-red-systeminformation](https://flows.nodered.org/node/@ralphwetzel/node-red-systeminformation)?  
This node gives you access to all the data the [`systeminformation.io`](https://systeminformation.io) package collects of your system ... e.g. a lot of stuff around the [CPU](https://systeminformation.io/cpu.html).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 April 2025 14:53 UTC](https://discourse.nodered.org/t/read-cpu-load-of-linux-device-where-node-red-is-installed-on/94922/4 "2025-04-26T14:53:29Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
