Have you thought about the servers? Which uses the internet to load and process a high number of user requests. You might notice a warning that says "Server Down," which means the server attained its maximum capability or performance, but we don't know what caused it.
Python's Psutill package allows us to track system details and execute utilities, which will allow us to monitor the server's status and Qubitro will help us to transfer data to the cloud. Now we can keep an eye on the data from anywhere in the world.
How To Do?
First, we have to install python and VS Code on our Windows machine. Please see my previous blog for instructions on how to install Python and VS Code on a Windows system.
Once you have installed the Python and VS Code now we are good to go. Open up the terminal and type "pip install psutil"
I have already installed the library, so it's showing Requirement already satisfied.
Copy and paste the above python script to your VS Code IDE and save it as .py extension.
Qubitro Cloud Setup:
There are many possibilities and suppliers on the IoT Cloud side, but we need something more user-friendly and cost-effective, as well as a free trial without a credit card.
Qubitro is the fastest way to build IoT applications with predictable pricing, and developer-friendly features. And most importantly, Qubitro offers always free accounts without credit card information. Please visit https://qubitro.com/ to know more about Qubitro.
Once you are signed up to your Qubitro Portal account and create a new project using the MQTT Connection; copy and paste the Device ID and Device Token in the Code.
Let's Start the Monitoring:
After entering the device ID and tokens, simply run the script. Now you can see the below messages in your IDE Terminal.
Open the Qubitro portal and select the data ranges and wait for the incoming data.
Now you can see the CPU Usage, Frequency, RAM / Memory / Swap Percentage levels. And visualize the readings according to your needs.