yamot: a powerful web-based server security monitoring tool

About yamot

Yamot is a powerful web-based server security monitoring tool built for small environments with only a few servers. Yamot uses very few resources and can run on almost any device. This tool is suitable for Linux or BSD. The current version does not support Windows platform.

For example, researchers can use yamot to monitor Raspberry Pi servers running at home. It requires only a few configuration steps and then displays many relevant server measurements in the browser:

1. System load

2. Memory usage

3. Uptime/startup time

4. Dosage (calculated)

5. Battery (for example, used to monitor mobile devices)

6. WiFi signal strength

7. Temperature

8. Processor (core, speed, usage...)

9. System (release, version, architecture, etc.)

10. Network service (open listening port)

11. Network equipment and addresses

12. Network interface IO (bytes sent/received)

13. Disk storage usage (used space and total space)

14. Disk device IO (read/write bytes)

15. Login users (user name, login date...)

It should be noted that all the above information will be displayed on a page in real time to provide a simple overview.

Tool architecture

The tool mainly consists of three components: server, controller and client. Its operating process and architecture are shown in the figure below:

Tool download

Since this tool is developed based on Python 3, we first install and configure the Python 3 environment on the local device. Next, researchers need to use the following commands to clone the project source code locally:

git clone https://github.com/knrdl/yamot.git

Tool installation

server

1. After installing Python 3, execute the following commands to install psutil and ujson:

sudo apt-get install python3-psutil python3-ujson

2. Copy the yamot_server.py file to your server (for example /opt/yamot), and then use sudo -u to add it to /etc/rc.local:

dash -c 'cd /opt/yamot && python3 /opt/yamot/yamot_server.py' &

3. Use the following command to run the server and generate a configuration file.

4. If your server runs a firewall, please set the port and allow it to pass (the default port is 9393):

sudo ufw allow 9393

Client & Controller

5. The controller component needs to run on the server in your network. The server responsible for running the controller also needs to run the server component. The content in the controller/dist directory can be used here.

6. You need to install Node.JS and Express.js.

7. Use the following command to turn on the controller:

node controller.js

8. After the controller starts, the shell will provide login credentials.

9. Now, you can add the tool script to the startup menu. If you use a firewall, don’t forget to open the corresponding port.

10. Open the browser and visit the following address to start using yamot:

http://ip-of-the-controller-device:8080

Screenshots of tool usage

License Agreement

The development and release of this project follows the MIT open source license agreement.

Guess you like

Origin blog.csdn.net/2301_76869453/article/details/132921317