Releases: Hsnmsri/linux_monitoring
Releases · Hsnmsri/linux_monitoring
v1.2.3
v1.2.2
Release 1.2.2
New Changes:
- Automatically create
settings.jsonfile if it does not exist.
Features:
- Automatically create
settings.jsonfile if it does not exist.
Bug Fixes:
- Performance improvements and minor bug fixes.
Full Changelog: v1.2.1...v1.2.2
v1.2.1
Release 1.2.1
New Changes:
- Added the ability to select a default monitoring mode. Now, in the event of a system restart or reboot, your settings will automatically be restored, and your selected monitoring mode will persist.
Features:
- This new feature allows you to save your monitoring settings as the default, so when the system restarts or reboots, it will automatically use the same settings.
Bug Fixes:
- Performance improvements and minor bug fixes.
v1.2.0
- Set flag for create and delete thread for cpu , memory and telegram notifications.
- Improved bugs.
Full Changelog: v1.1.0...v1.2.0
v1.1.0
Changelog for Version 1.1.0
Added
- /stop Command: Introduced a new
/stopcommand to the Telegram bot, allowing users to stop monitoring without closing the application. - /status Command: Added a
/statuscommand to the Telegram bot to retrieve the current monitoring status (enabled or disabled).
Changed
- /start Command: Updated the
/startcommand logic to provide a help message and initiate monitoring. Improved performance of the app in this process.
Performance Improvements
- Enhanced app performance, optimizing resource usage and response time.
v1.0.0
Changelog
All notable changes to this project will be documented in this file.
[1.0.0] - 2024-09-09
Added
- CPU Monitoring Feature: Added the ability to monitor CPU usage using the
/proc/statfile. - Memory Monitoring Feature: The program can now monitor memory usage using the
/proc/meminfofile. - Telegram Bot Integration: Full integration with the
TgBotlibrary to send CPU and memory status messages to a specified Telegram chat./usagecommand: Sends a detailed report of the CPU and memory status to the user./helpcommand: Displays a list of available bot commands in Telegram.
- Telegram Notifications: Sends alerts to Telegram when CPU or memory usage exceeds defined thresholds.
- JSON Configuration Support: Added the ability to read and use a
settings.jsonfile for configuring key values like bot token, chat ID, CPU, and memory limits. - Logging System: Implemented a logging system to log important activities and events using the
log()function. - Multithreading: Utilized multiple threads to run CPU monitoring, memory monitoring, and Telegram bot simultaneously for improved performance.
Changed
- Updated the
log()function to log precise timestamps along with event messages. - Improved Telegram bot stability by implementing restart mechanisms in case of errors.
- Adjusted default CPU and memory check intervals to 500 milliseconds for more frequent monitoring.
Fixed
- Fixed the issue with accessing
/proc/statand/proc/meminfofiles on certain systems. - Corrected the improper CPU percentage display in Telegram output.
- Enhanced readability and formatting of logs by using
std::put_timeto format dates and times more effectively.
Known Issues
- If the
settings.jsonfile is missing, the program exits without displaying an appropriate error message. - The program may not work properly on systems that lack
/proc(such as certain virtualized environments).
Usage Instructions:
- The
settings.jsonfile should contain the following configuration:{ "bot_token": "YOUR_BOT_TOKEN", "chat_id": "YOUR_CHAT_ID", "cpu_check_duration": 500, "memory_check_duration": 500, "cpu_limit": 80, "memory_limit": 80 }
Full Changelog: https://github.com/Hsnmsri/linux_monitoring/commits/v1.0.0