check_sms
./check_sms.pl [OPTIONS] [-f configuration_file]
-
-h or --help: prints short usage tips
-
-V or --version: prints plugin versions
-
-v X or --verbose X: sets verbosity level to X (see UMI docs)
-
-t Y or --timeout Y: sets plugin execution timeout to Y seconds
Plugin that checks Storage Management Service of UNICORE. Written in Perl, v5.10.0 (requires commons.pm module in plugin directory or one level higher). Needs UCC in version 1.4.0 or higher and proper configuration file for this client. Plugin generates pseudorandom file with given size in LOGS_DIR. Then puts file (measuers upload speed), gets this file (measures download speed) and compares this files. If they are equal, test ends with OK message.
-
UCC_PATH: absolute path to UNICORE Commandline Client binary (in version 1.4.0 or higher)
-
UCC_CONFIG: absolute path to valid configuration file for UCC (remember to set absolute paths to keystore and trustore in this file!)
-
REGISTRY_URL: address of registry that contains SMS you want to check
-
LOGS_DIR: directory where script should store UCC logs and temporary files
-
SMS_ADDRESS: URL of SMS to be checked, can be given in any ucc-acceptable form, i.e. https:// URL or u6:// meta-URL.
-
FILE_SIZE_KBS: size of file used to test (default: 1000 Kbytes)
-
CRITICAL: Unable to generate random file to test: Unable to initialize test file. Check if device /dev/urandom is available.
-
CRITICAL: Unable to get access to the SMS at XXX: Unable to connect to the SMS. Check if appropriate UNICORE/X is running and available for monitoring user.
-
CRITICAL: Unable to write file at server side on XXX: Check directory permissions on the server (IOException).
-
CRITICAL: Unable to upload file to XXX: Next lines should display reason of inability to upload.
-
CRITICAL: Unable to upload file - XXX is not a valid location: Probably SMS is not available, check UCC log below.
-
CRITICAL: Unable to get file from XXX: Upload succeded but download failed. Probaly server fault occured between these requests.
-
CRITICAL: Download succeeded, but downloaded file is empty (XXX on XXX): Probably plugin tried to download non-existing file. Check is file exists.
-
CRITICAL: Downloaded file differs from uploaded one.: Should not happen. If occurs, local and remote files are not deleted.
-
OK: SMS at XXX works with U:XXX kB/s, D:XXX kB/s: Everything is OK.
-
WARNING: SMS at XXX works, but has been tested with protocol XXX instead of requested XXX: Probably requested protocol is not supported by storage server. Check wsrf properties of storage.