ADD zls_check.py
parent
077ebae78f
commit
1aea2faa3d
3
main.py
3
main.py
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue