put in the first run at new nagios configs
This commit is contained in:
parent
a1957d29d4
commit
8cf72ff116
310 changed files with 13255 additions and 26 deletions
14
roles/nagios_client/files/scripts/check_osbs_api.py
Executable file
14
roles/nagios_client/files/scripts/check_osbs_api.py
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import requests
|
||||
import sys
|
||||
|
||||
r = requests.get("https://localhost:8443/", verify=False)
|
||||
|
||||
if 'paths' in r.json().keys():
|
||||
print "OK: OSBS API endpoint is responding with path data"
|
||||
sys.exit(0)
|
||||
else:
|
||||
print "CRITICAL: OSBS API not responding properly"
|
||||
sys.exit(2)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue