put in the first run at new nagios configs

This commit is contained in:
Stephen Smoogen 2017-01-05 00:55:16 +00:00
parent a1957d29d4
commit 8cf72ff116
310 changed files with 13255 additions and 26 deletions

View 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)