Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_aws_s3_file.pl (Advanced Nagios Plugins Collection)
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios XI
36120
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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
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)
byarun.tp, May 20, 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
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