ADD zls_check.py

master
Sebastian Serfling 2023-09-13 16:44:00 +02:00
parent fb335df2a1
commit f60bae26bb
15 changed files with 141 additions and 111 deletions

44
VOLUME_CHECK.spec Normal file
View File

@ -0,0 +1,44 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(
['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='VOLUME_CHECK',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)

View File

@ -401,6 +401,18 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\xml\\sax\\xmlreader.py', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\xml\\sax\\xmlreader.py',
'PYMODULE'), 'PYMODULE'),
('http.client',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\http\\client.py',
'PYMODULE'),
('ssl',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\ssl.py',
'PYMODULE'),
('http',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\http\\__init__.py',
'PYMODULE'),
('hmac', ('hmac',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\hmac.py', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\hmac.py',
@ -501,6 +513,18 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\multiprocessing\\__init__.py', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\multiprocessing\\__init__.py',
'PYMODULE'), 'PYMODULE'),
('stringprep',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\stringprep.py',
'PYMODULE'),
('tracemalloc',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\tracemalloc.py',
'PYMODULE'),
('_py_abc',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\_py_abc.py',
'PYMODULE'),
('getpass', ('getpass',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\getpass.py', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\getpass.py',
@ -529,30 +553,6 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\http\\cookiejar.py', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\http\\cookiejar.py',
'PYMODULE'), 'PYMODULE'),
('http',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\http\\__init__.py',
'PYMODULE'),
('ssl',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\ssl.py',
'PYMODULE'),
('stringprep',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\stringprep.py',
'PYMODULE'),
('_py_abc',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\_py_abc.py',
'PYMODULE'),
('tracemalloc',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\tracemalloc.py',
'PYMODULE'),
('http.client',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\http\\client.py',
'PYMODULE'),
('volume', ('volume',
'C:\\Users\\Sebastian Serfling\\PycharmProjects\\volume_check\\volume.py', 'C:\\Users\\Sebastian Serfling\\PycharmProjects\\volume_check\\volume.py',
'PYMODULE'), 'PYMODULE'),
@ -664,10 +664,6 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\cpuinfo\\cpuinfo.py', 'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\cpuinfo\\cpuinfo.py',
'PYMODULE'), 'PYMODULE'),
('create_service',
'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\create_service.py',
'PYMODULE'),
('datetime', ('datetime',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\datetime.py', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\datetime.py',
@ -976,6 +972,10 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\pyexpat.pyd', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\pyexpat.pyd',
'EXTENSION'), 'EXTENSION'),
('_ssl.pyd',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
'EXTENSION'),
('_multiprocessing.pyd', ('_multiprocessing.pyd',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_multiprocessing.pyd', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_multiprocessing.pyd',
@ -988,10 +988,6 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_queue.pyd', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_queue.pyd',
'EXTENSION'), 'EXTENSION'),
('_ssl.pyd',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
'EXTENSION'),
('unicodedata.pyd', ('unicodedata.pyd',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\unicodedata.pyd', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\unicodedata.pyd',
@ -1020,14 +1016,14 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libcrypto-1_1.dll', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libcrypto-1_1.dll',
'BINARY'), 'BINARY'),
('libffi-7.dll',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
'BINARY'),
('libssl-1_1.dll', ('libssl-1_1.dll',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libssl-1_1.dll', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libssl-1_1.dll',
'BINARY'), 'BINARY'),
('libffi-7.dll',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
'BINARY'),
('python3.dll', ('python3.dll',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python3.dll', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python3.dll',
@ -1038,12 +1034,12 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\build\\VOLUME_CHECK\\base_library.zip', 'Serfling\\PycharmProjects\\volume_check\\build\\VOLUME_CHECK\\base_library.zip',
'DATA'), 'DATA'),
('certifi\\py.typed',
'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\py.typed',
'DATA'),
('certifi\\cacert.pem', ('certifi\\cacert.pem',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\cacert.pem', 'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\cacert.pem',
'DATA'),
('certifi\\py.typed',
'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\py.typed',
'DATA')], 'DATA')],
[]) [])

View File

@ -92,6 +92,10 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\pyexpat.pyd', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\pyexpat.pyd',
'EXTENSION'), 'EXTENSION'),
('_ssl.pyd',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
'EXTENSION'),
('_multiprocessing.pyd', ('_multiprocessing.pyd',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_multiprocessing.pyd', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_multiprocessing.pyd',
@ -104,10 +108,6 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_queue.pyd', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_queue.pyd',
'EXTENSION'), 'EXTENSION'),
('_ssl.pyd',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
'EXTENSION'),
('unicodedata.pyd', ('unicodedata.pyd',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\unicodedata.pyd', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\unicodedata.pyd',
@ -136,14 +136,14 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libcrypto-1_1.dll', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libcrypto-1_1.dll',
'BINARY'), 'BINARY'),
('libffi-7.dll',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
'BINARY'),
('libssl-1_1.dll', ('libssl-1_1.dll',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libssl-1_1.dll', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libssl-1_1.dll',
'BINARY'), 'BINARY'),
('libffi-7.dll',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
'BINARY'),
('python3.dll', ('python3.dll',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python3.dll', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python3.dll',
@ -152,18 +152,18 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\build\\VOLUME_CHECK\\base_library.zip', 'Serfling\\PycharmProjects\\volume_check\\build\\VOLUME_CHECK\\base_library.zip',
'DATA'), 'DATA'),
('certifi\\py.typed',
'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\py.typed',
'DATA'),
('certifi\\cacert.pem', ('certifi\\cacert.pem',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\cacert.pem', 'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\cacert.pem',
'DATA'),
('certifi\\py.typed',
'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\py.typed',
'DATA')], 'DATA')],
[], [],
False, False,
False, False,
1692634256, 1694611831,
[('run.exe', [('run.exe',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\PyInstaller\\bootloader\\Windows-64bit-intel\\run.exe', 'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\PyInstaller\\bootloader\\Windows-64bit-intel\\run.exe',

View File

@ -83,6 +83,10 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\pyexpat.pyd', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\pyexpat.pyd',
'EXTENSION'), 'EXTENSION'),
('_ssl.pyd',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
'EXTENSION'),
('_multiprocessing.pyd', ('_multiprocessing.pyd',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_multiprocessing.pyd', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_multiprocessing.pyd',
@ -95,10 +99,6 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_queue.pyd', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_queue.pyd',
'EXTENSION'), 'EXTENSION'),
('_ssl.pyd',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
'EXTENSION'),
('unicodedata.pyd', ('unicodedata.pyd',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\unicodedata.pyd', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\unicodedata.pyd',
@ -127,14 +127,14 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libcrypto-1_1.dll', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libcrypto-1_1.dll',
'BINARY'), 'BINARY'),
('libffi-7.dll',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
'BINARY'),
('libssl-1_1.dll', ('libssl-1_1.dll',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libssl-1_1.dll', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libssl-1_1.dll',
'BINARY'), 'BINARY'),
('libffi-7.dll',
'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
'BINARY'),
('python3.dll', ('python3.dll',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python3.dll', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python3.dll',
@ -143,13 +143,13 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\build\\VOLUME_CHECK\\base_library.zip', 'Serfling\\PycharmProjects\\volume_check\\build\\VOLUME_CHECK\\base_library.zip',
'DATA'), 'DATA'),
('certifi\\py.typed',
'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\py.typed',
'DATA'),
('certifi\\cacert.pem', ('certifi\\cacert.pem',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\cacert.pem', 'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\cacert.pem',
'DATA'),
('certifi\\py.typed',
'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\py.typed',
'DATA')], 'DATA')],
False, False,
False, False,

Binary file not shown.

View File

@ -120,10 +120,6 @@
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\cpuinfo\\cpuinfo.py', 'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\cpuinfo\\cpuinfo.py',
'PYMODULE'), 'PYMODULE'),
('create_service',
'C:\\Users\\Sebastian '
'Serfling\\PycharmProjects\\volume_check\\create_service.py',
'PYMODULE'),
('csv', ('csv',
'C:\\Users\\Sebastian ' 'C:\\Users\\Sebastian '
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\csv.py', 'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\csv.py',

Binary file not shown.

Binary file not shown.

View File

@ -18,9 +18,9 @@ missing module named pyimod02_importers - imported by C:\Users\Sebastian Serflin
missing module named pep517 - imported by importlib.metadata (delayed) missing module named pep517 - imported by importlib.metadata (delayed)
missing module named 'org.python' - imported by copy (optional), xml.sax (delayed, conditional) missing module named 'org.python' - imported by copy (optional), xml.sax (delayed, conditional)
missing module named grp - imported by shutil (optional), tarfile (optional), pathlib (delayed, optional), subprocess (optional) missing module named grp - imported by shutil (optional), tarfile (optional), pathlib (delayed, optional), subprocess (optional)
missing module named pwd - imported by shutil (optional), tarfile (optional), posixpath (delayed, conditional), pathlib (delayed, conditional, optional), subprocess (optional), netrc (delayed, conditional), getpass (delayed), psutil (optional) missing module named pwd - imported by posixpath (delayed, conditional), shutil (optional), tarfile (optional), pathlib (delayed, conditional, optional), subprocess (optional), netrc (delayed, conditional), getpass (delayed), psutil (optional)
missing module named org - imported by pickle (optional) missing module named org - imported by pickle (optional)
missing module named posix - imported by shutil (conditional), importlib._bootstrap_external (conditional), os (conditional, optional) missing module named posix - imported by os (conditional, optional), shutil (conditional), importlib._bootstrap_external (conditional)
missing module named resource - imported by posix (top-level), psutil._pslinux (optional) missing module named resource - imported by posix (top-level), psutil._pslinux (optional)
excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), zipimport (top-level) excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), zipimport (top-level)
missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional), zipimport (top-level) missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional), zipimport (top-level)

View File

@ -26,7 +26,6 @@ imports:
&#8226; <a href="#collections">collections</a> &#8226; <a href="#collections">collections</a>
&#8226; <a href="#collections.abc">collections.abc</a> &#8226; <a href="#collections.abc">collections.abc</a>
&#8226; <a href="#copyreg">copyreg</a> &#8226; <a href="#copyreg">copyreg</a>
&#8226; <a href="#create_service">create_service</a>
&#8226; <a href="#datetime">datetime</a> &#8226; <a href="#datetime">datetime</a>
&#8226; <a href="#encodings">encodings</a> &#8226; <a href="#encodings">encodings</a>
&#8226; <a href="#encodings.aliases">encodings.aliases</a> &#8226; <a href="#encodings.aliases">encodings.aliases</a>
@ -155,7 +154,6 @@ imports:
&#8226; <a href="#functools">functools</a> &#8226; <a href="#functools">functools</a>
&#8226; <a href="#genericpath">genericpath</a> &#8226; <a href="#genericpath">genericpath</a>
&#8226; <a href="#heapq">heapq</a> &#8226; <a href="#heapq">heapq</a>
&#8226; <a href="#http.client">http.client</a>
&#8226; <a href="#io">io</a> &#8226; <a href="#io">io</a>
&#8226; <a href="#keyword">keyword</a> &#8226; <a href="#keyword">keyword</a>
&#8226; <a href="#linecache">linecache</a> &#8226; <a href="#linecache">linecache</a>
@ -2279,26 +2277,6 @@ imported by:
</div> </div>
<div class="node">
<a name="create_service"></a>
<a target="code" href="///C:/Users/Sebastian%20Serfling/PycharmProjects/volume_check/create_service.py" type="text/plain"><tt>create_service</tt></a>
<span class="moduletype">SourceModule</span> <div class="import">
imports:
<a href="#os">os</a>
&#8226; <a href="#requests">requests</a>
&#8226; <a href="#shutil">shutil</a>
&#8226; <a href="#time">time</a>
&#8226; <a href="#zipfile">zipfile</a>
</div>
<div class="import">
imported by:
<a href="#main.py">main.py</a>
</div>
</div>
<div class="node"> <div class="node">
<a name="cryptography"></a> <a name="cryptography"></a>
<a target="code" href="" type="text/plain"><tt>cryptography</tt></a> <a target="code" href="" type="text/plain"><tt>cryptography</tt></a>
@ -5952,7 +5930,6 @@ imports:
<div class="import"> <div class="import">
imported by: imported by:
<a href="#http.cookiejar">http.cookiejar</a> <a href="#http.cookiejar">http.cookiejar</a>
&#8226; <a href="#main.py">main.py</a>
&#8226; <a href="#urllib.request">urllib.request</a> &#8226; <a href="#urllib.request">urllib.request</a>
&#8226; <a href="#urllib3.connection">urllib3.connection</a> &#8226; <a href="#urllib3.connection">urllib3.connection</a>
&#8226; <a href="#urllib3.exceptions">urllib3.exceptions</a> &#8226; <a href="#urllib3.exceptions">urllib3.exceptions</a>
@ -7890,7 +7867,6 @@ imported by:
&#8226; <a href="#charset_normalizer.api">charset_normalizer.api</a> &#8226; <a href="#charset_normalizer.api">charset_normalizer.api</a>
&#8226; <a href="#configparser">configparser</a> &#8226; <a href="#configparser">configparser</a>
&#8226; <a href="#cpuinfo.cpuinfo">cpuinfo.cpuinfo</a> &#8226; <a href="#cpuinfo.cpuinfo">cpuinfo.cpuinfo</a>
&#8226; <a href="#create_service">create_service</a>
&#8226; <a href="#ctypes">ctypes</a> &#8226; <a href="#ctypes">ctypes</a>
&#8226; <a href="#curses">curses</a> &#8226; <a href="#curses">curses</a>
&#8226; <a href="#email.utils">email.utils</a> &#8226; <a href="#email.utils">email.utils</a>
@ -8869,8 +8845,7 @@ imports:
</div> </div>
<div class="import"> <div class="import">
imported by: imported by:
<a href="#create_service">create_service</a> <a href="#main.py">main.py</a>
&#8226; <a href="#main.py">main.py</a>
&#8226; <a href="#requests">requests</a> &#8226; <a href="#requests">requests</a>
&#8226; <a href="#requests.__version__">requests.__version__</a> &#8226; <a href="#requests.__version__">requests.__version__</a>
&#8226; <a href="#requests._internal_utils">requests._internal_utils</a> &#8226; <a href="#requests._internal_utils">requests._internal_utils</a>
@ -9436,7 +9411,6 @@ imports:
<div class="import"> <div class="import">
imported by: imported by:
<a href="#argparse">argparse</a> <a href="#argparse">argparse</a>
&#8226; <a href="#create_service">create_service</a>
&#8226; <a href="#multiprocessing.util">multiprocessing.util</a> &#8226; <a href="#multiprocessing.util">multiprocessing.util</a>
&#8226; <a href="#psutil._compat">psutil._compat</a> &#8226; <a href="#psutil._compat">psutil._compat</a>
&#8226; <a href="#tarfile">tarfile</a> &#8226; <a href="#tarfile">tarfile</a>
@ -10118,7 +10092,6 @@ imported by:
<a href="#_datetime">_datetime</a> <a href="#_datetime">_datetime</a>
&#8226; <a href="#_strptime">_strptime</a> &#8226; <a href="#_strptime">_strptime</a>
&#8226; <a href="#cpuinfo.cpuinfo">cpuinfo.cpuinfo</a> &#8226; <a href="#cpuinfo.cpuinfo">cpuinfo.cpuinfo</a>
&#8226; <a href="#create_service">create_service</a>
&#8226; <a href="#datetime">datetime</a> &#8226; <a href="#datetime">datetime</a>
&#8226; <a href="#email._parseaddr">email._parseaddr</a> &#8226; <a href="#email._parseaddr">email._parseaddr</a>
&#8226; <a href="#email.generator">email.generator</a> &#8226; <a href="#email.generator">email.generator</a>
@ -11974,8 +11947,7 @@ imports:
</div> </div>
<div class="import"> <div class="import">
imported by: imported by:
<a href="#create_service">create_service</a> <a href="#importlib._common">importlib._common</a>
&#8226; <a href="#importlib._common">importlib._common</a>
&#8226; <a href="#importlib.metadata">importlib.metadata</a> &#8226; <a href="#importlib.metadata">importlib.metadata</a>
&#8226; <a href="#requests.utils">requests.utils</a> &#8226; <a href="#requests.utils">requests.utils</a>
&#8226; <a href="#shutil">shutil</a> &#8226; <a href="#shutil">shutil</a>

BIN
dist/VOLUME_CHECK.exe vendored

Binary file not shown.

1
dist/zls_check.txt vendored Normal file
View File

@ -0,0 +1 @@
Volume not Found 2023-09-13 15:24:40.125231 - User: Sebastian Serfling

6
log.txt Normal file
View File

@ -0,0 +1,6 @@
13.09.2023 14:39 - Sebastian Serfling has no access to X: \\172.19.1.3\deployment
Keine Netvolume vorhanden!
Keine Netvolume vorhanden!
Keine Netvolume vorhanden!
Keine Netvolume vorhanden!
Keine Netvolume vorhanden!

View File

@ -4,12 +4,9 @@ import requests
import time import time
import socket import socket
import datetime import datetime
import create_service
import system_info import system_info
import volume import volume
create_service.addservice("VOLUME_CHECK") ## CREATE VOLUME
def request(function,variable): ##API-SErver def request(function,variable): ##API-SErver
url = (f"http://api.stines.de:8001/{function}") url = (f"http://api.stines.de:8001/{function}")
response = requests.post(url,json = variable,headers={'access_token':'^YWUbG7yX*V!tV^KBSd*2c&vdN3wV9a2i7f3hfGFMBYFxi6#mMiJGiaA5KEHE%B*miK%qb7rQ67gmcYP@gqmux8'}) response = requests.post(url,json = variable,headers={'access_token':'^YWUbG7yX*V!tV^KBSd*2c&vdN3wV9a2i7f3hfGFMBYFxi6#mMiJGiaA5KEHE%B*miK%qb7rQ67gmcYP@gqmux8'})
@ -25,12 +22,18 @@ def check_volume_exist():
user = os.getlogin() ## GET CURRENT USER user = os.getlogin() ## GET CURRENT USER
database = request("info/getclient",{"name":hostname}).text.replace('"',"") ##GET DATABASE FROM SQL-SERVER database = request("info/getclient",{"name":hostname}).text.replace('"',"") ##GET DATABASE FROM SQL-SERVER
volume_get = request("info/getvolume",{"name":hostname,"database":database}) ##GET VOLUMES FROM SQL-SERVER volume_get = request("info/getvolume",{"name":hostname,"database":database}) ##GET VOLUMES FROM SQL-SERVER
print(volume_get.text)
space_free = str(system_info.get_single_hdd("free")).replace("['","").replace("]","").replace("'","").replace(",",";") ## FREE SPACE OF VOLUME space_free = str(system_info.get_single_hdd("free")).replace("['","").replace("]","").replace("'","").replace(",",";") ## FREE SPACE OF VOLUME
space_used = str(system_info.get_single_hdd("used")).replace("['","").replace("]","").replace("'","").replace(",",";") ## USED SPACE OF VOLUME space_used = str(system_info.get_single_hdd("used")).replace("['","").replace("]","").replace("'","").replace(",",";") ## USED SPACE OF VOLUME
space_total = str(system_info.get_single_hdd("total")).replace("['","").replace("]","").replace("'","").replace(",",";") ## TOTAL SPACE OF VOLUME space_total = str(system_info.get_single_hdd("total")).replace("['","").replace("]","").replace("'","").replace(",",";") ## TOTAL SPACE OF VOLUME
if volume_get.text == "false": if volume_get.text == "false":
print(volume.get_netvolume())
if volume.get_netvolume() is None:
with open("log.txt", "a") as datei:
datei.writelines(f"Keine Netvolume vorhanden!" + "\n") ## WRITE TO ERRORLOG
pushover_send("Keine Netvolume vorhanden!", hostname) ## SEND ERROR LOG TO PUSHOVER
netvolume = volume.get_netvolume() netvolume = volume.get_netvolume()
values = ( values = (
f"'{hostname}','{system_info.get_local_ip()}','{system_info.get_winver()}','{system_info.get_cpu_brand()}','{system_info.get_cpu_core()}','{system_info.get_ram_info()}','{space_total}','{space_free}','{space_used}'") f"'{hostname}','{system_info.get_local_ip()}','{system_info.get_winver()}','{system_info.get_cpu_brand()}','{system_info.get_cpu_core()}','{system_info.get_ram_info()}','{space_total}','{space_free}','{space_used}'")

View File

@ -9,17 +9,29 @@ def get_netvolume():
"Select-Object DeviceID,ProviderName | " "Select-Object DeviceID,ProviderName | "
"ConvertTo-Json" "ConvertTo-Json"
) )
volume_count = ("(Get-CimInstance -ClassName Win32_LogicalDisk | Where-Object -Property DriveType -EQ 4).Count")
# PowerShell-Befehl ausführen und das Ergebnis in eine Python-Variable laden # PowerShell-Befehl ausführen und das Ergebnis in eine Python-Variable laden
result = subprocess.run( result = subprocess.run(
["powershell", "-Command", powershell_command], ["powershell", "-Command", powershell_command],
capture_output=True, capture_output=True,
text=True text=True
) )
volume_count_result = subprocess.run (
# Die Ausgabe als JSON interpretieren und in ein Python-Array laden ["powershell", "-Command", volume_count],
net_drives = json.loads(result.stdout) capture_output=True,
text=True
)
volumes = [] volumes = []
for i in net_drives: if result.stdout != '':
volumes.append(f"{i['DeviceID']};{i['ProviderName']}") net_drives = json.loads(result.stdout)
return volumes else:
return None
if volume_count_result.stdout != '':
for i in net_drives:
volumes.append(f"{i['DeviceID']};{i['ProviderName']}")
return volumes
else:
volumes.append(f"{net_drives['DeviceID'][0]};{net_drives['ProviderName']}")
return volumes
# Die Ausgabe alvolumess JSON interpretieren und in ein Python-Array laden
print(get_netvolume())