Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
abakaldin committed Nov 25, 2021
0 parents commit a3fc26e
Show file tree
Hide file tree
Showing 3,238 changed files with 748,559 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
32 changes: 32 additions & 0 deletions .github/workflows/check.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env python
import sys
import time
from zabbix.api import ZabbixAPI

for x in range(20):
try:
zapi = ZabbixAPI(url="http://localhost:8050/api_jsonrpc.php",
user="Admin",
password="zabbix")
except:
print('Zabbix 5.0 API is not ready...')
time.sleep(5)
else:
zapi.do_request('user.logout')
break;
else:
sys.exit('Failed to wait for Zabbix API to be ready')

for x in range(20):
try:
zapi = ZabbixAPI(url="http://localhost:8054/api_jsonrpc.php",
user="Admin",
password="zabbix")
except:
print('Zabbix 5.4 API is not ready...')
time.sleep(5)
else:
zapi.do_request('user.logout')
break;
else:
sys.exit('Failed to wait for Zabbix API to be ready')
Loading

0 comments on commit a3fc26e

Please sign in to comment.