ADD zls_check.py
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user