check_sms

Usage
./check_sms.pl [OPTIONS] [-f configuration_file]
Options
  • -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

Description

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.

Configuration file for plugin
  • 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)

Possible outputs with meaning
  • 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: 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.