The check_gridstorage probe can check file operations against grid storage protocols, including SRM, GridFTP, LFC, and other protocols supported by arccp and arcls.
The main configuration section of this probe is gridstorage, see Configuration Files. This probe requires an X509 proxy, see Proxy Certificate.
To perform read-only checks against a URL pointing to an existing file, use:
check_gridstorage --url <url>
To perform read-write checks against an URL, use either:
check_gridstorage --url <url> --enable-write
check_gridstorage -H <hostname> --dir-url <url> --enable-write
In the latter case, the probe will add a file name based on the host name and a time stamp. The --dir-url=<url> option will not work correctly with the LFC protocol, since the file name needs to be encoded inside the URL.
The probe will do the following checks:
Any failure in the above checks will return CRITICAL to Nagios.
If you wish to do a more thorough list-test, you can ask the probe to list the whole directory containing the test file. This is done by passing --list-dir. This will use --dir-url=<url> if specified, otherwise it will guess the URL of the containing directory by stripping off the last component of --url=<url>. In any case, the listed URL must contain the test-file. Be aware that if the directory contains many entries, the probe may time out.
You can disable the read or list tests with --disable-read and --disable-list.
LFC tests are special in that write operations associate a logical path with a physical storage. The probe therefore allows passing an URL to be used only for the write operation, so the write-enabled test should look something like
check_gridstorage \
--enable-write \
--write-url=lfc://<physical-url>@<lfc-host>/<logical-path> \
--url=lfc://<lfc-host>/<logical-path> \
[--list-dir]