ADD zls_check.py

master
Sebastian Serfling 2023-11-01 09:09:45 +01:00
parent 077ebae78f
commit 1aea2faa3d
1 changed files with 1 additions and 2 deletions

View File

@ -118,9 +118,8 @@ else:
else:
errorcode = f"{time} - Unknow ERROR Code {str(e.stderr)}"
request("report/errorlog",{"datum": time,"hostname":hostname,"samaccountname":user,"errorcode":errorcode})
with open("log.txt", "a") as datei:
datei.writelines(f"{errorcode}" + "\n") ## WRITE TO ERRORLOG
# # # pushover_send(errorcode, hostname) ## SEND ERROR LOG TO PUSHOVER
# #
# # while True: