LinuxMonitor 1.4.6__tar.gz → 1.4.7__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.6 → linuxmonitor-1.4.7/LinuxMonitor.egg-info}/PKG-INFO +4 -1
- {linuxmonitor-1.4.6/LinuxMonitor.egg-info → linuxmonitor-1.4.7}/PKG-INFO +4 -1
- {linuxmonitor-1.4.6 → linuxmonitor-1.4.7}/README.md +3 -0
- {linuxmonitor-1.4.6 → linuxmonitor-1.4.7}/linuxmonitor/linuxmonitor.py +2 -2
- {linuxmonitor-1.4.6 → linuxmonitor-1.4.7}/setup.py +1 -1
- {linuxmonitor-1.4.6 → linuxmonitor-1.4.7}/LICENSE.md +0 -0
- {linuxmonitor-1.4.6 → linuxmonitor-1.4.7}/LinuxMonitor.egg-info/SOURCES.txt +0 -0
- {linuxmonitor-1.4.6 → linuxmonitor-1.4.7}/LinuxMonitor.egg-info/dependency_links.txt +0 -0
- {linuxmonitor-1.4.6 → linuxmonitor-1.4.7}/LinuxMonitor.egg-info/requires.txt +0 -0
- {linuxmonitor-1.4.6 → linuxmonitor-1.4.7}/LinuxMonitor.egg-info/top_level.txt +0 -0
- {linuxmonitor-1.4.6 → linuxmonitor-1.4.7}/linuxmonitor/__init__.py +0 -0
- {linuxmonitor-1.4.6 → linuxmonitor-1.4.7}/linuxmonitor/__main__.py +0 -0
- {linuxmonitor-1.4.6 → linuxmonitor-1.4.7}/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.7
|
|
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
|
|
@@ -76,6 +76,9 @@ echo "USERNAME_HERE ALL=(ALL) NOPASSWD: /sbin/reboot" >> /etc/sudoers.d/USERNAME
|
|
|
76
76
|
# Only if this library should be able to kill a process on demand:
|
|
77
77
|
echo "USERNAME_HERE ALL=(ALL) NOPASSWD: /bin/kill" >> /etc/sudoers.d/USERNAME_HERE
|
|
78
78
|
|
|
79
|
+
# To check last user connection
|
|
80
|
+
echo "USERNAME_HERE ALL=(ALL) NOPASSWD: /usr/bin/last" >> /etc/sudoers.d/USERNAME_HERE
|
|
81
|
+
|
|
79
82
|
# Add also all processes added in your config JSON file you want the library to be able to execute
|
|
80
83
|
# Example for the existing config-example.json file:
|
|
81
84
|
echo "USERNAME_HERE ALL=(ALL) NOPASSWD: /bin/systemctl" >> /etc/sudoers.d/USERNAME_HERE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: LinuxMonitor
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.7
|
|
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
|
|
@@ -76,6 +76,9 @@ echo "USERNAME_HERE ALL=(ALL) NOPASSWD: /sbin/reboot" >> /etc/sudoers.d/USERNAME
|
|
|
76
76
|
# Only if this library should be able to kill a process on demand:
|
|
77
77
|
echo "USERNAME_HERE ALL=(ALL) NOPASSWD: /bin/kill" >> /etc/sudoers.d/USERNAME_HERE
|
|
78
78
|
|
|
79
|
+
# To check last user connection
|
|
80
|
+
echo "USERNAME_HERE ALL=(ALL) NOPASSWD: /usr/bin/last" >> /etc/sudoers.d/USERNAME_HERE
|
|
81
|
+
|
|
79
82
|
# Add also all processes added in your config JSON file you want the library to be able to execute
|
|
80
83
|
# Example for the existing config-example.json file:
|
|
81
84
|
echo "USERNAME_HERE ALL=(ALL) NOPASSWD: /bin/systemctl" >> /etc/sudoers.d/USERNAME_HERE
|
|
@@ -48,6 +48,9 @@ echo "USERNAME_HERE ALL=(ALL) NOPASSWD: /sbin/reboot" >> /etc/sudoers.d/USERNAME
|
|
|
48
48
|
# Only if this library should be able to kill a process on demand:
|
|
49
49
|
echo "USERNAME_HERE ALL=(ALL) NOPASSWD: /bin/kill" >> /etc/sudoers.d/USERNAME_HERE
|
|
50
50
|
|
|
51
|
+
# To check last user connection
|
|
52
|
+
echo "USERNAME_HERE ALL=(ALL) NOPASSWD: /usr/bin/last" >> /etc/sudoers.d/USERNAME_HERE
|
|
53
|
+
|
|
51
54
|
# Add also all processes added in your config JSON file you want the library to be able to execute
|
|
52
55
|
# Example for the existing config-example.json file:
|
|
53
56
|
echo "USERNAME_HERE ALL=(ALL) NOPASSWD: /bin/systemctl" >> /etc/sudoers.d/USERNAME_HERE
|
|
@@ -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.7 (2024/10/07)"
|
|
37
37
|
__status__ = "Usable for any Linux project"
|
|
38
38
|
|
|
39
39
|
import json
|
|
@@ -1490,7 +1490,7 @@ class LinuxMonitor:
|
|
|
1490
1490
|
|
|
1491
1491
|
try:
|
|
1492
1492
|
# Fetch the logs since the specified date
|
|
1493
|
-
command: str = f"last --ip --hostlast --time-format iso --since '{past_date}' | grep 'pts/'"
|
|
1493
|
+
command: str = f"sudo last --ip --hostlast --time-format iso --since '{past_date}' | grep 'pts/'"
|
|
1494
1494
|
last_output: str = subprocess.check_output(
|
|
1495
1495
|
args=command,
|
|
1496
1496
|
shell=True,
|
|
@@ -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.7",
|
|
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
|