LinuxMonitor 1.3.0__tar.gz → 1.3.2__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.3.0 → linuxmonitor-1.3.2/LinuxMonitor.egg-info}/PKG-INFO +1 -1
- {linuxmonitor-1.3.0/LinuxMonitor.egg-info → linuxmonitor-1.3.2}/PKG-INFO +1 -1
- {linuxmonitor-1.3.0 → linuxmonitor-1.3.2}/linuxmonitor/linuxmonitor.py +5 -5
- {linuxmonitor-1.3.0 → linuxmonitor-1.3.2}/setup.py +1 -1
- {linuxmonitor-1.3.0 → linuxmonitor-1.3.2}/LICENSE.md +0 -0
- {linuxmonitor-1.3.0 → linuxmonitor-1.3.2}/LinuxMonitor.egg-info/SOURCES.txt +0 -0
- {linuxmonitor-1.3.0 → linuxmonitor-1.3.2}/LinuxMonitor.egg-info/dependency_links.txt +0 -0
- {linuxmonitor-1.3.0 → linuxmonitor-1.3.2}/LinuxMonitor.egg-info/requires.txt +0 -0
- {linuxmonitor-1.3.0 → linuxmonitor-1.3.2}/LinuxMonitor.egg-info/top_level.txt +0 -0
- {linuxmonitor-1.3.0 → linuxmonitor-1.3.2}/README.md +0 -0
- {linuxmonitor-1.3.0 → linuxmonitor-1.3.2}/linuxmonitor/__init__.py +0 -0
- {linuxmonitor-1.3.0 → linuxmonitor-1.3.2}/linuxmonitor/__main__.py +0 -0
- {linuxmonitor-1.3.0 → linuxmonitor-1.3.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: LinuxMonitor
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.2
|
|
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.3.
|
|
3
|
+
Version: 1.3.2
|
|
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.3.
|
|
36
|
+
__version__ = "1.3.2 (2024/09/19)"
|
|
37
37
|
__status__ = "Usable for any Linux project"
|
|
38
38
|
|
|
39
39
|
import json
|
|
@@ -909,7 +909,7 @@ class LinuxMonitor:
|
|
|
909
909
|
if is_private or service['is_private'] == is_private:
|
|
910
910
|
is_allowed_to_restart: bool = 'restart_command' in service
|
|
911
911
|
is_allowed_to_stop: bool = 'stop_command' in service
|
|
912
|
-
auto_restart: bool = service.get('
|
|
912
|
+
auto_restart: bool = service.get('auto_restart', False)
|
|
913
913
|
|
|
914
914
|
if out_msg != "":
|
|
915
915
|
out_msg += "\n"
|
|
@@ -920,7 +920,7 @@ class LinuxMonitor:
|
|
|
920
920
|
if auto_restart:
|
|
921
921
|
out_msg += " - ✅ Can be restarted (automatically & manually)\n"
|
|
922
922
|
else:
|
|
923
|
-
out_msg += " - ✅ Can be restarted (manually only because '
|
|
923
|
+
out_msg += " - ✅ Can be restarted (manually only because 'auto_restart' = false)\n"
|
|
924
924
|
|
|
925
925
|
if is_allowed_to_stop:
|
|
926
926
|
out_msg += " - ✅ Can be stopped manually"
|
|
@@ -962,7 +962,7 @@ class LinuxMonitor:
|
|
|
962
962
|
logging.error(msg=out_msg)
|
|
963
963
|
return out_msg
|
|
964
964
|
|
|
965
|
-
if not force_restart and not service.get('
|
|
965
|
+
if not force_restart and not service.get('auto_restart', False):
|
|
966
966
|
out_msg = f"⚠️ **Service {service_name} can be restarted only manually** (change configuration if needed)."
|
|
967
967
|
logging.error(msg=out_msg)
|
|
968
968
|
return out_msg
|
|
@@ -1089,7 +1089,7 @@ class LinuxMonitor:
|
|
|
1089
1089
|
out_msg += "\n"
|
|
1090
1090
|
out_msg += f"- {service_icon} {self.config['services'][service_name]['display_name']}: **{service_status}**"
|
|
1091
1091
|
if status != True and status_msg != "":
|
|
1092
|
-
out_msg += f"\n{status_msg}"
|
|
1092
|
+
out_msg += f"\n - {status_msg}"
|
|
1093
1093
|
|
|
1094
1094
|
if status is False:
|
|
1095
1095
|
out_msg += f"\n - " + await self.restart_service(is_private=is_private, service_name=service_name, force_restart=False)
|
|
@@ -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.3.
|
|
9
|
+
version="1.3.2",
|
|
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
|