Home Directory Plugins Cloud check_aws_s3_file.pl (Advanced Nagios Plugins Collection)

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_aws_s3_file.pl (Advanced Nagios Plugins Collection)

Rating
1 vote
Favoured:
0
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
Hits
32801
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Checks if a given file is present in AWS S3 via the HTTP Rest API
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)
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