check_freespace

Usage
./check_freespace.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

  • -w W or --warning W: sets warning threshold to W bytes

  • -c C or --critical C: sets critical threshold to C bytes

Description

Plugin checks free space on SMS of given url. Written in Perl, v.5.10.0 (requires commons.pm module in plugin directory or one level higher). Needs UCC in version 1.4 or higher and proper configuration file for this client. Default values are 10GB for warning and 1GB for critical.

Configuration file for plugin
  • UCC_PATH: absolute path to UNICORE Commandline Client binary (in version 1.4 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

  • SMS_URL: URL of SMS to check free space

  • LOGS_DIR: Path to logs directory

Possible outputs with meaning
  • WARNING: SMS at … doesn’t provide free space information: Probe was able to contact SMS, but this service does not publish information on free space. You should consider updating UNICORE/X component.

  • UNKNOWN: Cannot get access to the SMS …: Unable to get data from SMS. More information should be provided by check_sms probe.

  • OK|WARNING|CRITICAL: There is … of free space on …: Status of this message depends on the amount of free space on SMS. If there is more than warning threshold, it is OK, if between critical and warning, it is WARNING, if less than critical, it is CRITICAL.