Catch another UNKNOWN condition for the fedmsg nagios checks.
This commit is contained in:
parent
181881a9f2
commit
a365f42bd8
3 changed files with 12 additions and 0 deletions
|
@ -17,6 +17,10 @@ try:
|
|||
print "UNKNOWN - %s does not exist" % fname
|
||||
sys.exit(3)
|
||||
|
||||
if not os.access(fname, os.W_OK):
|
||||
print "UNKNOWN - cannot write to %s" % fname
|
||||
sys.exit(3)
|
||||
|
||||
connect_to = "ipc:///%s" % fname
|
||||
ctx = zmq.Context()
|
||||
s = ctx.socket(zmq.SUB)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue