Cloud

check_aws_s3_file.pl (Advanced Nagios Plugins Collection)

Description:

Checks if a given file is present in AWS S3 via the HTTP Rest API

Current Version

Last Release Date

October 7, 2013

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI

Owner


Project Notes
Part of the Advanced Nagios Plugins Collection, download it here: https://github.com/harisekhon/nagios-plugins 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
Reviews (1) Add a Review
check_aws_s3_file.pl -- help
by arun.tp, May 31, 2014

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



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
5 (1)
Favorites
0
Views
36,175