ADD zls_check.py
parent
fb335df2a1
commit
f60bae26bb
|
|
@ -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,
|
||||
)
|
||||
|
|
@ -401,6 +401,18 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\xml\\sax\\xmlreader.py',
|
||||
'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',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\hmac.py',
|
||||
|
|
@ -501,6 +513,18 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\multiprocessing\\__init__.py',
|
||||
'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',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\getpass.py',
|
||||
|
|
@ -529,30 +553,6 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\http\\cookiejar.py',
|
||||
'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',
|
||||
'C:\\Users\\Sebastian Serfling\\PycharmProjects\\volume_check\\volume.py',
|
||||
'PYMODULE'),
|
||||
|
|
@ -664,10 +664,6 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\cpuinfo\\cpuinfo.py',
|
||||
'PYMODULE'),
|
||||
('create_service',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\volume_check\\create_service.py',
|
||||
'PYMODULE'),
|
||||
('datetime',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\datetime.py',
|
||||
|
|
@ -976,6 +972,10 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\pyexpat.pyd',
|
||||
'EXTENSION'),
|
||||
('_ssl.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
|
||||
'EXTENSION'),
|
||||
('_multiprocessing.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_multiprocessing.pyd',
|
||||
|
|
@ -988,10 +988,6 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_queue.pyd',
|
||||
'EXTENSION'),
|
||||
('_ssl.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
|
||||
'EXTENSION'),
|
||||
('unicodedata.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\unicodedata.pyd',
|
||||
|
|
@ -1020,14 +1016,14 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libcrypto-1_1.dll',
|
||||
'BINARY'),
|
||||
('libffi-7.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
|
||||
'BINARY'),
|
||||
('libssl-1_1.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libssl-1_1.dll',
|
||||
'BINARY'),
|
||||
('libffi-7.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
|
||||
'BINARY'),
|
||||
('python3.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python3.dll',
|
||||
|
|
@ -1038,12 +1034,12 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\volume_check\\build\\VOLUME_CHECK\\base_library.zip',
|
||||
'DATA'),
|
||||
('certifi\\py.typed',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\py.typed',
|
||||
'DATA'),
|
||||
('certifi\\cacert.pem',
|
||||
'C:\\Users\\Sebastian '
|
||||
'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')],
|
||||
[])
|
||||
|
|
|
|||
|
|
@ -92,6 +92,10 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\pyexpat.pyd',
|
||||
'EXTENSION'),
|
||||
('_ssl.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
|
||||
'EXTENSION'),
|
||||
('_multiprocessing.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_multiprocessing.pyd',
|
||||
|
|
@ -104,10 +108,6 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_queue.pyd',
|
||||
'EXTENSION'),
|
||||
('_ssl.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
|
||||
'EXTENSION'),
|
||||
('unicodedata.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\unicodedata.pyd',
|
||||
|
|
@ -136,14 +136,14 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libcrypto-1_1.dll',
|
||||
'BINARY'),
|
||||
('libffi-7.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
|
||||
'BINARY'),
|
||||
('libssl-1_1.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libssl-1_1.dll',
|
||||
'BINARY'),
|
||||
('libffi-7.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
|
||||
'BINARY'),
|
||||
('python3.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python3.dll',
|
||||
|
|
@ -152,18 +152,18 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\volume_check\\build\\VOLUME_CHECK\\base_library.zip',
|
||||
'DATA'),
|
||||
('certifi\\py.typed',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\py.typed',
|
||||
'DATA'),
|
||||
('certifi\\cacert.pem',
|
||||
'C:\\Users\\Sebastian '
|
||||
'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')],
|
||||
[],
|
||||
False,
|
||||
False,
|
||||
1692634256,
|
||||
1694611831,
|
||||
[('run.exe',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\PyInstaller\\bootloader\\Windows-64bit-intel\\run.exe',
|
||||
|
|
|
|||
|
|
@ -83,6 +83,10 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\pyexpat.pyd',
|
||||
'EXTENSION'),
|
||||
('_ssl.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
|
||||
'EXTENSION'),
|
||||
('_multiprocessing.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_multiprocessing.pyd',
|
||||
|
|
@ -95,10 +99,6 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_queue.pyd',
|
||||
'EXTENSION'),
|
||||
('_ssl.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
|
||||
'EXTENSION'),
|
||||
('unicodedata.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\unicodedata.pyd',
|
||||
|
|
@ -127,14 +127,14 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libcrypto-1_1.dll',
|
||||
'BINARY'),
|
||||
('libffi-7.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
|
||||
'BINARY'),
|
||||
('libssl-1_1.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libssl-1_1.dll',
|
||||
'BINARY'),
|
||||
('libffi-7.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
|
||||
'BINARY'),
|
||||
('python3.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python3.dll',
|
||||
|
|
@ -143,13 +143,13 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\volume_check\\build\\VOLUME_CHECK\\base_library.zip',
|
||||
'DATA'),
|
||||
('certifi\\py.typed',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\certifi\\py.typed',
|
||||
'DATA'),
|
||||
('certifi\\cacert.pem',
|
||||
'C:\\Users\\Sebastian '
|
||||
'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')],
|
||||
False,
|
||||
False,
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -120,10 +120,6 @@
|
|||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\volume_check\\venv\\lib\\site-packages\\cpuinfo\\cpuinfo.py',
|
||||
'PYMODULE'),
|
||||
('create_service',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\volume_check\\create_service.py',
|
||||
'PYMODULE'),
|
||||
('csv',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\lib\\csv.py',
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -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 '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 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 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)
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ imports:
|
|||
• <a href="#collections">collections</a>
|
||||
• <a href="#collections.abc">collections.abc</a>
|
||||
• <a href="#copyreg">copyreg</a>
|
||||
• <a href="#create_service">create_service</a>
|
||||
• <a href="#datetime">datetime</a>
|
||||
• <a href="#encodings">encodings</a>
|
||||
• <a href="#encodings.aliases">encodings.aliases</a>
|
||||
|
|
@ -155,7 +154,6 @@ imports:
|
|||
• <a href="#functools">functools</a>
|
||||
• <a href="#genericpath">genericpath</a>
|
||||
• <a href="#heapq">heapq</a>
|
||||
• <a href="#http.client">http.client</a>
|
||||
• <a href="#io">io</a>
|
||||
• <a href="#keyword">keyword</a>
|
||||
• <a href="#linecache">linecache</a>
|
||||
|
|
@ -2279,26 +2277,6 @@ imported by:
|
|||
|
||||
</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>
|
||||
• <a href="#requests">requests</a>
|
||||
• <a href="#shutil">shutil</a>
|
||||
• <a href="#time">time</a>
|
||||
• <a href="#zipfile">zipfile</a>
|
||||
|
||||
</div>
|
||||
<div class="import">
|
||||
imported by:
|
||||
<a href="#main.py">main.py</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="node">
|
||||
<a name="cryptography"></a>
|
||||
<a target="code" href="" type="text/plain"><tt>cryptography</tt></a>
|
||||
|
|
@ -5952,7 +5930,6 @@ imports:
|
|||
<div class="import">
|
||||
imported by:
|
||||
<a href="#http.cookiejar">http.cookiejar</a>
|
||||
• <a href="#main.py">main.py</a>
|
||||
• <a href="#urllib.request">urllib.request</a>
|
||||
• <a href="#urllib3.connection">urllib3.connection</a>
|
||||
• <a href="#urllib3.exceptions">urllib3.exceptions</a>
|
||||
|
|
@ -7890,7 +7867,6 @@ imported by:
|
|||
• <a href="#charset_normalizer.api">charset_normalizer.api</a>
|
||||
• <a href="#configparser">configparser</a>
|
||||
• <a href="#cpuinfo.cpuinfo">cpuinfo.cpuinfo</a>
|
||||
• <a href="#create_service">create_service</a>
|
||||
• <a href="#ctypes">ctypes</a>
|
||||
• <a href="#curses">curses</a>
|
||||
• <a href="#email.utils">email.utils</a>
|
||||
|
|
@ -8869,8 +8845,7 @@ imports:
|
|||
</div>
|
||||
<div class="import">
|
||||
imported by:
|
||||
<a href="#create_service">create_service</a>
|
||||
• <a href="#main.py">main.py</a>
|
||||
<a href="#main.py">main.py</a>
|
||||
• <a href="#requests">requests</a>
|
||||
• <a href="#requests.__version__">requests.__version__</a>
|
||||
• <a href="#requests._internal_utils">requests._internal_utils</a>
|
||||
|
|
@ -9436,7 +9411,6 @@ imports:
|
|||
<div class="import">
|
||||
imported by:
|
||||
<a href="#argparse">argparse</a>
|
||||
• <a href="#create_service">create_service</a>
|
||||
• <a href="#multiprocessing.util">multiprocessing.util</a>
|
||||
• <a href="#psutil._compat">psutil._compat</a>
|
||||
• <a href="#tarfile">tarfile</a>
|
||||
|
|
@ -10118,7 +10092,6 @@ imported by:
|
|||
<a href="#_datetime">_datetime</a>
|
||||
• <a href="#_strptime">_strptime</a>
|
||||
• <a href="#cpuinfo.cpuinfo">cpuinfo.cpuinfo</a>
|
||||
• <a href="#create_service">create_service</a>
|
||||
• <a href="#datetime">datetime</a>
|
||||
• <a href="#email._parseaddr">email._parseaddr</a>
|
||||
• <a href="#email.generator">email.generator</a>
|
||||
|
|
@ -11974,8 +11947,7 @@ imports:
|
|||
</div>
|
||||
<div class="import">
|
||||
imported by:
|
||||
<a href="#create_service">create_service</a>
|
||||
• <a href="#importlib._common">importlib._common</a>
|
||||
<a href="#importlib._common">importlib._common</a>
|
||||
• <a href="#importlib.metadata">importlib.metadata</a>
|
||||
• <a href="#requests.utils">requests.utils</a>
|
||||
• <a href="#shutil">shutil</a>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
Volume not Found 2023-09-13 15:24:40.125231 - User: Sebastian Serfling
|
||||
|
|
@ -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!
|
||||
9
main.py
9
main.py
|
|
@ -4,12 +4,9 @@ import requests
|
|||
import time
|
||||
import socket
|
||||
import datetime
|
||||
import create_service
|
||||
import system_info
|
||||
import volume
|
||||
|
||||
create_service.addservice("VOLUME_CHECK") ## CREATE VOLUME
|
||||
|
||||
def request(function,variable): ##API-SErver
|
||||
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'})
|
||||
|
|
@ -25,12 +22,18 @@ def check_volume_exist():
|
|||
user = os.getlogin() ## GET CURRENT USER
|
||||
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
|
||||
print(volume_get.text)
|
||||
|
||||
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_total = str(system_info.get_single_hdd("total")).replace("['","").replace("]","").replace("'","").replace(",",";") ## TOTAL SPACE OF VOLUME
|
||||
|
||||
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()
|
||||
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}'")
|
||||
|
|
|
|||
26
volume.py
26
volume.py
|
|
@ -9,17 +9,29 @@ def get_netvolume():
|
|||
"Select-Object DeviceID,ProviderName | "
|
||||
"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
|
||||
result = subprocess.run(
|
||||
["powershell", "-Command", powershell_command],
|
||||
capture_output=True,
|
||||
text=True
|
||||
)
|
||||
|
||||
# Die Ausgabe als JSON interpretieren und in ein Python-Array laden
|
||||
net_drives = json.loads(result.stdout)
|
||||
volume_count_result = subprocess.run (
|
||||
["powershell", "-Command", volume_count],
|
||||
capture_output=True,
|
||||
text=True
|
||||
)
|
||||
volumes = []
|
||||
for i in net_drives:
|
||||
volumes.append(f"{i['DeviceID']};{i['ProviderName']}")
|
||||
return volumes
|
||||
if result.stdout != '':
|
||||
net_drives = json.loads(result.stdout)
|
||||
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())
|
||||
Loading…
Reference in New Issue