aboutsummaryrefslogtreecommitdiff
path: root/modules/pkgs/check_aws_s3_file/check_aws_s3_file.conf
blob: e2ec2b54203fc9671eea031a28aebf520a531060 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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$"
}