summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 39c8293)
raw | patch | inline | side by side (parent: 39c8293)
author | Joerg Linge <pitchfork@pnp4nagios.org> | |
Thu, 3 Jun 2010 16:47:37 +0000 (00:47 +0800) | ||
committer | Sven Velt <sven@velt.de> | |
Thu, 3 Jun 2010 20:59:57 +0000 (04:59 +0800) |
nagixsc_http2nagios.py | patch | blob | history |
diff --git a/nagixsc_http2nagios.py b/nagixsc_http2nagios.py
index e327bc18f46368e9017859848f4d8ac2d1e43e5a..0a709a585b9ea745d5e376c480808ddcbf22d85e 100755 (executable)
--- a/nagixsc_http2nagios.py
+++ b/nagixsc_http2nagios.py
print 'Config file error: %s ' % e
sys.exit(1)
+if os.access(config['checkresultdir'],os.W_OK) == False:
+ print 'Checkresult directory "%s" is not writable.' % config['checkresultdir']
+ sys.exit(1)
+
users = {}
for u in cfgread.options('users'):
users[u] = cfgread.get('users', u)