Skip to content
This repository was archived by the owner on Apr 20, 2021. It is now read-only.

Add aws checks #37

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file removed aws/.keep
Empty file.
120 changes: 120 additions & 0 deletions aws/alb/check-alb-target-group-health.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
---
# Description
# Check the health of Application Load Balancer (ALB) target groups
#
# Instructions
# 1. Add the "aws" or "aws/alb" subscriptions to agents that should run this
# check.
# 2. More configuration options are available for this plugin; please see the
# plugin documentation for more details.
#
# Documentation
# - Usage: https://github.com/sensu-plugins/sensu-plugins-aws#usage
#
# Contributors
# The following individuals have contributed to this configuration template:
# - Todd Campbell, @nixwiz
# - Caleb Hailey, @calebhailey
type: CheckConfig
api_version: core/v2
metadata:
name: check-alb-target-group-health
spec:
command: >-
check-alb-target-group-health.rb
--aws-region {{ .annotations.check_alb_target_group_health_aws_region | default "us-east-1" }}
--target-group {{ .annotations.check_alb_target_group_health_target_group | default "target-group-1" }}
runtime_assets:
- sensu-plugins/sensu-plugins-aws:18.5.0
- sensu/sensu-ruby-runtime:0.0.10
publish: false
subscriptions:
- aws
- aws/alb
interval: 30
timeout: 10
ttl: 0
proxy_entity_name: ""
stdin: false
handlers:
- alert
---
type: Asset
api_version: core/v2
metadata:
name: sensu-plugins-aws:18.5.0
labels:
annotations:
io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-aws
io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-aws
io.sensu.bonsai.tier: Community
io.sensu.bonsai.version: 18.4.0
io.sensu.bonsai.namespace: sensu-plugins
io.sensu.bonsai.name: sensu-plugins-aws
io.sensu.bonsai.tags: ruby-runtime-2.4.4
spec:
builds:
- url: https://assets.bonsai.sensu.io/5f04e0fd667ec7b89b5a570c03528a476859b08c/sensu-plugins-aws_18.4.0_alpine_linux_amd64.tar.gz
sha512: e8ff3ac85cc7dbf8c6ebd6dc0500cffbc9ff3863a6ef6bbdc1a9926a3b4b3846c16cba291e9be9e35652038cdd929ed0222f3f1d8dace7a4a7295836b92d372d
filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
- url: https://assets.bonsai.sensu.io/5f04e0fd667ec7b89b5a570c03528a476859b08c/sensu-plugins-aws_18.4.0_centos_linux_amd64.tar.gz
sha512: b68da32e0e7228e2c1e81b3cbcdd0358fb099a9df68d6ded88222a252593107951f3ed3fe0ed7e49610a5631c397494c786e0a1e3ee9a47fa905bfa0c3db894e
filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- url: https://assets.bonsai.sensu.io/5f04e0fd667ec7b89b5a570c03528a476859b08c/sensu-plugins-aws_18.4.0_debian_linux_amd64.tar.gz
sha512: c057951d33aa1d4e952b2f781df452e55ab4b5f39cedc250ae209bc6630858797ffb82fc8e445e7efe50b269ece46a3aa74e45e4c2da6b31d3d8a4dbfdd3012a
filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'debian'
---
type: Asset
api_version: core/v2
metadata:
annotations:
io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime
io.sensu.bonsai.name: sensu-ruby-runtime
io.sensu.bonsai.namespace: sensu
io.sensu.bonsai.tags: ""
io.sensu.bonsai.tier: Community
io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime
io.sensu.bonsai.version: 0.0.10
name: sensu/sensu-ruby-runtime:0.0.10
spec:
builds:
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- parseInt(entity.system.platform_version.split('.')[0]) == 6
headers: null
sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'debian'
headers: null
sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- parseInt(entity.system.platform_version.split('.')[0]) > 6
headers: null
sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
- entity.system.platform_version.split('.')[0] == '3'
headers: null
sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz
122 changes: 122 additions & 0 deletions aws/asg/check-asg-instances-created.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
---
# Description
# Check AutoScalingGroup Instances are terminated and launching last hour
#
# Instructions
# 1. Add the "aws" or "aws/asg" subscriptions to agents that should run this
# check.
# 2. More configuration options are available for this plugin; please see the
# plugin documentation for more details.
#
# Documentation
# - Usage: https://github.com/sensu-plugins/sensu-plugins-aws#usage
#
# Contributors
# The following individuals have contributed to this configuration template:
# - Todd Campbell, @nixwiz
# - Caleb Hailey, @calebhailey
type: CheckConfig
api_version: core/v2
metadata:
name: check-asg-instances-created
spec:
command: >-
check-asg-instances-created.rb
--aws-region {{ .annotations.check_asg_instances_created_aws_region | default "us-east-1" }}
--asg_group_name {{ .annotations.check_asg_instances_created_asg_group_name | default "asg-group-1" }}
--warning_limit {{ .annotations.check_asg_instances_created_asg_group_name | default 3 }}
--critical_limit {{ .annotations.check_asg_instances_created_asg_group_name | default 4 }}
runtime_assets:
- sensu-plugins/sensu-plugins-aws:18.5.0
- sensu/sensu-ruby-runtime:0.0.10
publish: false
subscriptions:
- aws
- aws/asg
interval: 30
timeout: 10
ttl: 0
proxy_entity_name: ""
stdin: false
handlers:
- alert
---
type: Asset
api_version: core/v2
metadata:
name: sensu-plugins-aws:18.5.0
labels:
annotations:
io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-aws
io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-aws
io.sensu.bonsai.tier: Community
io.sensu.bonsai.version: 18.4.0
io.sensu.bonsai.namespace: sensu-plugins
io.sensu.bonsai.name: sensu-plugins-aws
io.sensu.bonsai.tags: ruby-runtime-2.4.4
spec:
builds:
- url: https://assets.bonsai.sensu.io/5f04e0fd667ec7b89b5a570c03528a476859b08c/sensu-plugins-aws_18.4.0_alpine_linux_amd64.tar.gz
sha512: e8ff3ac85cc7dbf8c6ebd6dc0500cffbc9ff3863a6ef6bbdc1a9926a3b4b3846c16cba291e9be9e35652038cdd929ed0222f3f1d8dace7a4a7295836b92d372d
filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
- url: https://assets.bonsai.sensu.io/5f04e0fd667ec7b89b5a570c03528a476859b08c/sensu-plugins-aws_18.4.0_centos_linux_amd64.tar.gz
sha512: b68da32e0e7228e2c1e81b3cbcdd0358fb099a9df68d6ded88222a252593107951f3ed3fe0ed7e49610a5631c397494c786e0a1e3ee9a47fa905bfa0c3db894e
filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- url: https://assets.bonsai.sensu.io/5f04e0fd667ec7b89b5a570c03528a476859b08c/sensu-plugins-aws_18.4.0_debian_linux_amd64.tar.gz
sha512: c057951d33aa1d4e952b2f781df452e55ab4b5f39cedc250ae209bc6630858797ffb82fc8e445e7efe50b269ece46a3aa74e45e4c2da6b31d3d8a4dbfdd3012a
filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'debian'
---
type: Asset
api_version: core/v2
metadata:
annotations:
io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime
io.sensu.bonsai.name: sensu-ruby-runtime
io.sensu.bonsai.namespace: sensu
io.sensu.bonsai.tags: ""
io.sensu.bonsai.tier: Community
io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime
io.sensu.bonsai.version: 0.0.10
name: sensu/sensu-ruby-runtime:0.0.10
spec:
builds:
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- parseInt(entity.system.platform_version.split('.')[0]) == 6
headers: null
sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'debian'
headers: null
sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- parseInt(entity.system.platform_version.split('.')[0]) > 6
headers: null
sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
- entity.system.platform_version.split('.')[0] == '3'
headers: null
sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz
120 changes: 120 additions & 0 deletions aws/asg/check-asg-instances-inservice.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
---
# Description
# Check AutoScalingGroup Instances in service
#
# Instructions
# 1. Add the "aws" or "aws/asg" subscriptions to agents that should run this
# check.
# 2. More configuration options are available for this plugin; please see the
# plugin documentation for more details.
#
# Documentation
# - Usage: https://github.com/sensu-plugins/sensu-plugins-aws#usage
#
# Contributors
# The following individuals have contributed to this configuration template:
# - Todd Campbell, @nixwiz
# - Caleb Hailey, @calebhailey
type: CheckConfig
api_version: core/v2
metadata:
name: check-asg-instances-inservice
spec:
command: >-
check-asg-instances-inservice.rb
--aws-region {{ .annotations.check_asg_instances_inservice_aws_region | default "us-east-1" }}
--autoscaling-group {{ .annotations.check_asg_instances_inservice_autoscaling_group | default "asg-group-1" }}
runtime_assets:
- sensu-plugins/sensu-plugins-aws:18.5.0
- sensu/sensu-ruby-runtime:0.0.10
publish: false
subscriptions:
- aws
- aws/asg
interval: 30
timeout: 10
ttl: 0
proxy_entity_name: ""
stdin: false
handlers:
- alert
---
type: Asset
api_version: core/v2
metadata:
name: sensu-plugins-aws:18.5.0
labels:
annotations:
io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-aws
io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-aws
io.sensu.bonsai.tier: Community
io.sensu.bonsai.version: 18.4.0
io.sensu.bonsai.namespace: sensu-plugins
io.sensu.bonsai.name: sensu-plugins-aws
io.sensu.bonsai.tags: ruby-runtime-2.4.4
spec:
builds:
- url: https://assets.bonsai.sensu.io/5f04e0fd667ec7b89b5a570c03528a476859b08c/sensu-plugins-aws_18.4.0_alpine_linux_amd64.tar.gz
sha512: e8ff3ac85cc7dbf8c6ebd6dc0500cffbc9ff3863a6ef6bbdc1a9926a3b4b3846c16cba291e9be9e35652038cdd929ed0222f3f1d8dace7a4a7295836b92d372d
filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
- url: https://assets.bonsai.sensu.io/5f04e0fd667ec7b89b5a570c03528a476859b08c/sensu-plugins-aws_18.4.0_centos_linux_amd64.tar.gz
sha512: b68da32e0e7228e2c1e81b3cbcdd0358fb099a9df68d6ded88222a252593107951f3ed3fe0ed7e49610a5631c397494c786e0a1e3ee9a47fa905bfa0c3db894e
filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- url: https://assets.bonsai.sensu.io/5f04e0fd667ec7b89b5a570c03528a476859b08c/sensu-plugins-aws_18.4.0_debian_linux_amd64.tar.gz
sha512: c057951d33aa1d4e952b2f781df452e55ab4b5f39cedc250ae209bc6630858797ffb82fc8e445e7efe50b269ece46a3aa74e45e4c2da6b31d3d8a4dbfdd3012a
filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'debian'
---
type: Asset
api_version: core/v2
metadata:
annotations:
io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime
io.sensu.bonsai.name: sensu-ruby-runtime
io.sensu.bonsai.namespace: sensu
io.sensu.bonsai.tags: ""
io.sensu.bonsai.tier: Community
io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime
io.sensu.bonsai.version: 0.0.10
name: sensu/sensu-ruby-runtime:0.0.10
spec:
builds:
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- parseInt(entity.system.platform_version.split('.')[0]) == 6
headers: null
sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'debian'
headers: null
sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- parseInt(entity.system.platform_version.split('.')[0]) > 6
headers: null
sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
- entity.system.platform_version.split('.')[0] == '3'
headers: null
sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz
Loading