Remove OSBS build check from nagios
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
parent
9ba5029f48
commit
ae70d3d6d3
2 changed files with 0 additions and 21 deletions
|
@ -1,20 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
sp = subprocess.Popen(
|
||||
["oc", "-n", "osbs-fedora", "get", "builds"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
stdin=subprocess.PIPE
|
||||
)
|
||||
sp_out, sp_err = sp.communicate()
|
||||
sp_out = sp_out.split('\n')
|
||||
|
||||
if sp_out[0].split()[0] == 'NAME':
|
||||
print "OK: OSBS is responsive to 'oc get builds'"
|
||||
sys.exit(0)
|
||||
else:
|
||||
print "CRITICAL: OSBS UNRESPONSIVE"
|
||||
sys.exit(2)
|
Loading…
Add table
Add a link
Reference in a new issue