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)