LinuxMonitor 1.2.1__tar.gz → 1.2.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.2.1 → linuxmonitor-1.2.2/LinuxMonitor.egg-info}/PKG-INFO +1 -1
- {linuxmonitor-1.2.1/LinuxMonitor.egg-info → linuxmonitor-1.2.2}/PKG-INFO +1 -1
- {linuxmonitor-1.2.1 → linuxmonitor-1.2.2}/linuxmonitor/linuxmonitor.py +7 -4
- {linuxmonitor-1.2.1 → linuxmonitor-1.2.2}/setup.py +1 -1
- {linuxmonitor-1.2.1 → linuxmonitor-1.2.2}/LICENSE.md +0 -0
- {linuxmonitor-1.2.1 → linuxmonitor-1.2.2}/LinuxMonitor.egg-info/SOURCES.txt +0 -0
- {linuxmonitor-1.2.1 → linuxmonitor-1.2.2}/LinuxMonitor.egg-info/dependency_links.txt +0 -0
- {linuxmonitor-1.2.1 → linuxmonitor-1.2.2}/LinuxMonitor.egg-info/requires.txt +0 -0
- {linuxmonitor-1.2.1 → linuxmonitor-1.2.2}/LinuxMonitor.egg-info/top_level.txt +0 -0
- {linuxmonitor-1.2.1 → linuxmonitor-1.2.2}/README.md +0 -0
- {linuxmonitor-1.2.1 → linuxmonitor-1.2.2}/linuxmonitor/__init__.py +0 -0
- {linuxmonitor-1.2.1 → linuxmonitor-1.2.2}/linuxmonitor/__main__.py +0 -0
- {linuxmonitor-1.2.1 → linuxmonitor-1.2.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: LinuxMonitor
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.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.2.
|
|
3
|
+
Version: 1.2.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
|
|
@@ -30,7 +30,7 @@ __email__ = "quentin@comte-gaz.com"
|
|
|
30
30
|
__license__ = "MIT License"
|
|
31
31
|
__copyright__ = "Copyright Quentin Comte-Gaz (2024)"
|
|
32
32
|
__python_version__ = "3.+"
|
|
33
|
-
__version__ = "1.2.
|
|
33
|
+
__version__ = "1.2.2 (2024/09/16)"
|
|
34
34
|
__status__ = "Usable for any Linux project"
|
|
35
35
|
|
|
36
36
|
import json
|
|
@@ -818,9 +818,12 @@ class LinuxMonitor:
|
|
|
818
818
|
|
|
819
819
|
# Check if the status code is within the allowed list
|
|
820
820
|
if response.status in allowed_statuses:
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
821
|
+
if not display_only_if_critical:
|
|
822
|
+
out_msg: str = f"✅ **{display_name} answered with valid status code {response.status}** in {end_time - start_time:.2f}sec."
|
|
823
|
+
logging.info(msg=out_msg)
|
|
824
|
+
return True, out_msg
|
|
825
|
+
else:
|
|
826
|
+
return True, ""
|
|
824
827
|
else:
|
|
825
828
|
# Get the reason phrase (e.g., "Unauthorized" for 401)
|
|
826
829
|
status_reason: str = responses.get(response.status, "Unknown status")
|
|
@@ -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.2.
|
|
9
|
+
version="1.2.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
|