diff --git a/scripts/zabbix/pathchecker.py b/scripts/zabbix/pathchecker.py new file mode 100644 index 0000000..925ffd7 --- /dev/null +++ b/scripts/zabbix/pathchecker.py @@ -0,0 +1,11 @@ +import os,sys + +files = sys.argv[1:] +if not files: + print "you must specify a file" + sys.exit(1) +for file in files: + if os.access(file, os.R_OK): + print 1 + else: + print 0