Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Checks if a given file is present in AWS S3 via the HTTP Rest API
Current Version
Last Release Date
October 7, 2013
Owner
Hari Sekhon
Website
https://github.com/harisekhon/nagios-plugins
Download URL
Compatible With
Part of the Advanced Nagios Plugins Collection, download it here:
check_aws_s3_file.pl
Nagios Plugin to check if a given file is present in AWS S3 via the HTTP Rest API
Bucket names must follow the more restrictive 3 to 63 alphanumeric character international standard, dots are not supported in the bucket name due to using strict DNS shortname regex validation
usage: check_aws_s3_file.pl [ options ]
-f --file AWS S3 object path for the file -b --bucket AWS S3 bucket --aws-access-key $AWS_ACCESS_KEY - can be passed on command line or preferably taken from environment variable --aws-secret-key $AWS_SECRET_KEY - can be passed on command line or preferably taken from environment variable -G --get Perform full HTTP GET request instead of default HTTP HEAD. This will download the whole file, useful if you want to see the full download time from AWS S3. You may need to increase the --timeout to fetch file if more than a few MB --no-ssl Don't use SSL, connect to AWS S3 with plaintext HTTP instead of HTTPS (not recommended) --ssl-CA-path Path to CA certificate directory for validating SSL certificate --ssl-noverify Do not verify SSL certificate from AWS S3 (not recommended) -h --help Print description and usage options -t --timeout Timeout in secs (default: 10) -v --verbose Verbose mode (-v, -vv, -vvv ...) -V --version Print version and exit
Greetings. Thank you for the pluggin, pretty simple and easy to configure although i have an issue when i check if a file exists in aws s3 bucket, for ./check_aws_s3_file.pl --aws-access-key xxxxxxxxxxxxxx--aws-secret-key xxxxxxxxxxxxxxxxxxx -b bucket-name -f file-name i get the following output OK: File does not exist: at ./check_aws_s3_file.pl line 145 . but im sure the file exists in my aws-s3-bucket. is there any specific syntax i should follow to give the file-name or bucket-name. Thank you
You must be logged in to submit a review.
To:
From: