Skip to content

Releases: Hsnmsri/linux_monitoring

v1.2.3

10 Nov 12:18

Choose a tag to compare

  • Improved performance

What's Changed

New Contributors

Full Changelog: v1.2.2...v1.2.3

v1.2.2

09 Nov 08:07

Choose a tag to compare

Release 1.2.2

New Changes:

  • Automatically create settings.json file if it does not exist.

Features:

  • Automatically create settings.json file if it does not exist.

Bug Fixes:

  • Performance improvements and minor bug fixes.

Full Changelog: v1.2.1...v1.2.2

v1.2.1

08 Nov 23:02

Choose a tag to compare

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

24 Sep 11:01

Choose a tag to compare

  • 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

13 Sep 06:56

Choose a tag to compare

Changelog for Version 1.1.0

Added

  • /stop Command: Introduced a new /stop command to the Telegram bot, allowing users to stop monitoring without closing the application.
  • /status Command: Added a /status command to the Telegram bot to retrieve the current monitoring status (enabled or disabled).

Changed

  • /start Command: Updated the /start command 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

09 Sep 19:28

Choose a tag to compare

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/stat file.
  • Memory Monitoring Feature: The program can now monitor memory usage using the /proc/meminfo file.
  • Telegram Bot Integration: Full integration with the TgBot library to send CPU and memory status messages to a specified Telegram chat.
    • /usage command: Sends a detailed report of the CPU and memory status to the user.
    • /help command: 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.json file 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/stat and /proc/meminfo files on certain systems.
  • Corrected the improper CPU percentage display in Telegram output.
  • Enhanced readability and formatting of logs by using std::put_time to format dates and times more effectively.

Known Issues

  • If the settings.json file 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:

  1. The settings.json file 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