LinuxMonitor 1.0.5__tar.gz → 1.0.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: LinuxMonitor
3
- Version: 1.0.5
3
+ Version: 1.0.6
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.0.5
3
+ Version: 1.0.6
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
@@ -28,7 +28,7 @@ __email__ = "quentin@comte-gaz.com"
28
28
  __license__ = "MIT License"
29
29
  __copyright__ = "Copyright Quentin Comte-Gaz (2024)"
30
30
  __python_version__ = "3.+"
31
- __version__ = "1.0.5 (2024/09/14)"
31
+ __version__ = "1.0.6 (2024/09/14)"
32
32
  __status__ = "Usable for any Linux project"
33
33
 
34
34
  import json
@@ -1030,7 +1030,7 @@ class LinuxMonitor:
1030
1030
  elif critical_remaining_days > 0 and remaining_days < critical_remaining_days:
1031
1031
  out_msg = f"- ⚠️ **SSL certificate [{display_name}](https://{hostname}) will expire soon**:\n" \
1032
1032
  f" - Certificate expires on {expiry_date.strftime('%d/%m/%Y')}\n" \
1033
- f" - **{remaining_days} remaining days**\n" \
1033
+ f" - **{remaining_days} remaining days (which is in less than {critical_remaining_days} days)**\n" \
1034
1034
  f" - **Renew the SSL certificate quickly**"
1035
1035
  logging.warning(msg=out_msg)
1036
1036
  elif not display_only_if_critical:
@@ -1041,12 +1041,12 @@ class LinuxMonitor:
1041
1041
  else:
1042
1042
  icon = "✅ "
1043
1043
 
1044
- out_msg = f"- {icon}[{display_name}](https://{hostname}): {remaining_days} remaining days (expires on {expiry_date.strftime('%d/%m/%Y')} which is in less than {critical_remaining_days} days)"
1044
+ out_msg = f"- {icon}[{display_name}](https://{hostname}): {remaining_days} remaining days (expires on {expiry_date.strftime('%d/%m/%Y')}))"
1045
1045
  logging.info(msg=out_msg)
1046
1046
 
1047
1047
  # Display the error of retrieving the certificate if there is one
1048
1048
  if cert_infos["error"]:
1049
- out_msg += f":\n - Error: `{cert_infos['error']}`"
1049
+ out_msg += f"\n - Reason: `{cert_infos['error']}`"
1050
1050
  except Exception as e:
1051
1051
  out_msg = f"- ⚠️ **Error checking SSL certificate of [{display_name}](https://{hostname})**:\n```sh\n{e}\n```"
1052
1052
  logging.exception(msg=out_msg)
@@ -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.0.5",
9
+ version="1.0.6",
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