aboutsummaryrefslogtreecommitdiff
path: root/modules/pkgs/check_aws_s3_file/check_aws_s3_file.conf
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2018-10-07 12:33:33 +0300
committerIgor Pashev <pashev.igor@gmail.com>2018-10-07 13:36:23 +0300
commit3d1d3f7440a1bebe9f82e03747fe558f5f0b5435 (patch)
tree24a2c91e55e4d336a8e0f44b77b14190b9181bff /modules/pkgs/check_aws_s3_file/check_aws_s3_file.conf
parentee61b02e5411ea769a3b3de8b573d44822f8a577 (diff)
downloadnixsap-3d1d3f7440a1bebe9f82e03747fe558f5f0b5435.tar.gz
Add check_aws_s3_file
Diffstat (limited to 'modules/pkgs/check_aws_s3_file/check_aws_s3_file.conf')
-rw-r--r--modules/pkgs/check_aws_s3_file/check_aws_s3_file.conf18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/pkgs/check_aws_s3_file/check_aws_s3_file.conf b/modules/pkgs/check_aws_s3_file/check_aws_s3_file.conf
new file mode 100644
index 0000000..e2ec2b5
--- /dev/null
+++ b/modules/pkgs/check_aws_s3_file/check_aws_s3_file.conf
@@ -0,0 +1,18 @@
+object CheckCommand "aws-s3-file" {
+ import "plugin-check-command"
+
+ command = [ "check_aws_s3_file" ]
+
+ arguments = {
+ "-f" = "$aws_s3_file_credentials$"
+ "-b" = "$aws_s3_file_bucket$"
+ "-k" = "$aws_s3_file_key$"
+ "-s" = "$aws_s3_file_size_warn$"
+ "-S" = "$aws_s3_file_size_crit$"
+ "-t" = "$aws_s3_file_age_warn$"
+ "-T" = "$aws_s3_file_age_crit$"
+ }
+ vars.aws_s3_file_bucket = "$host.name$"
+ vars.aws_s3_file_key = "$service.name$"
+}
+