LinuxMonitor 1.4.8__tar.gz → 1.4.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {linuxmonitor-1.4.8 → linuxmonitor-1.4.9/LinuxMonitor.egg-info}/PKG-INFO +1 -1
- {linuxmonitor-1.4.8/LinuxMonitor.egg-info → linuxmonitor-1.4.9}/PKG-INFO +1 -1
- {linuxmonitor-1.4.8 → linuxmonitor-1.4.9}/linuxmonitor/linuxmonitor.py +3 -3
- {linuxmonitor-1.4.8 → linuxmonitor-1.4.9}/setup.py +1 -1
- {linuxmonitor-1.4.8 → linuxmonitor-1.4.9}/LICENSE.md +0 -0
- {linuxmonitor-1.4.8 → linuxmonitor-1.4.9}/LinuxMonitor.egg-info/SOURCES.txt +0 -0
- {linuxmonitor-1.4.8 → linuxmonitor-1.4.9}/LinuxMonitor.egg-info/dependency_links.txt +0 -0
- {linuxmonitor-1.4.8 → linuxmonitor-1.4.9}/LinuxMonitor.egg-info/requires.txt +0 -0
- {linuxmonitor-1.4.8 → linuxmonitor-1.4.9}/LinuxMonitor.egg-info/top_level.txt +0 -0
- {linuxmonitor-1.4.8 → linuxmonitor-1.4.9}/README.md +0 -0
- {linuxmonitor-1.4.8 → linuxmonitor-1.4.9}/linuxmonitor/__init__.py +0 -0
- {linuxmonitor-1.4.8 → linuxmonitor-1.4.9}/linuxmonitor/__main__.py +0 -0
- {linuxmonitor-1.4.8 → linuxmonitor-1.4.9}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: LinuxMonitor
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.9
|
|
4
4
|
Summary: Get information and warning status of Linux server like service, port, ping, ssl certificate, disk/folder/cpu/ram/swap usage, ip connection, ... (Python and shell library, Linux ONLY)
|
|
5
5
|
Home-page: https://github.com/QuentinCG/Linux-Monitor-Python-Library
|
|
6
6
|
Author: Quentin Comte-Gaz
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: LinuxMonitor
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.9
|
|
4
4
|
Summary: Get information and warning status of Linux server like service, port, ping, ssl certificate, disk/folder/cpu/ram/swap usage, ip connection, ... (Python and shell library, Linux ONLY)
|
|
5
5
|
Home-page: https://github.com/QuentinCG/Linux-Monitor-Python-Library
|
|
6
6
|
Author: Quentin Comte-Gaz
|
|
@@ -33,7 +33,7 @@ __email__ = "quentin@comte-gaz.com"
|
|
|
33
33
|
__license__ = "MIT License"
|
|
34
34
|
__copyright__ = "Copyright Quentin Comte-Gaz (2024)"
|
|
35
35
|
__python_version__ = "3.+"
|
|
36
|
-
__version__ = "1.4.
|
|
36
|
+
__version__ = "1.4.9 (2024/10/27)"
|
|
37
37
|
__status__ = "Usable for any Linux project"
|
|
38
38
|
|
|
39
39
|
import json
|
|
@@ -591,7 +591,7 @@ class LinuxMonitor:
|
|
|
591
591
|
out_msg = f"- 🚨 **Critical CPU usage**:\n- **{cpu_percent:.2f}%** used on {cpu_cores} core of {cpu_info:.2f}GHz ({cpu_name})\n⚠️ **Check what is using so much CPU power** ⚠️"
|
|
592
592
|
|
|
593
593
|
# If there is a critical CPU usage, we also display the top 10 processes consuming the most CPU
|
|
594
|
-
out_msg += "\n" + self.get_ordered_processes(get_non_consuming_processes
|
|
594
|
+
out_msg += "\n" + self.get_ordered_processes(get_non_consuming_processes=False, order_by_ram=False, max_processes=10)
|
|
595
595
|
|
|
596
596
|
logging.warning(msg=out_msg)
|
|
597
597
|
elif not display_only_if_critical:
|
|
@@ -630,7 +630,7 @@ class LinuxMonitor:
|
|
|
630
630
|
out_msg = f"- 🚨 **Critical RAM usage**:\n- Total: {total_ram:.2f}GB\n- Used: {used_ram:.2f}GB ({percent_ram:.2f}%)\n- Free: {free_ram:.2f}GB\n⚠️ **Check what is using so much RAM** ⚠️"
|
|
631
631
|
|
|
632
632
|
# If there is a critical RAM usage, we also display the top 10 processes consuming the most RAM
|
|
633
|
-
out_msg += "\n" + self.get_ordered_processes(get_non_consuming_processes
|
|
633
|
+
out_msg += "\n" + self.get_ordered_processes(get_non_consuming_processes=False, order_by_ram=True, max_processes=10)
|
|
634
634
|
|
|
635
635
|
logging.warning(msg=out_msg)
|
|
636
636
|
elif not display_only_if_critical:
|
|
@@ -6,7 +6,7 @@ with io.open(file='README.md', mode='r', encoding='utf-8') as readme_file:
|
|
|
6
6
|
|
|
7
7
|
setup(
|
|
8
8
|
name="LinuxMonitor",
|
|
9
|
-
version="1.4.
|
|
9
|
+
version="1.4.9",
|
|
10
10
|
description="Get information and warning status of Linux server like service, port, ping, ssl certificate, disk/folder/cpu/ram/swap usage, ip connection, ... (Python and shell library, Linux ONLY)",
|
|
11
11
|
long_description=readme,
|
|
12
12
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|