...
In this tutorial we will provide you with a step by step guide to use Labeeb IoT Applications to track the CPU usage (in Ubuntu OS).
...
Before starting
Required:
- 2 Linux machines , we will use Ubuntu( 1 for sending and the other to receive ).
MQTT Client.
STRESS Linux library.
Installing requirements :
MQTT can be installed on any Debian or Ubuntu based Linux operating systems using the following command:
Code Block language bash title MQTT client install apt-get install mosquitto-clients
STRESS Linux library.
Code Block language bash title CPU Stress library apt-get install stress
Assumptions:
- We assume you have already been granted an account on Labeeb IoT platform, if not , click here to get your account, or visit this page to get help.
- We assume your created a device with the following specifications :
- Data types: cpu_level (Integer) , cpu_control (Text).
- Data model: cpu.
- Device Template: os.
- Device Name : ubuntu_cpu
If you need some help creating the device please visit this page.
...
Step by step Guide
Expand | ||
---|---|---|
| ||
1) Login to Labeeb IoT platform and from the left menu select Settings>>Applications. 2) Create new Application , name "it cpu_app" with the following Access Control List (ACL) : 3) Chose a password for the new Application and click save. |
...