Catch another UNKNOWN condition for the fedmsg nagios checks.

This commit is contained in:
Ralph Bean 2014-08-07 11:58:35 +00:00
parent 181881a9f2
commit a365f42bd8
3 changed files with 12 additions and 0 deletions

View file

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