├── apache └── .keep ├── aws └── .keep ├── ceph └── .keep ├── consul └── .keep ├── couchdb └── .keep ├── dcos └── .keep ├── dhcp └── .keep ├── docker └── .keep ├── erlang └── .keep ├── etcd └── .keep ├── fluentd └── .keep ├── ftp └── .keep ├── github └── .keep ├── gitlab └── .keep ├── gluster └── .keep ├── golang └── .keep ├── gpg └── .keep ├── haproxy └── .keep ├── hbase └── .keep ├── iis └── .keep ├── imap └── .keep ├── ipmi └── .keep ├── ipvs └── .keep ├── java └── .keep ├── jenkins └── .keep ├── kafka └── .keep ├── lxc └── .keep ├── mailgun └── .keep ├── mesos └── .keep ├── mongodb └── .keep ├── monit └── .keep ├── nvidia └── .keep ├── openvpn └── .keep ├── percona └── .keep ├── pingdom └── .keep ├── qmail └── .keep ├── raid └── .keep ├── redis └── .keep ├── resque └── .keep ├── riak └── .keep ├── rspec └── .keep ├── selinux └── .keep ├── sidekiq └── .keep ├── sip └── .keep ├── solr └── .keep ├── spark └── .keep ├── system ├── .keep ├── windows │ └── disk │ │ ├── metrics-disk-stats.yaml │ │ ├── metrics-disk-usage.yaml │ │ ├── check-disk-usage.yaml │ │ └── check-disk-writable.yaml └── linux │ ├── process │ └── check-processes.yaml │ ├── filesystem │ ├── metrics-nfsstat.yaml │ ├── check-fs-writable.yaml │ ├── metrics-dirsize.yaml │ ├── metrics-filesize.yaml │ ├── check-mtime.yaml │ ├── check-dir-count.yaml │ ├── check-dir-size.yaml │ ├── check-tail.yaml │ ├── check-file-exists.yaml │ ├── check-checksums.yaml │ └── check-file-size.yaml │ ├── vmstats │ └── metrics-vmstat.yaml │ └── memory │ └── check-ram.yaml ├── tomcat └── .keep ├── unicorn └── .keep ├── ups └── .keep ├── varnish └── .keep ├── vsphere └── .keep ├── xen └── .keep ├── couchbase └── .keep ├── memcached └── .keep ├── openstack └── .keep ├── postgres └── .keep ├── rabbitmq └── .keep ├── rethinkdb └── .keep ├── sendgrid └── .keep ├── serverspec └── .keep ├── springboot └── .keep ├── supervisor └── .keep ├── syslog-ng └── .keep ├── tripwire └── .keep ├── ubiquiti └── .keep ├── wordpress └── .keep ├── elasticsearch └── .keep ├── .github └── workflows │ └── super-linter.yml ├── CONTRIBUTING.md ├── README.md ├── kubernetes └── events │ └── sensu-kubernetes-events.yaml ├── ntp ├── check-ntp.yaml ├── metrics-ntpstats.yaml └── metrics-ntpdate.yaml ├── zfs ├── check-zpool.yaml └── metrics-zfs-arc.yaml ├── http ├── check-http.yaml ├── check-http-cors.yaml ├── check-head-redirect.yaml ├── metrics-curl.yaml ├── metrics-libcurl.yaml ├── metrics-http-json-deep.yaml ├── check-http-json.yaml ├── check-last-modified.yaml └── check-https-cert.yaml ├── ssl ├── check-ssl-crl.yaml └── check-ssl-hsts-preloadable.yaml └── postfix └── metrics-mailq.yaml /apache/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /aws/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ceph/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /consul/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /couchdb/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dcos/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dhcp/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /erlang/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /etcd/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fluentd/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ftp/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /github/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /gitlab/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /gluster/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /golang/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /gpg/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /haproxy/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /hbase/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iis/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /imap/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ipmi/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ipvs/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /java/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jenkins/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /kafka/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lxc/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mailgun/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mesos/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mongodb/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /monit/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nvidia/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /openvpn/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /percona/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pingdom/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /qmail/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /raid/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /redis/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resque/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /riak/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /rspec/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /selinux/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sidekiq/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sip/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /solr/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spark/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tomcat/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /unicorn/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ups/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /varnish/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vsphere/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /xen/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /couchbase/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /memcached/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /openstack/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /postgres/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /rabbitmq/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /rethinkdb/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sendgrid/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /serverspec/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /springboot/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /supervisor/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /syslog-ng/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tripwire/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ubiquiti/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /wordpress/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /elasticsearch/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/workflows/super-linter.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Lint Code Base 3 | 4 | on: [push, pull_request] 5 | 6 | ############### 7 | # Set the Job # 8 | ############### 9 | jobs: 10 | build: 11 | name: Lint Code Base 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout Code 15 | uses: actions/checkout@v2 16 | - name: Lint Code Base 17 | uses: github/super-linter@v2.0.0 18 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | We the maintainers love pull requests from everyone, but often find we must say 4 | "no" despite how reasonable the proposal may seem. 5 | 6 | For this reason, we ask that you open an issue to discuss proposed changes 7 | prior to submitting a pull request for the implementation. This helps us to 8 | provide direction as to implementation details, which branch to base your 9 | changes on, and so on. 10 | 11 | 1. Open an issue to describe your proposed improvement or feature 12 | 2. Fork [https://github.com/sensu-community/monitoring-checks](https://github.com/sensu-community/monitoring-checks) 13 | 3. Create your feature branch (`git checkout -b my-new-check`) 14 | 4. Commit your changes (`git commit -am 'Added a check to monitor a service'`) 15 | 5. Push your feature branch (`git push origin my-new-check`) 16 | 6. Create a Pull Request as appropriate based on the issue discussion 17 | -------------------------------------------------------------------------------- /system/windows/disk/metrics-disk-stats.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # metric-windows-disk-usage.ps1 is a powershell script to collect Disk/HDD 4 | # Statitics in Graphite format 5 | # 6 | # Instructions 7 | # 1. Add the "system/windows" or "system/windows/disk" subscription to agents 8 | # that should run this check. 9 | # 2. More configuration options are available for this plugin; please see the 10 | # plugin documentation for more details. 11 | # 12 | # Documentation 13 | # - Usage: https://github.com/sensu/sensu-windows-powershell-checks 14 | # 15 | # Contributors 16 | # The following individuals have contributed to this configuration template: 17 | # - Jef Spaleta, @jspaleta 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: metrics-disk-stats 22 | spec: 23 | command: Powershell.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -NoLogo -Command metric-windows-disk.ps1 24 | runtime_assets: 25 | - sensu/sensu-windows-powershell-checks:0.0.4 26 | publish: false 27 | subscriptions: 28 | - system/windows 29 | - system/windows/disk 30 | interval: 60 31 | timeout: 20 32 | ttl: 0 33 | proxy_entity_name: "" 34 | stdin: false 35 | output_metric_format: graphite_plaintext 36 | output_metric_handlers: 37 | - metric-storage 38 | --- 39 | type: Asset 40 | api_version: core/v2 41 | metadata: 42 | annotations: 43 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-windows-powershell-checks 44 | io.sensu.bonsai.name: sensu-windows-powershell-checks 45 | io.sensu.bonsai.namespace: sensu 46 | io.sensu.bonsai.tags: "" 47 | io.sensu.bonsai.tier: Community 48 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-windows-powershell-checks 49 | io.sensu.bonsai.version: 0.0.4 50 | labels: 51 | sensu.io/managed_by: sensuctl 52 | name: sensu/sensu-windows-powershell-checks:0.0.4 53 | spec: 54 | builds: 55 | - filters: 56 | - entity.system.os == 'windows' 57 | headers: null 58 | sha512: a694627656dba4d3b7f22cd2f0b1daa5806f0a641ca93febb5cf459c897b26cee94de6373e3a196fa30f202d447c4eaa99cb90e1ca0c4a9eea43a9e44b82b56e 59 | url: https://assets.bonsai.sensu.io/b4c5875e8d272d096f4bf0f69d2598b1755fe4a3/sensu-windows-powershell-checks.tar.gz 60 | 61 | -------------------------------------------------------------------------------- /system/windows/disk/metrics-disk-usage.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # metric-windows-disk-usage.ps1 is a powershell script to collect capacity 4 | # metrics from the Windows OS 5 | # Instructions 6 | # 1. Add the "system/windows" or "system/windows/disk" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu/sensu-windows-powershell-checks 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Jef Spaleta, @jspaleta 17 | type: CheckConfig 18 | api_version: core/v2 19 | metadata: 20 | name: metrics-disk-usage 21 | spec: 22 | command: Powershell.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -NoLogo -Command metric-windows-disk-usage.ps1 23 | runtime_assets: 24 | - sensu/sensu-windows-powershell-checks:0.0.4 25 | publish: false 26 | subscriptions: 27 | - system/windows 28 | - system/windows/disk 29 | interval: 60 30 | timeout: 20 31 | ttl: 0 32 | proxy_entity_name: "" 33 | stdin: false 34 | output_metric_format: graphite_plaintext 35 | output_metric_handlers: 36 | - metric-storage 37 | --- 38 | type: Asset 39 | api_version: core/v2 40 | metadata: 41 | annotations: 42 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-windows-powershell-checks 43 | io.sensu.bonsai.name: sensu-windows-powershell-checks 44 | io.sensu.bonsai.namespace: sensu 45 | io.sensu.bonsai.tags: "" 46 | io.sensu.bonsai.tier: Community 47 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-windows-powershell-checks 48 | io.sensu.bonsai.version: 0.0.4 49 | labels: 50 | sensu.io/managed_by: sensuctl 51 | name: sensu/sensu-windows-powershell-checks:0.0.4 52 | spec: 53 | builds: 54 | - filters: 55 | - entity.system.os == 'windows' 56 | headers: null 57 | sha512: a694627656dba4d3b7f22cd2f0b1daa5806f0a641ca93febb5cf459c897b26cee94de6373e3a196fa30f202d447c4eaa99cb90e1ca0c4a9eea43a9e44b82b56e 58 | url: https://assets.bonsai.sensu.io/b4c5875e8d272d096f4bf0f69d2598b1755fe4a3/sensu-windows-powershell-checks.tar.gz 59 | 60 | -------------------------------------------------------------------------------- /system/windows/disk/check-disk-usage.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check disk usage using powershell 4 | # 5 | # Instructions 6 | # 1. Add the "system/windows" or "system/windows/disk" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu/sensu-windows-powershell-checks#help-1 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Jef Spaleta, @jspaleta 17 | type: CheckConfig 18 | api_version: core/v2 19 | metadata: 20 | name: check-disk-usage 21 | spec: 22 | command: >- 23 | Powershell.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -NoLogo 24 | -Command check-windows-disk.ps1 25 | -Warning {{ .annotations.disk_usage_warning | default 85 }} 26 | -Critical {{ .annotations.disk_usage_critical | default 95 }} 27 | runtime_assets: 28 | - sensu/sensu-windows-powershell-checks:0.0.4 29 | publish: false 30 | subscriptions: 31 | - system/windows 32 | - system/windows/disk 33 | interval: 60 34 | timeout: 20 35 | ttl: 0 36 | proxy_entity_name: "" 37 | stdin: false 38 | handlers: 39 | - alert 40 | --- 41 | type: Asset 42 | api_version: core/v2 43 | metadata: 44 | annotations: 45 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-windows-powershell-checks 46 | io.sensu.bonsai.name: sensu-windows-powershell-checks 47 | io.sensu.bonsai.namespace: sensu 48 | io.sensu.bonsai.tags: "" 49 | io.sensu.bonsai.tier: Community 50 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-windows-powershell-checks 51 | io.sensu.bonsai.version: 0.0.4 52 | labels: 53 | sensu.io/managed_by: sensuctl 54 | name: sensu/sensu-windows-powershell-checks:0.0.4 55 | spec: 56 | builds: 57 | - filters: 58 | - entity.system.os == 'windows' 59 | headers: null 60 | sha512: a694627656dba4d3b7f22cd2f0b1daa5806f0a641ca93febb5cf459c897b26cee94de6373e3a196fa30f202d447c4eaa99cb90e1ca0c4a9eea43a9e44b82b56e 61 | url: https://assets.bonsai.sensu.io/b4c5875e8d272d096f4bf0f69d2598b1755fe4a3/sensu-windows-powershell-checks.tar.gz 62 | 63 | -------------------------------------------------------------------------------- /system/windows/disk/check-disk-writable.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check if Windows mounted logical disks are writable using powershell 4 | # 5 | # Instructions 6 | # 1. Add the "system/windows" or "system/windows/disk" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu/sensu-windows-powershell-checks#help-3 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Jef Spaleta, @jspaleta 17 | type: CheckConfig 18 | api_version: core/v2 19 | metadata: 20 | name: check-disk-writable 21 | spec: 22 | command: >- 23 | Powershell.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -NoLogo 24 | -Command check-windows-disk-writeable.ps1 25 | -DriveType {{ .annotations.disk_writable_drive_types | default '3,5' }} 26 | -Ignore {{ .annotations.disk_writable_ignore | default 'A,B' }} 27 | -TestFile {{ .annotations.disk_writable_testfile | default '\test.txt' }} 28 | runtime_assets: 29 | - sensu/sensu-windows-powershell-checks:0.0.4 30 | publish: false 31 | subscriptions: 32 | - system/windows 33 | - system/windows/disk 34 | interval: 60 35 | timeout: 20 36 | ttl: 0 37 | proxy_entity_name: "" 38 | stdin: false 39 | handlers: 40 | - alert 41 | --- 42 | type: Asset 43 | api_version: core/v2 44 | metadata: 45 | annotations: 46 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-windows-powershell-checks 47 | io.sensu.bonsai.name: sensu-windows-powershell-checks 48 | io.sensu.bonsai.namespace: sensu 49 | io.sensu.bonsai.tags: "" 50 | io.sensu.bonsai.tier: Community 51 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-windows-powershell-checks 52 | io.sensu.bonsai.version: 0.0.4 53 | labels: 54 | sensu.io/managed_by: sensuctl 55 | name: sensu/sensu-windows-powershell-checks:0.0.4 56 | spec: 57 | builds: 58 | - filters: 59 | - entity.system.os == 'windows' 60 | headers: null 61 | sha512: a694627656dba4d3b7f22cd2f0b1daa5806f0a641ca93febb5cf459c897b26cee94de6373e3a196fa30f202d447c4eaa99cb90e1ca0c4a9eea43a9e44b82b56e 62 | url: https://assets.bonsai.sensu.io/b4c5875e8d272d096f4bf0f69d2598b1755fe4a3/sensu-windows-powershell-checks.tar.gz 63 | 64 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Sensu Monitoring Checks 2 | 3 | This project contains a number of Sensu monitoring check 4 | configurations to bootstrap effective monitoring with [Sensu 5 | Go](https://sensu.io). These checks are intended to be a starting 6 | point for Sensu Go users, some per-deployment modifications are to be 7 | expected. 8 | 9 | ## Rules 10 | 11 | 1. Every Sensu user must be able to safely create all resources as 12 | defined in this project (from the project root). 13 | 14 | 2. All resource definitions must be written in YAML for consistency 15 | and comment support. 16 | 17 | 3. All Assets used must be registered and hosted on 18 | [Bonsai](https://bonsai.sensu.io). 19 | 20 | 4. Asset resources must include a version reference in their name. For 21 | example `sensu-plugins/sensu-plugins-disk-checks:5.0.1`. 22 | 23 | 5. Check definitions should recommend one or more named subscriptions. At a 24 | minimum this should include the corresponding sub-directory as the default 25 | naming convention. For example, all Postgres configs should include the 26 | ["postgres"](tree/master/postgres) subscription, though they may optionally 27 | include additional/alternate subscriptions (e.g. "pg" or "postgresql"). 28 | 29 | 6. Check definitions must NOT include a namespace. 30 | 31 | 7. Check definitions must be set to "publish: false". 32 | 33 | 8. Check definitions should use the "interval" scheduler, with a minimum of 34 | 30 seconds. 35 | 36 | 9. Check timeout should be set to a non-zero value and should not be greater 37 | than 50% of the interval. 38 | 39 | 10. Check definitions must include the following required fields, even if they 40 | are blank or are the defaults: 41 | 42 | * `command` 43 | * `interval` 44 | * `timeout` 45 | * `ttl` 46 | * `publish` 47 | * `subscriptions` 48 | * `runtime_assets` 49 | * `handlers` 50 | * `stdin` 51 | * `proxy_entity_name: ""` 52 | 53 | 11. Long check commands should be wrapped using the YAML `>-` multiline 54 | "block scalar" syntax. 55 | 56 | ```yaml 57 | spec: 58 | command: >- 59 | check-disk-usage.rb 60 | -w {{ .annotations.disk_usage_warning | default 85 }} 61 | -c {{ .annotations.disk_usage_critical | default 95 }} 62 | ``` 63 | 64 | 12. As seen in the example above, check commands should include tunables 65 | using Sensu tokens from annotations and explicitly set the defaults. 66 | 67 | 13. Resources should be defined in the following order by type: 68 | 69 | * CheckConfig 70 | * HookConfig 71 | * Secret 72 | * Asset 73 | 74 | 14. Check definitions must specify the appropriate Handler from the 75 | [handler list](#handler-list) for its collected data. 76 | 77 | 15. All PRs submitted are ran through [super-linter](https://github.com/github/super-linter/). 78 | You are encouraged to [run it locally](https://github.com/github/super-linter/blob/master/docs/run-linter-locally.md) 79 | to reduce the churn of having to fix issues after submission. 80 | 81 | ### Handler List 82 | 83 | Sensu Check definitions in this project specify one or more of the 84 | following handlers. These Handlers do not exist by default, however, 85 | they act as references for future [Handler 86 | sets](https://docs.sensu.io/sensu-go/5.14/reference/handlers/#handler-sets). 87 | Handler set definitions allow groups of handlers (individual 88 | collections of actions to take on event data) to be referenced via a 89 | single named handler set. At any time, a user may create or modify a 90 | Handler set with one of the following names (e.g. alert -> slack, 91 | pagerduty). 92 | 93 | - alert 94 | - incident-management 95 | - metric-storage 96 | - event-storage 97 | - deregistration 98 | - remediation 99 | 100 | ## Contributing 101 | 102 | For guidelines on how to contribute to this project and information 103 | about what we require from project contributors, please see 104 | [CONTRIBUTING.md](CONTRIBUTING.md). 105 | -------------------------------------------------------------------------------- /system/linux/process/check-processes.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Searches for processes based on either the command name or a substring in 4 | # the command line. It can search for multiple processes and, on a per-string 5 | # basis, set the number of processes expected, severity if the number of 6 | # processes is not met, and whether or not to search the full command line for 7 | # the requested string. 8 | # 9 | # Instructions 10 | # 1. Add the "system/linux" or "system/linux/process" subscription to agents 11 | # that should run this check. 12 | # 2. More configuration options are available for this plugin; please see the 13 | # plugin documentation for more details. 14 | # 15 | # Documentation 16 | # - Usage: https://github.com/sensu/sensu-processes-check#sensu-processes-check 17 | # 18 | # Contributors 19 | # The following individuals have contributed to this configuration template: 20 | # - Todd Campbell, @nixwiz 21 | type: CheckConfig 22 | api_version: core/v2 23 | metadata: 24 | name: check-processes 25 | spec: 26 | command: >- 27 | sensu-check-processes 28 | --search "{{ .annotations.sensu_processes_check_search | default `[{\"search_string\": \"sshd\"}]` }}" 29 | runtime_assets: 30 | - sensu/sensu-processes-check:0.2.0 31 | publish: false 32 | subscriptions: 33 | - system/linux 34 | - system/linux/process 35 | interval: 30 36 | timeout: 10 37 | ttl: 0 38 | proxy_entity_name: "" 39 | stdin: false 40 | handlers: 41 | - alert 42 | --- 43 | type: Asset 44 | api_version: core/v2 45 | metadata: 46 | name: sensu/sensu-processes-check:0.2.0 47 | labels: 48 | annotations: 49 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-processes-check 50 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-processes-check 51 | io.sensu.bonsai.tier: Community 52 | io.sensu.bonsai.version: 0.2.0 53 | io.sensu.bonsai.namespace: sensu 54 | io.sensu.bonsai.name: sensu-processes-check 55 | io.sensu.bonsai.tags: check, process 56 | spec: 57 | builds: 58 | - url: https://assets.bonsai.sensu.io/b19cae31bd6bda5594375b01c7c2a73c2db939bc/sensu-processes-check_0.2.0_windows_amd64.tar.gz 59 | sha512: 42e2d7189eb3b7e15841327aaa12007d95ee455956952f90f9d6844b3d466e722844ed0693d4998ac89a53c2036656a2c4b30948899aa1c518db974b799845d2 60 | filters: 61 | - entity.system.os == 'windows' 62 | - entity.system.arch == 'amd64' 63 | - url: https://assets.bonsai.sensu.io/b19cae31bd6bda5594375b01c7c2a73c2db939bc/sensu-processes-check_0.2.0_darwin_amd64.tar.gz 64 | sha512: 957c00899718c7cacf8bd2369c6da983abd5eb050841f857f70e003986ce01409390545cca95defaebaa069c310b69750c05ecff003675d60ef4a1f790d75ea2 65 | filters: 66 | - entity.system.os == 'darwin' 67 | - entity.system.arch == 'amd64' 68 | - url: https://assets.bonsai.sensu.io/b19cae31bd6bda5594375b01c7c2a73c2db939bc/sensu-processes-check_0.2.0_linux_armv7.tar.gz 69 | sha512: 20cc5b1bc595a0520ce387ed3df07346316e33e3d277a8ff1644b55a0f6e089215c379367deef570bd0c5b10987c4491cd0b513cf2b78bc55ea2fba020e60a28 70 | filters: 71 | - entity.system.os == 'linux' 72 | - entity.system.arch == 'armv7' 73 | - url: https://assets.bonsai.sensu.io/b19cae31bd6bda5594375b01c7c2a73c2db939bc/sensu-processes-check_0.2.0_linux_arm64.tar.gz 74 | sha512: c68b5f0a5902e7ce47616fe2e9aaaa3bf86037354fa20a8b106efb4379d8adea2ed42a80e0e5dc64b602395826eed8534227522b4609e19f8e4da1907cdb1644 75 | filters: 76 | - entity.system.os == 'linux' 77 | - entity.system.arch == 'arm64' 78 | - url: https://assets.bonsai.sensu.io/b19cae31bd6bda5594375b01c7c2a73c2db939bc/sensu-processes-check_0.2.0_linux_386.tar.gz 79 | sha512: 4c47caa022a18e78dbec5284a3a7c1e9b3098d76c123a8ff016765666821a30318188cd673abf6fc6971a30832dc031433f2010fea28cda13d19d3b2f9362adf 80 | filters: 81 | - entity.system.os == 'linux' 82 | - entity.system.arch == '386' 83 | - url: https://assets.bonsai.sensu.io/b19cae31bd6bda5594375b01c7c2a73c2db939bc/sensu-processes-check_0.2.0_linux_amd64.tar.gz 84 | sha512: 70e830f7d1e693dd75f408037bd13b433abf897cf5036a80a2d051d238a4519aa3ea385069bfc162e8875062d74b584702512a17120174ac14889659729bbebe 85 | filters: 86 | - entity.system.os == 'linux' 87 | - entity.system.arch == 'amd64' 88 | -------------------------------------------------------------------------------- /kubernetes/events/sensu-kubernetes-events.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check for Kubernetes events 4 | # 5 | # Instructions 6 | # 1. Add the "kubernetes" or "kubernetes/events" subscription to agents 7 | # that should run this check. 8 | # 2. This check can either use "in cluster" (running in a contariner in 9 | # a Kubernetes pod) or kubeconfig style (same as kubectl) authentication 10 | # when connecting to the API to query events. The default is "in cluster". 11 | # 3. This check creates events using the Agent API, so it will need to be 12 | # enabled and accessible. This is enabled on http:127.0.0.1:3031 by 13 | # default. 14 | # 4. This check requires that 'stdin' be set to true as it reads in its 15 | # check definition to determine at what interval it is running. 16 | # 5. More configuration options are available for this plugin; please see the 17 | # plugin documentation for more details. 18 | # 19 | # Documentation 20 | # - https://github.com/sensu/sensu-kubernetes-events#sensu-kubernetes-events-check 21 | # 22 | # Contributors 23 | # The following individuals have contributed to this configuration template: 24 | # - Todd Campbell, @nixwiz 25 | type: CheckConfig 26 | api_version: core/v2 27 | metadata: 28 | name: sensu-kubernetes-events 29 | spec: 30 | command: >- 31 | sensu-kubernetes-events 32 | --agent-api-url http://127.0.0.1:3031/events 33 | --event-type "!=Normal" 34 | runtime_assets: 35 | - sensu/sensu-kubernetes-events:0.1.0-alpha4 36 | publish: false 37 | subscriptions: 38 | - kubernetes 39 | - kubernetes/events 40 | interval: 30 41 | timeout: 10 42 | ttl: 0 43 | proxy_entity_name: "" 44 | stdin: true 45 | handlers: 46 | - alert 47 | --- 48 | type: Asset 49 | api_version: core/v2 50 | metadata: 51 | name: sensu/sensu-kubernetes-events:0.1.0-alpha4 52 | labels: 53 | annotations: 54 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-kubernetes-events 55 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-kubernetes-events 56 | io.sensu.bonsai.tier: Community 57 | io.sensu.bonsai.version: 0.1.0-alpha3 58 | io.sensu.bonsai.namespace: sensu 59 | io.sensu.bonsai.name: sensu-kubernetes-events 60 | io.sensu.bonsai.tags: check, kubernetes 61 | spec: 62 | builds: 63 | - url: https://assets.bonsai.sensu.io/c84576bbd5bc3c13e18da18e1e9c0e8e9aaf8da0/sensu-kubernetes-events_0.1.0-alpha4_windows_amd64.tar.gz 64 | sha512: 952576442814b94f1fd383032a898e9cc8f715a51321ecd8d9a0ebb2b87af0577baed9da42f308787228cd5ef42d11d046dbb773422b9c14aabfca8b038bae00 65 | filters: 66 | - entity.system.os == 'windows' 67 | - entity.system.arch == 'amd64' 68 | - url: https://assets.bonsai.sensu.io/c84576bbd5bc3c13e18da18e1e9c0e8e9aaf8da0/sensu-kubernetes-events_0.1.0-alpha4_darwin_amd64.tar.gz 69 | sha512: ea36870e92d03472aba7184b1a34b4e7f12bddbcedb7c5c97df3871dfe829290babacbedb99d3ee166a4453aa8f56b377f00a31c0ee3a0407448e5673ca6b1f0 70 | filters: 71 | - entity.system.os == 'darwin' 72 | - entity.system.arch == 'amd64' 73 | - url: https://assets.bonsai.sensu.io/c84576bbd5bc3c13e18da18e1e9c0e8e9aaf8da0/sensu-kubernetes-events_0.1.0-alpha4_linux_armv7.tar.gz 74 | sha512: 4ac2379b5de4dd59f2fb7bd80054c8ac0ecfcab8dcb5c7c9758a09d1f0a8dfda01cf07e2602006af430094a6843a6fbaafbdaa21cf8aaa369e69dba2e8629b0e 75 | filters: 76 | - entity.system.os == 'linux' 77 | - entity.system.arch == 'armv7' 78 | - url: https://assets.bonsai.sensu.io/c84576bbd5bc3c13e18da18e1e9c0e8e9aaf8da0/sensu-kubernetes-events_0.1.0-alpha4_linux_arm64.tar.gz 79 | sha512: 0a38e632928390a3b6f7cfd56cf8b49f8d787e70ce775bba6c77b644d922608309b3db4f42eb060b27cf086c92bf593c8059e0adf8657b3625a5466b27b5172b 80 | filters: 81 | - entity.system.os == 'linux' 82 | - entity.system.arch == 'arm64' 83 | - url: https://assets.bonsai.sensu.io/c84576bbd5bc3c13e18da18e1e9c0e8e9aaf8da0/sensu-kubernetes-events_0.1.0-alpha4_linux_386.tar.gz 84 | sha512: 1559ae949e239eaa7bf0ecc0724eca38b1db9630d7c25370a39c44932786487a5ef7cd4bf13fd30c0751af1d39f7e1ee2ee21e4dbf16cd6306029efec3c752e3 85 | filters: 86 | - entity.system.os == 'linux' 87 | - entity.system.arch == '386' 88 | - url: https://assets.bonsai.sensu.io/c84576bbd5bc3c13e18da18e1e9c0e8e9aaf8da0/sensu-kubernetes-events_0.1.0-alpha4_linux_amd64.tar.gz 89 | sha512: e50b73fd34299bfa9b780b3be189398d945998506f470e3044ca46bd0092231dcc3b18258c5376aa605dffb549faf00b6a53b2335bda854332e37e384005a5ab 90 | filters: 91 | - entity.system.os == 'linux' 92 | - entity.system.arch == 'amd64' 93 | -------------------------------------------------------------------------------- /ntp/check-ntp.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check NTP offsets in milliseonds 4 | # 5 | # Instructions 6 | # 1. Add the "ntp" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-ntp#usage-examples 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: check-ntp 20 | spec: 21 | command: >- 22 | check-ntp.rb 23 | -w {{ .annotations.check_ntp_warn | default 10 }} 24 | -c {{ .annotations.check_ntp_crit | default 100 }} 25 | runtime_assets: 26 | - sensu-plugins/sensu-plugins-ntp:2.0.0 27 | - sensu/sensu-ruby-runtime:0.0.10 28 | publish: false 29 | subscriptions: 30 | - ntp 31 | interval: 30 32 | timeout: 10 33 | ttl: 0 34 | proxy_entity_name: "" 35 | stdin: false 36 | handlers: 37 | - alert 38 | --- 39 | type: Asset 40 | api_version: core/v2 41 | metadata: 42 | labels: 43 | annotations: 44 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-ntp 45 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-ntp 46 | io.sensu.bonsai.tier: Community 47 | io.sensu.bonsai.version: 2.0.0 48 | io.sensu.bonsai.namespace: sensu-plugins 49 | io.sensu.bonsai.name: sensu-plugins-ntp 50 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 51 | name: sensu-plugins-ntp:2.0.0 52 | spec: 53 | builds: 54 | - url: https://assets.bonsai.sensu.io/a24eea423200374c5b7f96082dd7e315fc1ea814/sensu-plugins-ntp_2.0.0_alpine_linux_amd64.tar.gz 55 | sha512: d270bf39ca9f49fc874dbd2703d3528b23f3c5c4da553aab8d62021aab6bcbbdb9d6c8087f5e04410c7c0488be6d8ecda3a92d51259cc8b78605f2163120958b 56 | filters: 57 | - entity.system.os == 'linux' 58 | - entity.system.arch == 'amd64' 59 | - entity.system.platform == 'alpine' 60 | - url: https://assets.bonsai.sensu.io/a24eea423200374c5b7f96082dd7e315fc1ea814/sensu-plugins-ntp_2.0.0_centos_linux_amd64.tar.gz 61 | sha512: 3ee7b68d91798775f70ee9cd037f98a82386ae9beccd069a4db262d6b69ef49db65a1415cc40c2a6c8726447f0cf4978a332968edf132cd79805ce4f68889a5a 62 | filters: 63 | - entity.system.os == 'linux' 64 | - entity.system.arch == 'amd64' 65 | - entity.system.platform == 'rhel' 66 | - url: https://assets.bonsai.sensu.io/a24eea423200374c5b7f96082dd7e315fc1ea814/sensu-plugins-ntp_2.0.0_debian_linux_amd64.tar.gz 67 | sha512: af36da579989ba8174d111c30f4cda47ee7df711c0d044d96a49adc9e42793270b7fe3dc943cabef453da1e52121ede4111cd4a22d249d30010aa7a1461d646c 68 | filters: 69 | - entity.system.os == 'linux' 70 | - entity.system.arch == 'amd64' 71 | - entity.system.platform == 'debian' 72 | --- 73 | type: Asset 74 | api_version: core/v2 75 | metadata: 76 | annotations: 77 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 78 | io.sensu.bonsai.name: sensu-ruby-runtime 79 | io.sensu.bonsai.namespace: sensu 80 | io.sensu.bonsai.tags: "" 81 | io.sensu.bonsai.tier: Community 82 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 83 | io.sensu.bonsai.version: 0.0.10 84 | name: sensu/sensu-ruby-runtime:0.0.10 85 | spec: 86 | builds: 87 | - filters: 88 | - entity.system.os == 'linux' 89 | - entity.system.arch == 'amd64' 90 | - entity.system.platform_family == 'rhel' 91 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 92 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 93 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 94 | - filters: 95 | - entity.system.os == 'linux' 96 | - entity.system.arch == 'amd64' 97 | - entity.system.platform_family == 'debian' 98 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 99 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 100 | - filters: 101 | - entity.system.os == 'linux' 102 | - entity.system.arch == 'amd64' 103 | - entity.system.platform_family == 'rhel' 104 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 105 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 106 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 107 | - filters: 108 | - entity.system.os == 'linux' 109 | - entity.system.arch == 'amd64' 110 | - entity.system.platform == 'alpine' 111 | - entity.system.platform_version.split('.')[0] == '3' 112 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 113 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 114 | -------------------------------------------------------------------------------- /ntp/metrics-ntpstats.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Provide ntp metrics 4 | # 5 | # Instructions 6 | # 1. Add the "ntp" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-ntp#usage-examples 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: metrics-ntpstats 20 | spec: 21 | command: >- 22 | metrics-ntpstats.rb 23 | --host {{ .annotations.metrics_ntpstats_host | default "localhost" }} 24 | runtime_assets: 25 | - sensu-plugins/sensu-plugins-ntp:2.0.0 26 | - sensu/sensu-ruby-runtime:0.0.10 27 | publish: false 28 | subscriptions: 29 | - ntp 30 | interval: 30 31 | timeout: 10 32 | ttl: 0 33 | proxy_entity_name: "" 34 | stdin: false 35 | output_metric_format: graphite_plaintext 36 | output_metric_handlers: 37 | - metric-storage 38 | --- 39 | type: Asset 40 | api_version: core/v2 41 | metadata: 42 | labels: 43 | annotations: 44 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-ntp 45 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-ntp 46 | io.sensu.bonsai.tier: Community 47 | io.sensu.bonsai.version: 2.0.0 48 | io.sensu.bonsai.namespace: sensu-plugins 49 | io.sensu.bonsai.name: sensu-plugins-ntp 50 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 51 | name: sensu-plugins-ntp:2.0.0 52 | spec: 53 | builds: 54 | - url: https://assets.bonsai.sensu.io/a24eea423200374c5b7f96082dd7e315fc1ea814/sensu-plugins-ntp_2.0.0_alpine_linux_amd64.tar.gz 55 | sha512: d270bf39ca9f49fc874dbd2703d3528b23f3c5c4da553aab8d62021aab6bcbbdb9d6c8087f5e04410c7c0488be6d8ecda3a92d51259cc8b78605f2163120958b 56 | filters: 57 | - entity.system.os == 'linux' 58 | - entity.system.arch == 'amd64' 59 | - entity.system.platform == 'alpine' 60 | - url: https://assets.bonsai.sensu.io/a24eea423200374c5b7f96082dd7e315fc1ea814/sensu-plugins-ntp_2.0.0_centos_linux_amd64.tar.gz 61 | sha512: 3ee7b68d91798775f70ee9cd037f98a82386ae9beccd069a4db262d6b69ef49db65a1415cc40c2a6c8726447f0cf4978a332968edf132cd79805ce4f68889a5a 62 | filters: 63 | - entity.system.os == 'linux' 64 | - entity.system.arch == 'amd64' 65 | - entity.system.platform == 'rhel' 66 | - url: https://assets.bonsai.sensu.io/a24eea423200374c5b7f96082dd7e315fc1ea814/sensu-plugins-ntp_2.0.0_debian_linux_amd64.tar.gz 67 | sha512: af36da579989ba8174d111c30f4cda47ee7df711c0d044d96a49adc9e42793270b7fe3dc943cabef453da1e52121ede4111cd4a22d249d30010aa7a1461d646c 68 | filters: 69 | - entity.system.os == 'linux' 70 | - entity.system.arch == 'amd64' 71 | - entity.system.platform == 'debian' 72 | --- 73 | type: Asset 74 | api_version: core/v2 75 | metadata: 76 | annotations: 77 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 78 | io.sensu.bonsai.name: sensu-ruby-runtime 79 | io.sensu.bonsai.namespace: sensu 80 | io.sensu.bonsai.tags: "" 81 | io.sensu.bonsai.tier: Community 82 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 83 | io.sensu.bonsai.version: 0.0.10 84 | name: sensu/sensu-ruby-runtime:0.0.10 85 | spec: 86 | builds: 87 | - filters: 88 | - entity.system.os == 'linux' 89 | - entity.system.arch == 'amd64' 90 | - entity.system.platform_family == 'rhel' 91 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 92 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 93 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 94 | - filters: 95 | - entity.system.os == 'linux' 96 | - entity.system.arch == 'amd64' 97 | - entity.system.platform_family == 'debian' 98 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 99 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 100 | - filters: 101 | - entity.system.os == 'linux' 102 | - entity.system.arch == 'amd64' 103 | - entity.system.platform_family == 'rhel' 104 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 105 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 106 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 107 | - filters: 108 | - entity.system.os == 'linux' 109 | - entity.system.arch == 'amd64' 110 | - entity.system.platform == 'alpine' 111 | - entity.system.platform_version.split('.')[0] == '3' 112 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 113 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 114 | -------------------------------------------------------------------------------- /ntp/metrics-ntpdate.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Provide ntpdate metrics 4 | # 5 | # Instructions 6 | # 1. Add the "ntp" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-ntp#usage-examples 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: metrics-ntpdate 20 | spec: 21 | command: >- 22 | metrics-ntpdate.rb 23 | --server {{ .annotations.metrics_ntpdate_server | default "localhost" }} 24 | runtime_assets: 25 | - sensu-plugins/sensu-plugins-ntp:2.0.0 26 | - sensu/sensu-ruby-runtime:0.0.10 27 | publish: false 28 | subscriptions: 29 | - ntp 30 | interval: 30 31 | timeout: 10 32 | ttl: 0 33 | proxy_entity_name: "" 34 | stdin: false 35 | output_metric_format: graphite_plaintext 36 | output_metric_handlers: 37 | - metric-storage 38 | --- 39 | type: Asset 40 | api_version: core/v2 41 | metadata: 42 | labels: 43 | annotations: 44 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-ntp 45 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-ntp 46 | io.sensu.bonsai.tier: Community 47 | io.sensu.bonsai.version: 2.0.0 48 | io.sensu.bonsai.namespace: sensu-plugins 49 | io.sensu.bonsai.name: sensu-plugins-ntp 50 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 51 | name: sensu-plugins-ntp:2.0.0 52 | spec: 53 | builds: 54 | - url: https://assets.bonsai.sensu.io/a24eea423200374c5b7f96082dd7e315fc1ea814/sensu-plugins-ntp_2.0.0_alpine_linux_amd64.tar.gz 55 | sha512: d270bf39ca9f49fc874dbd2703d3528b23f3c5c4da553aab8d62021aab6bcbbdb9d6c8087f5e04410c7c0488be6d8ecda3a92d51259cc8b78605f2163120958b 56 | filters: 57 | - entity.system.os == 'linux' 58 | - entity.system.arch == 'amd64' 59 | - entity.system.platform == 'alpine' 60 | - url: https://assets.bonsai.sensu.io/a24eea423200374c5b7f96082dd7e315fc1ea814/sensu-plugins-ntp_2.0.0_centos_linux_amd64.tar.gz 61 | sha512: 3ee7b68d91798775f70ee9cd037f98a82386ae9beccd069a4db262d6b69ef49db65a1415cc40c2a6c8726447f0cf4978a332968edf132cd79805ce4f68889a5a 62 | filters: 63 | - entity.system.os == 'linux' 64 | - entity.system.arch == 'amd64' 65 | - entity.system.platform == 'rhel' 66 | - url: https://assets.bonsai.sensu.io/a24eea423200374c5b7f96082dd7e315fc1ea814/sensu-plugins-ntp_2.0.0_debian_linux_amd64.tar.gz 67 | sha512: af36da579989ba8174d111c30f4cda47ee7df711c0d044d96a49adc9e42793270b7fe3dc943cabef453da1e52121ede4111cd4a22d249d30010aa7a1461d646c 68 | filters: 69 | - entity.system.os == 'linux' 70 | - entity.system.arch == 'amd64' 71 | - entity.system.platform == 'debian' 72 | --- 73 | type: Asset 74 | api_version: core/v2 75 | metadata: 76 | annotations: 77 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 78 | io.sensu.bonsai.name: sensu-ruby-runtime 79 | io.sensu.bonsai.namespace: sensu 80 | io.sensu.bonsai.tags: "" 81 | io.sensu.bonsai.tier: Community 82 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 83 | io.sensu.bonsai.version: 0.0.10 84 | name: sensu/sensu-ruby-runtime:0.0.10 85 | spec: 86 | builds: 87 | - filters: 88 | - entity.system.os == 'linux' 89 | - entity.system.arch == 'amd64' 90 | - entity.system.platform_family == 'rhel' 91 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 92 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 93 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 94 | - filters: 95 | - entity.system.os == 'linux' 96 | - entity.system.arch == 'amd64' 97 | - entity.system.platform_family == 'debian' 98 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 99 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 100 | - filters: 101 | - entity.system.os == 'linux' 102 | - entity.system.arch == 'amd64' 103 | - entity.system.platform_family == 'rhel' 104 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 105 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 106 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 107 | - filters: 108 | - entity.system.os == 'linux' 109 | - entity.system.arch == 'amd64' 110 | - entity.system.platform == 'alpine' 111 | - entity.system.platform_version.split('.')[0] == '3' 112 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 113 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 114 | -------------------------------------------------------------------------------- /system/linux/filesystem/metrics-nfsstat.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Provides metrics from nfsstat 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/filesystem" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-filesystem-checks#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Caleb Hailey, @calebhailey 17 | # - Todd Campbell, @nixwiz 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: metrics-nfsstat 22 | spec: 23 | command: metrics-nfsstat.rb 24 | interval: 10 25 | publish: false 26 | runtime_assets: 27 | - sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 28 | - sensu/sensu-ruby-runtime:0.0.10 29 | subscriptions: 30 | - filesystem 31 | output_metric_format: graphite_plaintext 32 | output_metric_handlers: 33 | - metric-storage 34 | --- 35 | type: Asset 36 | api_version: core/v2 37 | metadata: 38 | annotations: 39 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-filesystem-checks 40 | io.sensu.bonsai.name: sensu-plugins-filesystem-checks 41 | io.sensu.bonsai.namespace: sensu-plugins 42 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 43 | io.sensu.bonsai.tier: Community 44 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-filesystem-checks 45 | io.sensu.bonsai.version: 2.0.0 46 | name: sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 47 | spec: 48 | builds: 49 | - filters: 50 | - entity.system.os == 'linux' 51 | - entity.system.arch == 'amd64' 52 | - entity.system.platform == 'alpine' 53 | headers: null 54 | sha512: 46b5e11cf01ef2f3af2369b0d77bbe25aab27cdcc7c08225f560024281ea324294b6830f5c03a31792321da08af145823366f398ddba57f21a8f44ef2a8a293b 55 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_alpine_linux_amd64.tar.gz 56 | - filters: 57 | - entity.system.os == 'linux' 58 | - entity.system.arch == 'amd64' 59 | - entity.system.platform_family == 'rhel' 60 | headers: null 61 | sha512: ecac91a77c2e27bb650dcb61a64d62fa92e98ffa1e754008b6b9bd94bf8e6c8862bdaf40ccf65447dd8be5e037acacb3fc2d20e39519167da05b55b0b9c3e880 62 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_centos_linux_amd64.tar.gz 63 | - filters: 64 | - entity.system.os == 'linux' 65 | - entity.system.arch == 'amd64' 66 | - entity.system.platform_family == 'debian' 67 | headers: null 68 | sha512: 175483f118f4c029a0028a09ea935dc52a1a93e3194e2d615f517a07142d835084c24254cb132edc73e1257fbdb051f4953b7d6724c7a1c701cfc4827fa47fed 69 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_debian_linux_amd64.tar.gz 70 | filters: null 71 | headers: null 72 | --- 73 | type: Asset 74 | api_version: core/v2 75 | metadata: 76 | annotations: 77 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 78 | io.sensu.bonsai.name: sensu-ruby-runtime 79 | io.sensu.bonsai.namespace: sensu 80 | io.sensu.bonsai.tags: "" 81 | io.sensu.bonsai.tier: Community 82 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 83 | io.sensu.bonsai.version: 0.0.10 84 | name: sensu/sensu-ruby-runtime:0.0.10 85 | spec: 86 | builds: 87 | - filters: 88 | - entity.system.os == 'linux' 89 | - entity.system.arch == 'amd64' 90 | - entity.system.platform_family == 'rhel' 91 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 92 | headers: null 93 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 94 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 95 | - filters: 96 | - entity.system.os == 'linux' 97 | - entity.system.arch == 'amd64' 98 | - entity.system.platform_family == 'debian' 99 | headers: null 100 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 101 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 102 | - filters: 103 | - entity.system.os == 'linux' 104 | - entity.system.arch == 'amd64' 105 | - entity.system.platform_family == 'rhel' 106 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 107 | headers: null 108 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 109 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 110 | - filters: 111 | - entity.system.os == 'linux' 112 | - entity.system.arch == 'amd64' 113 | - entity.system.platform == 'alpine' 114 | - entity.system.platform_version.split('.')[0] == '3' 115 | headers: null 116 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 117 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 118 | filters: null 119 | headers: null 120 | -------------------------------------------------------------------------------- /system/linux/filesystem/check-fs-writable.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check that a filesystem is writabale 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/filesystem" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-filesystem-checks#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Caleb Hailey, @calebhailey 17 | # - Todd Campbell, @nixwiz 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: check-fs-writable 22 | spec: 23 | command: >- 24 | check-fs-writable.rb 25 | -d {{ .annotations.check_fs_writable_directory | default /tmp }} 26 | interval: 10 27 | publish: false 28 | runtime_assets: 29 | - sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 30 | - sensu/sensu-ruby-runtime:0.0.10 31 | subscriptions: 32 | - filesystem 33 | handlers: 34 | - alert 35 | --- 36 | type: Asset 37 | api_version: core/v2 38 | metadata: 39 | annotations: 40 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-filesystem-checks 41 | io.sensu.bonsai.name: sensu-plugins-filesystem-checks 42 | io.sensu.bonsai.namespace: sensu-plugins 43 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 44 | io.sensu.bonsai.tier: Community 45 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-filesystem-checks 46 | io.sensu.bonsai.version: 2.0.0 47 | name: sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 48 | spec: 49 | builds: 50 | - filters: 51 | - entity.system.os == 'linux' 52 | - entity.system.arch == 'amd64' 53 | - entity.system.platform == 'alpine' 54 | headers: null 55 | sha512: 46b5e11cf01ef2f3af2369b0d77bbe25aab27cdcc7c08225f560024281ea324294b6830f5c03a31792321da08af145823366f398ddba57f21a8f44ef2a8a293b 56 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_alpine_linux_amd64.tar.gz 57 | - filters: 58 | - entity.system.os == 'linux' 59 | - entity.system.arch == 'amd64' 60 | - entity.system.platform_family == 'rhel' 61 | headers: null 62 | sha512: ecac91a77c2e27bb650dcb61a64d62fa92e98ffa1e754008b6b9bd94bf8e6c8862bdaf40ccf65447dd8be5e037acacb3fc2d20e39519167da05b55b0b9c3e880 63 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_centos_linux_amd64.tar.gz 64 | - filters: 65 | - entity.system.os == 'linux' 66 | - entity.system.arch == 'amd64' 67 | - entity.system.platform_family == 'debian' 68 | headers: null 69 | sha512: 175483f118f4c029a0028a09ea935dc52a1a93e3194e2d615f517a07142d835084c24254cb132edc73e1257fbdb051f4953b7d6724c7a1c701cfc4827fa47fed 70 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_debian_linux_amd64.tar.gz 71 | filters: null 72 | headers: null 73 | --- 74 | type: Asset 75 | api_version: core/v2 76 | metadata: 77 | annotations: 78 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 79 | io.sensu.bonsai.name: sensu-ruby-runtime 80 | io.sensu.bonsai.namespace: sensu 81 | io.sensu.bonsai.tags: "" 82 | io.sensu.bonsai.tier: Community 83 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 84 | io.sensu.bonsai.version: 0.0.10 85 | name: sensu/sensu-ruby-runtime:0.0.10 86 | spec: 87 | builds: 88 | - filters: 89 | - entity.system.os == 'linux' 90 | - entity.system.arch == 'amd64' 91 | - entity.system.platform_family == 'rhel' 92 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 93 | headers: null 94 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 95 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 96 | - filters: 97 | - entity.system.os == 'linux' 98 | - entity.system.arch == 'amd64' 99 | - entity.system.platform_family == 'debian' 100 | headers: null 101 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 102 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 103 | - filters: 104 | - entity.system.os == 'linux' 105 | - entity.system.arch == 'amd64' 106 | - entity.system.platform_family == 'rhel' 107 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 108 | headers: null 109 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 110 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 111 | - filters: 112 | - entity.system.os == 'linux' 113 | - entity.system.arch == 'amd64' 114 | - entity.system.platform == 'alpine' 115 | - entity.system.platform_version.split('.')[0] == '3' 116 | headers: null 117 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 118 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 119 | filters: null 120 | headers: null 121 | -------------------------------------------------------------------------------- /system/linux/vmstats/metrics-vmstat.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Provides metrics from the vmstat command 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/vmstats" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-vmstats#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Justin Kolberg, @amdprophet 17 | # - Nikki Attea, @nikkixdev 18 | # - Caleb Hailey, @calebhailey 19 | # - Todd Campbell, @nixwiz 20 | type: CheckConfig 21 | api_version: core/v2 22 | metadata: 23 | name: metrics-vmstat 24 | spec: 25 | command: metrics-vmstat.rb 26 | runtime_assets: 27 | - sensu-plugins/sensu-plugins-vmstats 28 | - sensu/sensu-ruby-runtime:0.0.10 29 | publish: false 30 | subscriptions: 31 | - system/linux 32 | - system/linux/vmstats 33 | interval: 30 34 | timeout: 10 35 | ttl: 0 36 | proxy_entity_name: "" 37 | stdin: false 38 | output_metric_format: graphite_plaintext 39 | output_metric_handlers: 40 | - metric-storage 41 | --- 42 | type: Asset 43 | api_version: core/v2 44 | metadata: 45 | annotations: 46 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-vmstats 47 | io.sensu.bonsai.name: sensu-plugins-vmstats 48 | io.sensu.bonsai.namespace: sensu-plugins 49 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 50 | io.sensu.bonsai.tier: Community 51 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-vmstats 52 | io.sensu.bonsai.version: 2.0.0 53 | name: sensu-plugins/sensu-plugins-vmstats 54 | spec: 55 | builds: 56 | - filters: 57 | - entity.system.os == 'linux' 58 | - entity.system.arch == 'amd64' 59 | - entity.system.platform == 'alpine' 60 | headers: null 61 | sha512: d5f5127eb06f296eb71fef4bd28ca4f5e6982540b7393dedf92d8c09b7ea449baeda8b645f02dc3d0650c0f287d90c6d92b8508a160b0f2c5172c06ee9540350 62 | url: https://assets.bonsai.sensu.io/5c97f93791b98b2542c5c9739e88ca28b76a95ac/sensu-plugins-vmstats_2.0.0_alpine_linux_amd64.tar.gz 63 | - filters: 64 | - entity.system.os == 'linux' 65 | - entity.system.arch == 'amd64' 66 | - entity.system.platform_family == 'rhel' 67 | headers: null 68 | sha512: 366eb41a1ad3b7750d7de5f510b6a17393729eac09d4b786e9af440b8036a737fa3ff8da1e137238edce8585898fa936cf096c4c12c226f628d998ca59769e6f 69 | url: https://assets.bonsai.sensu.io/5c97f93791b98b2542c5c9739e88ca28b76a95ac/sensu-plugins-vmstats_2.0.0_centos_linux_amd64.tar.gz 70 | - filters: 71 | - entity.system.os == 'linux' 72 | - entity.system.arch == 'amd64' 73 | - entity.system.platform_family == 'debian' 74 | headers: null 75 | sha512: 6c19ba8bbc2f3a87b1dde5a1e759f8ab7bafc2b4c2c7063516a521ffae052892955adf596f2489a0dab135de3797695dd6f7428d64d06df78e0e8bfd228e4649 76 | url: https://assets.bonsai.sensu.io/5c97f93791b98b2542c5c9739e88ca28b76a95ac/sensu-plugins-vmstats_2.0.0_debian_linux_amd64.tar.gz 77 | filters: null 78 | headers: null 79 | --- 80 | type: Asset 81 | api_version: core/v2 82 | metadata: 83 | annotations: 84 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 85 | io.sensu.bonsai.name: sensu-ruby-runtime 86 | io.sensu.bonsai.namespace: sensu 87 | io.sensu.bonsai.tags: "" 88 | io.sensu.bonsai.tier: Community 89 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 90 | io.sensu.bonsai.version: 0.0.10 91 | name: sensu/sensu-ruby-runtime 92 | spec: 93 | builds: 94 | - filters: 95 | - entity.system.os == 'linux' 96 | - entity.system.arch == 'amd64' 97 | - entity.system.platform_family == 'rhel' 98 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 99 | headers: null 100 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 101 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 102 | - filters: 103 | - entity.system.os == 'linux' 104 | - entity.system.arch == 'amd64' 105 | - entity.system.platform_family == 'debian' 106 | headers: null 107 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 108 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 109 | - filters: 110 | - entity.system.os == 'linux' 111 | - entity.system.arch == 'amd64' 112 | - entity.system.platform_family == 'rhel' 113 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 114 | headers: null 115 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 116 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 117 | - filters: 118 | - entity.system.os == 'linux' 119 | - entity.system.arch == 'amd64' 120 | - entity.system.platform == 'alpine' 121 | - entity.system.platform_version.split('.')[0] == '3' 122 | headers: null 123 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 124 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 125 | filters: null 126 | headers: null 127 | -------------------------------------------------------------------------------- /system/linux/filesystem/metrics-dirsize.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Provides metrics for directory sizes 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/filesystem" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-filesystem-checks#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Caleb Hailey, @calebhailey 17 | # - Todd Campbell, @nixwiz 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: metrics-dirsize 22 | spec: 23 | command: >- 24 | metrics-dirsize.rb 25 | -d {{ .annotations.metrics_dirsize_directory | default /tmp }} 26 | interval: 10 27 | publish: false 28 | runtime_assets: 29 | - sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 30 | - sensu/sensu-ruby-runtime:0.0.10 31 | subscriptions: 32 | - filesystem 33 | output_metric_format: graphite_plaintext 34 | output_metric_handlers: 35 | - metric-storage 36 | --- 37 | type: Asset 38 | api_version: core/v2 39 | metadata: 40 | annotations: 41 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-filesystem-checks 42 | io.sensu.bonsai.name: sensu-plugins-filesystem-checks 43 | io.sensu.bonsai.namespace: sensu-plugins 44 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 45 | io.sensu.bonsai.tier: Community 46 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-filesystem-checks 47 | io.sensu.bonsai.version: 2.0.0 48 | name: sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 49 | spec: 50 | builds: 51 | - filters: 52 | - entity.system.os == 'linux' 53 | - entity.system.arch == 'amd64' 54 | - entity.system.platform == 'alpine' 55 | headers: null 56 | sha512: 46b5e11cf01ef2f3af2369b0d77bbe25aab27cdcc7c08225f560024281ea324294b6830f5c03a31792321da08af145823366f398ddba57f21a8f44ef2a8a293b 57 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_alpine_linux_amd64.tar.gz 58 | - filters: 59 | - entity.system.os == 'linux' 60 | - entity.system.arch == 'amd64' 61 | - entity.system.platform_family == 'rhel' 62 | headers: null 63 | sha512: ecac91a77c2e27bb650dcb61a64d62fa92e98ffa1e754008b6b9bd94bf8e6c8862bdaf40ccf65447dd8be5e037acacb3fc2d20e39519167da05b55b0b9c3e880 64 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_centos_linux_amd64.tar.gz 65 | - filters: 66 | - entity.system.os == 'linux' 67 | - entity.system.arch == 'amd64' 68 | - entity.system.platform_family == 'debian' 69 | headers: null 70 | sha512: 175483f118f4c029a0028a09ea935dc52a1a93e3194e2d615f517a07142d835084c24254cb132edc73e1257fbdb051f4953b7d6724c7a1c701cfc4827fa47fed 71 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_debian_linux_amd64.tar.gz 72 | filters: null 73 | headers: null 74 | --- 75 | type: Asset 76 | api_version: core/v2 77 | metadata: 78 | annotations: 79 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 80 | io.sensu.bonsai.name: sensu-ruby-runtime 81 | io.sensu.bonsai.namespace: sensu 82 | io.sensu.bonsai.tags: "" 83 | io.sensu.bonsai.tier: Community 84 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 85 | io.sensu.bonsai.version: 0.0.10 86 | name: sensu/sensu-ruby-runtime:0.0.10 87 | spec: 88 | builds: 89 | - filters: 90 | - entity.system.os == 'linux' 91 | - entity.system.arch == 'amd64' 92 | - entity.system.platform_family == 'rhel' 93 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 94 | headers: null 95 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 96 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 97 | - filters: 98 | - entity.system.os == 'linux' 99 | - entity.system.arch == 'amd64' 100 | - entity.system.platform_family == 'debian' 101 | headers: null 102 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 103 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 104 | - filters: 105 | - entity.system.os == 'linux' 106 | - entity.system.arch == 'amd64' 107 | - entity.system.platform_family == 'rhel' 108 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 109 | headers: null 110 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 111 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 112 | - filters: 113 | - entity.system.os == 'linux' 114 | - entity.system.arch == 'amd64' 115 | - entity.system.platform == 'alpine' 116 | - entity.system.platform_version.split('.')[0] == '3' 117 | headers: null 118 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 119 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 120 | filters: null 121 | headers: null 122 | -------------------------------------------------------------------------------- /system/linux/filesystem/metrics-filesize.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Provides metrics for getting sizes of a particular file 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/filesystem" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-filesystem-checks#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Caleb Hailey, @calebhailey 17 | # - Todd Campbell, @nixwiz 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: metrics-filesize 22 | spec: 23 | command: >- 24 | metrics-filesize.rb 25 | -f {{ .annotations.metrics_filesize_file | default /bin/sh }} 26 | interval: 10 27 | publish: false 28 | runtime_assets: 29 | - sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 30 | - sensu/sensu-ruby-runtime:0.0.10 31 | subscriptions: 32 | - filesystem 33 | output_metric_format: graphite_plaintext 34 | output_metric_handlers: 35 | - metric-storage 36 | --- 37 | type: Asset 38 | api_version: core/v2 39 | metadata: 40 | annotations: 41 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-filesystem-checks 42 | io.sensu.bonsai.name: sensu-plugins-filesystem-checks 43 | io.sensu.bonsai.namespace: sensu-plugins 44 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 45 | io.sensu.bonsai.tier: Community 46 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-filesystem-checks 47 | io.sensu.bonsai.version: 2.0.0 48 | name: sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 49 | spec: 50 | builds: 51 | - filters: 52 | - entity.system.os == 'linux' 53 | - entity.system.arch == 'amd64' 54 | - entity.system.platform == 'alpine' 55 | headers: null 56 | sha512: 46b5e11cf01ef2f3af2369b0d77bbe25aab27cdcc7c08225f560024281ea324294b6830f5c03a31792321da08af145823366f398ddba57f21a8f44ef2a8a293b 57 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_alpine_linux_amd64.tar.gz 58 | - filters: 59 | - entity.system.os == 'linux' 60 | - entity.system.arch == 'amd64' 61 | - entity.system.platform_family == 'rhel' 62 | headers: null 63 | sha512: ecac91a77c2e27bb650dcb61a64d62fa92e98ffa1e754008b6b9bd94bf8e6c8862bdaf40ccf65447dd8be5e037acacb3fc2d20e39519167da05b55b0b9c3e880 64 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_centos_linux_amd64.tar.gz 65 | - filters: 66 | - entity.system.os == 'linux' 67 | - entity.system.arch == 'amd64' 68 | - entity.system.platform_family == 'debian' 69 | headers: null 70 | sha512: 175483f118f4c029a0028a09ea935dc52a1a93e3194e2d615f517a07142d835084c24254cb132edc73e1257fbdb051f4953b7d6724c7a1c701cfc4827fa47fed 71 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_debian_linux_amd64.tar.gz 72 | filters: null 73 | headers: null 74 | --- 75 | type: Asset 76 | api_version: core/v2 77 | metadata: 78 | annotations: 79 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 80 | io.sensu.bonsai.name: sensu-ruby-runtime 81 | io.sensu.bonsai.namespace: sensu 82 | io.sensu.bonsai.tags: "" 83 | io.sensu.bonsai.tier: Community 84 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 85 | io.sensu.bonsai.version: 0.0.10 86 | name: sensu/sensu-ruby-runtime:0.0.10 87 | spec: 88 | builds: 89 | - filters: 90 | - entity.system.os == 'linux' 91 | - entity.system.arch == 'amd64' 92 | - entity.system.platform_family == 'rhel' 93 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 94 | headers: null 95 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 96 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 97 | - filters: 98 | - entity.system.os == 'linux' 99 | - entity.system.arch == 'amd64' 100 | - entity.system.platform_family == 'debian' 101 | headers: null 102 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 103 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 104 | - filters: 105 | - entity.system.os == 'linux' 106 | - entity.system.arch == 'amd64' 107 | - entity.system.platform_family == 'rhel' 108 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 109 | headers: null 110 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 111 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 112 | - filters: 113 | - entity.system.os == 'linux' 114 | - entity.system.arch == 'amd64' 115 | - entity.system.platform == 'alpine' 116 | - entity.system.platform_version.split('.')[0] == '3' 117 | headers: null 118 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 119 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 120 | filters: null 121 | headers: null 122 | -------------------------------------------------------------------------------- /system/linux/filesystem/check-mtime.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check a file's modified time 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/filesystem" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-filesystem-checks#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Caleb Hailey, @calebhailey 17 | # - Todd Campbell, @nixwiz 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: check-mtime 22 | spec: 23 | command: >- 24 | check-mtime.rb 25 | -f {{ .annotations.check_mtime_file | default /bin/sh }} 26 | -w {{ .annotations.check_mtime_warn | default 3600 }} 27 | -c {{ .annotations.check_mtime_crit | default 7200 }} 28 | interval: 10 29 | publish: false 30 | runtime_assets: 31 | - sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 32 | - sensu/sensu-ruby-runtime:0.0.10 33 | subscriptions: 34 | - filesystem 35 | handlers: 36 | - alert 37 | --- 38 | type: Asset 39 | api_version: core/v2 40 | metadata: 41 | annotations: 42 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-filesystem-checks 43 | io.sensu.bonsai.name: sensu-plugins-filesystem-checks 44 | io.sensu.bonsai.namespace: sensu-plugins 45 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 46 | io.sensu.bonsai.tier: Community 47 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-filesystem-checks 48 | io.sensu.bonsai.version: 2.0.0 49 | name: sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 50 | spec: 51 | builds: 52 | - filters: 53 | - entity.system.os == 'linux' 54 | - entity.system.arch == 'amd64' 55 | - entity.system.platform == 'alpine' 56 | headers: null 57 | sha512: 46b5e11cf01ef2f3af2369b0d77bbe25aab27cdcc7c08225f560024281ea324294b6830f5c03a31792321da08af145823366f398ddba57f21a8f44ef2a8a293b 58 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_alpine_linux_amd64.tar.gz 59 | - filters: 60 | - entity.system.os == 'linux' 61 | - entity.system.arch == 'amd64' 62 | - entity.system.platform_family == 'rhel' 63 | headers: null 64 | sha512: ecac91a77c2e27bb650dcb61a64d62fa92e98ffa1e754008b6b9bd94bf8e6c8862bdaf40ccf65447dd8be5e037acacb3fc2d20e39519167da05b55b0b9c3e880 65 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_centos_linux_amd64.tar.gz 66 | - filters: 67 | - entity.system.os == 'linux' 68 | - entity.system.arch == 'amd64' 69 | - entity.system.platform_family == 'debian' 70 | headers: null 71 | sha512: 175483f118f4c029a0028a09ea935dc52a1a93e3194e2d615f517a07142d835084c24254cb132edc73e1257fbdb051f4953b7d6724c7a1c701cfc4827fa47fed 72 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_debian_linux_amd64.tar.gz 73 | filters: null 74 | headers: null 75 | --- 76 | type: Asset 77 | api_version: core/v2 78 | metadata: 79 | annotations: 80 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 81 | io.sensu.bonsai.name: sensu-ruby-runtime 82 | io.sensu.bonsai.namespace: sensu 83 | io.sensu.bonsai.tags: "" 84 | io.sensu.bonsai.tier: Community 85 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 86 | io.sensu.bonsai.version: 0.0.10 87 | name: sensu/sensu-ruby-runtime:0.0.10 88 | spec: 89 | builds: 90 | - filters: 91 | - entity.system.os == 'linux' 92 | - entity.system.arch == 'amd64' 93 | - entity.system.platform_family == 'rhel' 94 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 95 | headers: null 96 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 97 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 98 | - filters: 99 | - entity.system.os == 'linux' 100 | - entity.system.arch == 'amd64' 101 | - entity.system.platform_family == 'debian' 102 | headers: null 103 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 104 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 105 | - filters: 106 | - entity.system.os == 'linux' 107 | - entity.system.arch == 'amd64' 108 | - entity.system.platform_family == 'rhel' 109 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 110 | headers: null 111 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 112 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 113 | - filters: 114 | - entity.system.os == 'linux' 115 | - entity.system.arch == 'amd64' 116 | - entity.system.platform == 'alpine' 117 | - entity.system.platform_version.split('.')[0] == '3' 118 | headers: null 119 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 120 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 121 | filters: null 122 | headers: null 123 | -------------------------------------------------------------------------------- /system/linux/filesystem/check-dir-count.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check the number of files in a directory 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/filesystem" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-filesystem-checks#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Caleb Hailey, @calebhailey 17 | # - Todd Campbell, @nixwiz 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: check-dir-count 22 | 23 | spec: 24 | command: >- 25 | check-dir-count.rb 26 | -d {{ .annotations.check_dir_directory | default /tmp }} 27 | -w {{ .annotations.check_dir_warn | default 75 }} 28 | -c {{ .annotations.check_dir_crit | default 100 }} 29 | interval: 10 30 | publish: false 31 | runtime_assets: 32 | - sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 33 | - sensu/sensu-ruby-runtime:0.0.10 34 | subscriptions: 35 | - filesystem 36 | handlers: 37 | - alert 38 | --- 39 | type: Asset 40 | api_version: core/v2 41 | metadata: 42 | annotations: 43 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-filesystem-checks 44 | io.sensu.bonsai.name: sensu-plugins-filesystem-checks 45 | io.sensu.bonsai.namespace: sensu-plugins 46 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 47 | io.sensu.bonsai.tier: Community 48 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-filesystem-checks 49 | io.sensu.bonsai.version: 2.0.0 50 | name: sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 51 | spec: 52 | builds: 53 | - filters: 54 | - entity.system.os == 'linux' 55 | - entity.system.arch == 'amd64' 56 | - entity.system.platform == 'alpine' 57 | headers: null 58 | sha512: 46b5e11cf01ef2f3af2369b0d77bbe25aab27cdcc7c08225f560024281ea324294b6830f5c03a31792321da08af145823366f398ddba57f21a8f44ef2a8a293b 59 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_alpine_linux_amd64.tar.gz 60 | - filters: 61 | - entity.system.os == 'linux' 62 | - entity.system.arch == 'amd64' 63 | - entity.system.platform_family == 'rhel' 64 | headers: null 65 | sha512: ecac91a77c2e27bb650dcb61a64d62fa92e98ffa1e754008b6b9bd94bf8e6c8862bdaf40ccf65447dd8be5e037acacb3fc2d20e39519167da05b55b0b9c3e880 66 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_centos_linux_amd64.tar.gz 67 | - filters: 68 | - entity.system.os == 'linux' 69 | - entity.system.arch == 'amd64' 70 | - entity.system.platform_family == 'debian' 71 | headers: null 72 | sha512: 175483f118f4c029a0028a09ea935dc52a1a93e3194e2d615f517a07142d835084c24254cb132edc73e1257fbdb051f4953b7d6724c7a1c701cfc4827fa47fed 73 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_debian_linux_amd64.tar.gz 74 | filters: null 75 | headers: null 76 | --- 77 | type: Asset 78 | api_version: core/v2 79 | metadata: 80 | annotations: 81 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 82 | io.sensu.bonsai.name: sensu-ruby-runtime 83 | io.sensu.bonsai.namespace: sensu 84 | io.sensu.bonsai.tags: "" 85 | io.sensu.bonsai.tier: Community 86 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 87 | io.sensu.bonsai.version: 0.0.10 88 | name: sensu/sensu-ruby-runtime:0.0.10 89 | spec: 90 | builds: 91 | - filters: 92 | - entity.system.os == 'linux' 93 | - entity.system.arch == 'amd64' 94 | - entity.system.platform_family == 'rhel' 95 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 96 | headers: null 97 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 98 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 99 | - filters: 100 | - entity.system.os == 'linux' 101 | - entity.system.arch == 'amd64' 102 | - entity.system.platform_family == 'debian' 103 | headers: null 104 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 105 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 106 | - filters: 107 | - entity.system.os == 'linux' 108 | - entity.system.arch == 'amd64' 109 | - entity.system.platform_family == 'rhel' 110 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 111 | headers: null 112 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 113 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 114 | - filters: 115 | - entity.system.os == 'linux' 116 | - entity.system.arch == 'amd64' 117 | - entity.system.platform == 'alpine' 118 | - entity.system.platform_version.split('.')[0] == '3' 119 | headers: null 120 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 121 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 122 | filters: null 123 | headers: null 124 | -------------------------------------------------------------------------------- /system/linux/filesystem/check-dir-size.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check the size of a directory 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/filesystem" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-filesystem-checks#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Caleb Hailey, @calebhailey 17 | # - Todd Campbell, @nixwiz 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: check-dir-size 22 | spec: 23 | command: >- 24 | check-dir-size.rb 25 | -d {{ .annotations.check_dir_size_directory | default /tmp }} 26 | -w {{ .annotations.check_dir_size_warn | default 1000000 }} 27 | -c {{ .annotations.check_dir_size_crit | default 2000000 }} 28 | interval: 10 29 | publish: false 30 | runtime_assets: 31 | - sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 32 | - sensu/sensu-ruby-runtime:0.0.10 33 | subscriptions: 34 | - filesystem 35 | handlers: 36 | - alert 37 | --- 38 | type: Asset 39 | api_version: core/v2 40 | metadata: 41 | annotations: 42 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-filesystem-checks 43 | io.sensu.bonsai.name: sensu-plugins-filesystem-checks 44 | io.sensu.bonsai.namespace: sensu-plugins 45 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 46 | io.sensu.bonsai.tier: Community 47 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-filesystem-checks 48 | io.sensu.bonsai.version: 2.0.0 49 | name: sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 50 | spec: 51 | builds: 52 | - filters: 53 | - entity.system.os == 'linux' 54 | - entity.system.arch == 'amd64' 55 | - entity.system.platform == 'alpine' 56 | headers: null 57 | sha512: 46b5e11cf01ef2f3af2369b0d77bbe25aab27cdcc7c08225f560024281ea324294b6830f5c03a31792321da08af145823366f398ddba57f21a8f44ef2a8a293b 58 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_alpine_linux_amd64.tar.gz 59 | - filters: 60 | - entity.system.os == 'linux' 61 | - entity.system.arch == 'amd64' 62 | - entity.system.platform_family == 'rhel' 63 | headers: null 64 | sha512: ecac91a77c2e27bb650dcb61a64d62fa92e98ffa1e754008b6b9bd94bf8e6c8862bdaf40ccf65447dd8be5e037acacb3fc2d20e39519167da05b55b0b9c3e880 65 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_centos_linux_amd64.tar.gz 66 | - filters: 67 | - entity.system.os == 'linux' 68 | - entity.system.arch == 'amd64' 69 | - entity.system.platform_family == 'debian' 70 | headers: null 71 | sha512: 175483f118f4c029a0028a09ea935dc52a1a93e3194e2d615f517a07142d835084c24254cb132edc73e1257fbdb051f4953b7d6724c7a1c701cfc4827fa47fed 72 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_debian_linux_amd64.tar.gz 73 | filters: null 74 | headers: null 75 | --- 76 | type: Asset 77 | api_version: core/v2 78 | metadata: 79 | annotations: 80 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 81 | io.sensu.bonsai.name: sensu-ruby-runtime 82 | io.sensu.bonsai.namespace: sensu 83 | io.sensu.bonsai.tags: "" 84 | io.sensu.bonsai.tier: Community 85 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 86 | io.sensu.bonsai.version: 0.0.10 87 | name: sensu/sensu-ruby-runtime:0.0.10 88 | spec: 89 | builds: 90 | - filters: 91 | - entity.system.os == 'linux' 92 | - entity.system.arch == 'amd64' 93 | - entity.system.platform_family == 'rhel' 94 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 95 | headers: null 96 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 97 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 98 | - filters: 99 | - entity.system.os == 'linux' 100 | - entity.system.arch == 'amd64' 101 | - entity.system.platform_family == 'debian' 102 | headers: null 103 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 104 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 105 | - filters: 106 | - entity.system.os == 'linux' 107 | - entity.system.arch == 'amd64' 108 | - entity.system.platform_family == 'rhel' 109 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 110 | headers: null 111 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 112 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 113 | - filters: 114 | - entity.system.os == 'linux' 115 | - entity.system.arch == 'amd64' 116 | - entity.system.platform == 'alpine' 117 | - entity.system.platform_version.split('.')[0] == '3' 118 | headers: null 119 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 120 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 121 | filters: null 122 | headers: null 123 | -------------------------------------------------------------------------------- /system/linux/filesystem/check-tail.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Checks the tail of a file for a given pattern 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/filesystem" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-filesystem-checks#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Caleb Hailey, @calebhailey 17 | # - Todd Campbell, @nixwiz 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: check-tail 22 | spec: 23 | command: >- 24 | check-tail.rb 25 | -f {{ .annotations.check_tail_file | default /var/log/messages }} 26 | -P {{ .annotations.check_tail_pattern | default error }} 27 | -l {{ .annotations.check_tail_lines | default 10 }} 28 | interval: 10 29 | publish: false 30 | runtime_assets: 31 | - sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 32 | - sensu/sensu-ruby-runtime:0.0.10 33 | subscriptions: 34 | - filesystem 35 | handlers: 36 | - alert 37 | --- 38 | type: Asset 39 | api_version: core/v2 40 | metadata: 41 | annotations: 42 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-filesystem-checks 43 | io.sensu.bonsai.name: sensu-plugins-filesystem-checks 44 | io.sensu.bonsai.namespace: sensu-plugins 45 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 46 | io.sensu.bonsai.tier: Community 47 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-filesystem-checks 48 | io.sensu.bonsai.version: 2.0.0 49 | name: sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 50 | spec: 51 | builds: 52 | - filters: 53 | - entity.system.os == 'linux' 54 | - entity.system.arch == 'amd64' 55 | - entity.system.platform == 'alpine' 56 | headers: null 57 | sha512: 46b5e11cf01ef2f3af2369b0d77bbe25aab27cdcc7c08225f560024281ea324294b6830f5c03a31792321da08af145823366f398ddba57f21a8f44ef2a8a293b 58 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_alpine_linux_amd64.tar.gz 59 | - filters: 60 | - entity.system.os == 'linux' 61 | - entity.system.arch == 'amd64' 62 | - entity.system.platform_family == 'rhel' 63 | headers: null 64 | sha512: ecac91a77c2e27bb650dcb61a64d62fa92e98ffa1e754008b6b9bd94bf8e6c8862bdaf40ccf65447dd8be5e037acacb3fc2d20e39519167da05b55b0b9c3e880 65 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_centos_linux_amd64.tar.gz 66 | - filters: 67 | - entity.system.os == 'linux' 68 | - entity.system.arch == 'amd64' 69 | - entity.system.platform_family == 'debian' 70 | headers: null 71 | sha512: 175483f118f4c029a0028a09ea935dc52a1a93e3194e2d615f517a07142d835084c24254cb132edc73e1257fbdb051f4953b7d6724c7a1c701cfc4827fa47fed 72 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_debian_linux_amd64.tar.gz 73 | filters: null 74 | headers: null 75 | --- 76 | type: Asset 77 | api_version: core/v2 78 | metadata: 79 | annotations: 80 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 81 | io.sensu.bonsai.name: sensu-ruby-runtime 82 | io.sensu.bonsai.namespace: sensu 83 | io.sensu.bonsai.tags: "" 84 | io.sensu.bonsai.tier: Community 85 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 86 | io.sensu.bonsai.version: 0.0.10 87 | name: sensu/sensu-ruby-runtime:0.0.10 88 | spec: 89 | builds: 90 | - filters: 91 | - entity.system.os == 'linux' 92 | - entity.system.arch == 'amd64' 93 | - entity.system.platform_family == 'rhel' 94 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 95 | headers: null 96 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 97 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 98 | - filters: 99 | - entity.system.os == 'linux' 100 | - entity.system.arch == 'amd64' 101 | - entity.system.platform_family == 'debian' 102 | headers: null 103 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 104 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 105 | - filters: 106 | - entity.system.os == 'linux' 107 | - entity.system.arch == 'amd64' 108 | - entity.system.platform_family == 'rhel' 109 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 110 | headers: null 111 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 112 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 113 | - filters: 114 | - entity.system.os == 'linux' 115 | - entity.system.arch == 'amd64' 116 | - entity.system.platform == 'alpine' 117 | - entity.system.platform_version.split('.')[0] == '3' 118 | headers: null 119 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 120 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 121 | filters: null 122 | headers: null 123 | -------------------------------------------------------------------------------- /system/linux/filesystem/check-file-exists.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check if a file exists 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/filesystem" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-filesystem-checks#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Caleb Hailey, @calebhailey 17 | # - Todd Campbell, @nixwiz 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: check-file-exists 22 | spec: 23 | command: >- 24 | check-file-exists.rb 25 | -c {{ .annotations.check_file_exists_crit | default /tmp/CRITICAL }} 26 | -w {{ .annotations.check_file_exists_warn | default /tmp/WARNING }} 27 | -u {{ .annotations.check_file_exists_unknown | default /tmp/UNKNOWN }} 28 | interval: 10 29 | publish: false 30 | runtime_assets: 31 | - sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 32 | - sensu/sensu-ruby-runtime:0.0.10 33 | subscriptions: 34 | - filesystem 35 | handlers: 36 | - alert 37 | --- 38 | type: Asset 39 | api_version: core/v2 40 | metadata: 41 | annotations: 42 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-filesystem-checks 43 | io.sensu.bonsai.name: sensu-plugins-filesystem-checks 44 | io.sensu.bonsai.namespace: sensu-plugins 45 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 46 | io.sensu.bonsai.tier: Community 47 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-filesystem-checks 48 | io.sensu.bonsai.version: 2.0.0 49 | name: sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 50 | spec: 51 | builds: 52 | - filters: 53 | - entity.system.os == 'linux' 54 | - entity.system.arch == 'amd64' 55 | - entity.system.platform == 'alpine' 56 | headers: null 57 | sha512: 46b5e11cf01ef2f3af2369b0d77bbe25aab27cdcc7c08225f560024281ea324294b6830f5c03a31792321da08af145823366f398ddba57f21a8f44ef2a8a293b 58 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_alpine_linux_amd64.tar.gz 59 | - filters: 60 | - entity.system.os == 'linux' 61 | - entity.system.arch == 'amd64' 62 | - entity.system.platform_family == 'rhel' 63 | headers: null 64 | sha512: ecac91a77c2e27bb650dcb61a64d62fa92e98ffa1e754008b6b9bd94bf8e6c8862bdaf40ccf65447dd8be5e037acacb3fc2d20e39519167da05b55b0b9c3e880 65 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_centos_linux_amd64.tar.gz 66 | - filters: 67 | - entity.system.os == 'linux' 68 | - entity.system.arch == 'amd64' 69 | - entity.system.platform_family == 'debian' 70 | headers: null 71 | sha512: 175483f118f4c029a0028a09ea935dc52a1a93e3194e2d615f517a07142d835084c24254cb132edc73e1257fbdb051f4953b7d6724c7a1c701cfc4827fa47fed 72 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_debian_linux_amd64.tar.gz 73 | filters: null 74 | headers: null 75 | --- 76 | type: Asset 77 | api_version: core/v2 78 | metadata: 79 | annotations: 80 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 81 | io.sensu.bonsai.name: sensu-ruby-runtime 82 | io.sensu.bonsai.namespace: sensu 83 | io.sensu.bonsai.tags: "" 84 | io.sensu.bonsai.tier: Community 85 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 86 | io.sensu.bonsai.version: 0.0.10 87 | name: sensu/sensu-ruby-runtime:0.0.10 88 | spec: 89 | builds: 90 | - filters: 91 | - entity.system.os == 'linux' 92 | - entity.system.arch == 'amd64' 93 | - entity.system.platform_family == 'rhel' 94 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 95 | headers: null 96 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 97 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 98 | - filters: 99 | - entity.system.os == 'linux' 100 | - entity.system.arch == 'amd64' 101 | - entity.system.platform_family == 'debian' 102 | headers: null 103 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 104 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 105 | - filters: 106 | - entity.system.os == 'linux' 107 | - entity.system.arch == 'amd64' 108 | - entity.system.platform_family == 'rhel' 109 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 110 | headers: null 111 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 112 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 113 | - filters: 114 | - entity.system.os == 'linux' 115 | - entity.system.arch == 'amd64' 116 | - entity.system.platform == 'alpine' 117 | - entity.system.platform_version.split('.')[0] == '3' 118 | headers: null 119 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 120 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 121 | filters: null 122 | headers: null 123 | -------------------------------------------------------------------------------- /system/linux/filesystem/check-checksums.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check a file against its checksum 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/filesystem" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-filesystem-checks#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Caleb Hailey, @calebhailey 17 | # - Todd Campbell, @nixwiz 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: check-checksums 22 | spec: 23 | command: >- 24 | check-checksums.rb 25 | -f {{ .annotations.check_checksums_file | default /bin/sh }} 26 | -h {{ .annotations.check_checksums_sha256 | default eca410732dd8568ec169c1879965f4361bd69d72c06cb5990c7b3962f197a844 }} 27 | interval: 10 28 | publish: false 29 | runtime_assets: 30 | - sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 31 | - sensu/sensu-ruby-runtime:0.0.10 32 | subscriptions: 33 | - system/linux 34 | - system/linux/filesystem 35 | handlers: 36 | - alert 37 | --- 38 | type: Asset 39 | api_version: core/v2 40 | metadata: 41 | annotations: 42 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-filesystem-checks 43 | io.sensu.bonsai.name: sensu-plugins-filesystem-checks 44 | io.sensu.bonsai.namespace: sensu-plugins 45 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 46 | io.sensu.bonsai.tier: Community 47 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-filesystem-checks 48 | io.sensu.bonsai.version: 2.0.0 49 | name: sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 50 | spec: 51 | builds: 52 | - filters: 53 | - entity.system.os == 'linux' 54 | - entity.system.arch == 'amd64' 55 | - entity.system.platform == 'alpine' 56 | headers: null 57 | sha512: 46b5e11cf01ef2f3af2369b0d77bbe25aab27cdcc7c08225f560024281ea324294b6830f5c03a31792321da08af145823366f398ddba57f21a8f44ef2a8a293b 58 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_alpine_linux_amd64.tar.gz 59 | - filters: 60 | - entity.system.os == 'linux' 61 | - entity.system.arch == 'amd64' 62 | - entity.system.platform_family == 'rhel' 63 | headers: null 64 | sha512: ecac91a77c2e27bb650dcb61a64d62fa92e98ffa1e754008b6b9bd94bf8e6c8862bdaf40ccf65447dd8be5e037acacb3fc2d20e39519167da05b55b0b9c3e880 65 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_centos_linux_amd64.tar.gz 66 | - filters: 67 | - entity.system.os == 'linux' 68 | - entity.system.arch == 'amd64' 69 | - entity.system.platform_family == 'debian' 70 | headers: null 71 | sha512: 175483f118f4c029a0028a09ea935dc52a1a93e3194e2d615f517a07142d835084c24254cb132edc73e1257fbdb051f4953b7d6724c7a1c701cfc4827fa47fed 72 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_debian_linux_amd64.tar.gz 73 | filters: null 74 | headers: null 75 | --- 76 | type: Asset 77 | api_version: core/v2 78 | metadata: 79 | annotations: 80 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 81 | io.sensu.bonsai.name: sensu-ruby-runtime 82 | io.sensu.bonsai.namespace: sensu 83 | io.sensu.bonsai.tags: "" 84 | io.sensu.bonsai.tier: Community 85 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 86 | io.sensu.bonsai.version: 0.0.10 87 | name: sensu/sensu-ruby-runtime:0.0.10 88 | spec: 89 | builds: 90 | - filters: 91 | - entity.system.os == 'linux' 92 | - entity.system.arch == 'amd64' 93 | - entity.system.platform_family == 'rhel' 94 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 95 | headers: null 96 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 97 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 98 | - filters: 99 | - entity.system.os == 'linux' 100 | - entity.system.arch == 'amd64' 101 | - entity.system.platform_family == 'debian' 102 | headers: null 103 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 104 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 105 | - filters: 106 | - entity.system.os == 'linux' 107 | - entity.system.arch == 'amd64' 108 | - entity.system.platform_family == 'rhel' 109 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 110 | headers: null 111 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 112 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 113 | - filters: 114 | - entity.system.os == 'linux' 115 | - entity.system.arch == 'amd64' 116 | - entity.system.platform == 'alpine' 117 | - entity.system.platform_version.split('.')[0] == '3' 118 | headers: null 119 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 120 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 121 | filters: null 122 | headers: null 123 | -------------------------------------------------------------------------------- /system/linux/filesystem/check-file-size.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check the size of a given file 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/filesystem" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-filesystem-checks#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Caleb Hailey, @calebhailey 17 | # - Todd Campbell, @nixwiz 18 | # Description 19 | # Check a file against its checksum 20 | # 21 | # Instructions 22 | # 1. Add the "system/linux" or "system/linux/filesystem" subscription to agents 23 | # that should run this check. 24 | # 2. More configuration options are available for this plugin; please see the 25 | # plugin documentation for more details. 26 | # 27 | # Documentation 28 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-filesystem-checks#usage-examples 29 | # 30 | # Contributors 31 | # The following individuals have contributed to this configuration template: 32 | # - Caleb Hailey, @calebhailey 33 | # - Todd Campbell, @nixwiz 34 | type: CheckConfig 35 | api_version: core/v2 36 | metadata: 37 | name: check-file-size 38 | spec: 39 | command: >- 40 | check-file-size.rb 41 | -f {{ .annotations.check_file_size_file | default /bin/sh }} 42 | -w {{ .annotations.check_file_size_warn | default 2000000 }} 43 | -c {{ .annotations.check_file_size_crit | default 3000000 }} 44 | interval: 10 45 | publish: false 46 | runtime_assets: 47 | - sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 48 | - sensu/sensu-ruby-runtime:0.0.10 49 | subscriptions: 50 | - filesystem 51 | handlers: 52 | - alert 53 | --- 54 | type: Asset 55 | api_version: core/v2 56 | metadata: 57 | annotations: 58 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-filesystem-checks 59 | io.sensu.bonsai.name: sensu-plugins-filesystem-checks 60 | io.sensu.bonsai.namespace: sensu-plugins 61 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 62 | io.sensu.bonsai.tier: Community 63 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-filesystem-checks 64 | io.sensu.bonsai.version: 2.0.0 65 | name: sensu-plugins/sensu-plugins-filesystem-checks:2.0.0 66 | spec: 67 | builds: 68 | - filters: 69 | - entity.system.os == 'linux' 70 | - entity.system.arch == 'amd64' 71 | - entity.system.platform == 'alpine' 72 | headers: null 73 | sha512: 46b5e11cf01ef2f3af2369b0d77bbe25aab27cdcc7c08225f560024281ea324294b6830f5c03a31792321da08af145823366f398ddba57f21a8f44ef2a8a293b 74 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_alpine_linux_amd64.tar.gz 75 | - filters: 76 | - entity.system.os == 'linux' 77 | - entity.system.arch == 'amd64' 78 | - entity.system.platform_family == 'rhel' 79 | headers: null 80 | sha512: ecac91a77c2e27bb650dcb61a64d62fa92e98ffa1e754008b6b9bd94bf8e6c8862bdaf40ccf65447dd8be5e037acacb3fc2d20e39519167da05b55b0b9c3e880 81 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_centos_linux_amd64.tar.gz 82 | - filters: 83 | - entity.system.os == 'linux' 84 | - entity.system.arch == 'amd64' 85 | - entity.system.platform_family == 'debian' 86 | headers: null 87 | sha512: 175483f118f4c029a0028a09ea935dc52a1a93e3194e2d615f517a07142d835084c24254cb132edc73e1257fbdb051f4953b7d6724c7a1c701cfc4827fa47fed 88 | url: https://assets.bonsai.sensu.io/ccce3fd9dd55770aeadd5034b674b763945454ac/sensu-plugins-filesystem-checks_2.0.0_debian_linux_amd64.tar.gz 89 | filters: null 90 | headers: null 91 | --- 92 | type: Asset 93 | api_version: core/v2 94 | metadata: 95 | annotations: 96 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 97 | io.sensu.bonsai.name: sensu-ruby-runtime 98 | io.sensu.bonsai.namespace: sensu 99 | io.sensu.bonsai.tags: "" 100 | io.sensu.bonsai.tier: Community 101 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 102 | io.sensu.bonsai.version: 0.0.10 103 | name: sensu/sensu-ruby-runtime:0.0.10 104 | spec: 105 | builds: 106 | - filters: 107 | - entity.system.os == 'linux' 108 | - entity.system.arch == 'amd64' 109 | - entity.system.platform_family == 'rhel' 110 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 111 | headers: null 112 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 113 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 114 | - filters: 115 | - entity.system.os == 'linux' 116 | - entity.system.arch == 'amd64' 117 | - entity.system.platform_family == 'debian' 118 | headers: null 119 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 120 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 121 | - filters: 122 | - entity.system.os == 'linux' 123 | - entity.system.arch == 'amd64' 124 | - entity.system.platform_family == 'rhel' 125 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 126 | headers: null 127 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 128 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 129 | - filters: 130 | - entity.system.os == 'linux' 131 | - entity.system.arch == 'amd64' 132 | - entity.system.platform == 'alpine' 133 | - entity.system.platform_version.split('.')[0] == '3' 134 | headers: null 135 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 136 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 137 | filters: null 138 | headers: null 139 | -------------------------------------------------------------------------------- /zfs/check-zpool.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Checks one or more zpools for state, vdev errors, capacity, recent scrub 4 | # 5 | # Instructions 6 | # 1. Add the "zfs" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-zfs#sensupluginszfs 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: check-zpool 20 | spec: 21 | command: check-zpool.rb 22 | runtime_assets: 23 | - sensu-plugins/sensu-plugins-zfs:2.2.0 24 | - sensu/sensu-ruby-runtime:0.0.10 25 | publish: false 26 | subscriptions: 27 | - zfs 28 | interval: 30 29 | timeout: 10 30 | ttl: 0 31 | proxy_entity_name: "" 32 | stdin: false 33 | handlers: 34 | - alert 35 | --- 36 | type: Asset 37 | api_version: core/v2 38 | metadata: 39 | annotations: 40 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-zfs 41 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-zfs 42 | io.sensu.bonsai.tier: Community 43 | io.sensu.bonsai.version: 2.2.0 44 | io.sensu.bonsai.namespace: sensu-plugins 45 | io.sensu.bonsai.name: sensu-plugins-zfs 46 | io.sensu.bonsai.tags: check 47 | name: sensu-plugins-zfs:2.2.0 48 | spec: 49 | builds: 50 | - url: https://assets.bonsai.sensu.io/2aa714721d97e35d386688181c3bf33432501830/sensu-plugins-zfs_2.2.0_debian9_linux_amd64.tar.gz 51 | sha512: 42b8fd0f0def5b9f8b0ff15d0e5694ca39613f85c29079806806747351a16a8c8cce8200e063d1b66463f39f1f5e5ccaa1dbaf33680a481592816e0604e4a080 52 | filters: 53 | - entity.system.os == 'linux' 54 | - entity.system.arch == 'amd64' 55 | - url: https://assets.bonsai.sensu.io/2aa714721d97e35d386688181c3bf33432501830/sensu-plugins-zfs_2.2.0_debian_linux_amd64.tar.gz 56 | sha512: 791b35abd944787d6ab700735cb8d1946125b5465976232f14d4e5b5cab9546b2c95ba1647235a358c869597efa998a2085a45503eaf028478e57e090c2ee88a 57 | filters: 58 | - entity.system.os == 'linux' 59 | - entity.system.arch == 'amd64' 60 | - entity.system.platform_family == 'debian' 61 | - url: https://assets.bonsai.sensu.io/2aa714721d97e35d386688181c3bf33432501830/sensu-plugins-zfs_2.2.0_centos7_linux_amd64.tar.gz 62 | sha512: 7cb61b46d21953b0d1532ea4f66c38110fc30ef093d288f05a85d5a98ae933b563548cad8ddf1da0eaa825eca8e88ddd9cf595ff8d6eba9136f8d4f09a4f94d7 63 | filters: 64 | - entity.system.os == 'linux' 65 | - entity.system.arch == 'amd64' 66 | - entity.system.platform_family == 'rhel' 67 | - entity.system.platform_version.split('.')[0] == '7' 68 | - url: https://assets.bonsai.sensu.io/2aa714721d97e35d386688181c3bf33432501830/sensu-plugins-zfs_2.2.0_centos6_linux_amd64.tar.gz 69 | sha512: 221722e071b2edd70dac0a2dadea3543d24f77e8fa59248331f8ffd280bd5ac13a481b8fa85a0b78feb5f6ff2848bab1a987978c6e1aede4b935c5fff07712bf 70 | filters: 71 | - entity.system.os == 'linux' 72 | - entity.system.arch == 'amd64' 73 | - entity.system.platform_family == 'rhel' 74 | - entity.system.platform_version.split('.')[0] == '6' 75 | - url: https://assets.bonsai.sensu.io/2aa714721d97e35d386688181c3bf33432501830/sensu-plugins-zfs_2.2.0_alpine3.8_linux_amd64.tar.gz 76 | sha512: b33bfa0560e232079f32cfd83d933570144545eac29d7caea9893f2eaf737fe85911e868ba541e7b801ea1e9608729c7fb2373d7efe322c530d0a1c871b01125 77 | filters: 78 | - entity.system.os == 'linux' 79 | - entity.system.arch == 'amd64' 80 | - entity.system.platform == 'alpine' 81 | - url: https://assets.bonsai.sensu.io/2aa714721d97e35d386688181c3bf33432501830/sensu-plugins-zfs_2.2.0_alpine_linux_amd64.tar.gz 82 | sha512: 7719208311b807af9623b3a45fd397eddbd05a173e1f6396a0f5ef08a2781fe1634898053186a4f1b261ca6410cda8b21fe11ae5c9714ebfbc8bc98115e146a2 83 | filters: 84 | - entity.system.os == 'linux' 85 | - entity.system.arch == 'amd64' 86 | - entity.system.platform == 'alpine' 87 | - entity.system.platform_version.split('.')[0] == '3' 88 | --- 89 | type: Asset 90 | api_version: core/v2 91 | metadata: 92 | annotations: 93 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 94 | io.sensu.bonsai.name: sensu-ruby-runtime 95 | io.sensu.bonsai.namespace: sensu 96 | io.sensu.bonsai.tags: "" 97 | io.sensu.bonsai.tier: Community 98 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 99 | io.sensu.bonsai.version: 0.0.10 100 | name: sensu/sensu-ruby-runtime:0.0.10 101 | spec: 102 | builds: 103 | - filters: 104 | - entity.system.os == 'linux' 105 | - entity.system.arch == 'amd64' 106 | - entity.system.platform_family == 'rhel' 107 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 108 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 109 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 110 | - filters: 111 | - entity.system.os == 'linux' 112 | - entity.system.arch == 'amd64' 113 | - entity.system.platform_family == 'debian' 114 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 115 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 116 | - filters: 117 | - entity.system.os == 'linux' 118 | - entity.system.arch == 'amd64' 119 | - entity.system.platform_family == 'rhel' 120 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 121 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 122 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 123 | - filters: 124 | - entity.system.os == 'linux' 125 | - entity.system.arch == 'amd64' 126 | - entity.system.platform == 'alpine' 127 | - entity.system.platform_version.split('.')[0] == '3' 128 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 129 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 130 | -------------------------------------------------------------------------------- /zfs/metrics-zfs-arc.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Provides metrics for ZFS ARC (adaptive Replacement Cache) 4 | # 5 | # Instructions 6 | # 1. Add the "zfs" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-zfs#sensupluginszfs 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: metrics-zfs-arc 20 | spec: 21 | command: metrics-zfs-arc.rb 22 | runtime_assets: 23 | - sensu-plugins/sensu-plugins-zfs:2.2.0 24 | - sensu/sensu-ruby-runtime:0.0.10 25 | publish: false 26 | subscriptions: 27 | - zfs 28 | interval: 30 29 | timeout: 10 30 | ttl: 0 31 | proxy_entity_name: "" 32 | stdin: false 33 | output_metric_format: graphite_plaintext 34 | output_metric_handlers: 35 | - metric-storage 36 | --- 37 | type: Asset 38 | api_version: core/v2 39 | metadata: 40 | annotations: 41 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-zfs 42 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-zfs 43 | io.sensu.bonsai.tier: Community 44 | io.sensu.bonsai.version: 2.2.0 45 | io.sensu.bonsai.namespace: sensu-plugins 46 | io.sensu.bonsai.name: sensu-plugins-zfs 47 | io.sensu.bonsai.tags: check 48 | name: sensu-plugins-zfs:2.2.0 49 | spec: 50 | builds: 51 | - url: https://assets.bonsai.sensu.io/2aa714721d97e35d386688181c3bf33432501830/sensu-plugins-zfs_2.2.0_debian9_linux_amd64.tar.gz 52 | sha512: 42b8fd0f0def5b9f8b0ff15d0e5694ca39613f85c29079806806747351a16a8c8cce8200e063d1b66463f39f1f5e5ccaa1dbaf33680a481592816e0604e4a080 53 | filters: 54 | - entity.system.os == 'linux' 55 | - entity.system.arch == 'amd64' 56 | - url: https://assets.bonsai.sensu.io/2aa714721d97e35d386688181c3bf33432501830/sensu-plugins-zfs_2.2.0_debian_linux_amd64.tar.gz 57 | sha512: 791b35abd944787d6ab700735cb8d1946125b5465976232f14d4e5b5cab9546b2c95ba1647235a358c869597efa998a2085a45503eaf028478e57e090c2ee88a 58 | filters: 59 | - entity.system.os == 'linux' 60 | - entity.system.arch == 'amd64' 61 | - entity.system.platform_family == 'debian' 62 | - url: https://assets.bonsai.sensu.io/2aa714721d97e35d386688181c3bf33432501830/sensu-plugins-zfs_2.2.0_centos7_linux_amd64.tar.gz 63 | sha512: 7cb61b46d21953b0d1532ea4f66c38110fc30ef093d288f05a85d5a98ae933b563548cad8ddf1da0eaa825eca8e88ddd9cf595ff8d6eba9136f8d4f09a4f94d7 64 | filters: 65 | - entity.system.os == 'linux' 66 | - entity.system.arch == 'amd64' 67 | - entity.system.platform_family == 'rhel' 68 | - entity.system.platform_version.split('.')[0] == '7' 69 | - url: https://assets.bonsai.sensu.io/2aa714721d97e35d386688181c3bf33432501830/sensu-plugins-zfs_2.2.0_centos6_linux_amd64.tar.gz 70 | sha512: 221722e071b2edd70dac0a2dadea3543d24f77e8fa59248331f8ffd280bd5ac13a481b8fa85a0b78feb5f6ff2848bab1a987978c6e1aede4b935c5fff07712bf 71 | filters: 72 | - entity.system.os == 'linux' 73 | - entity.system.arch == 'amd64' 74 | - entity.system.platform_family == 'rhel' 75 | - entity.system.platform_version.split('.')[0] == '6' 76 | - url: https://assets.bonsai.sensu.io/2aa714721d97e35d386688181c3bf33432501830/sensu-plugins-zfs_2.2.0_alpine3.8_linux_amd64.tar.gz 77 | sha512: b33bfa0560e232079f32cfd83d933570144545eac29d7caea9893f2eaf737fe85911e868ba541e7b801ea1e9608729c7fb2373d7efe322c530d0a1c871b01125 78 | filters: 79 | - entity.system.os == 'linux' 80 | - entity.system.arch == 'amd64' 81 | - entity.system.platform == 'alpine' 82 | - url: https://assets.bonsai.sensu.io/2aa714721d97e35d386688181c3bf33432501830/sensu-plugins-zfs_2.2.0_alpine_linux_amd64.tar.gz 83 | sha512: 7719208311b807af9623b3a45fd397eddbd05a173e1f6396a0f5ef08a2781fe1634898053186a4f1b261ca6410cda8b21fe11ae5c9714ebfbc8bc98115e146a2 84 | filters: 85 | - entity.system.os == 'linux' 86 | - entity.system.arch == 'amd64' 87 | - entity.system.platform == 'alpine' 88 | - entity.system.platform_version.split('.')[0] == '3' 89 | --- 90 | type: Asset 91 | api_version: core/v2 92 | metadata: 93 | annotations: 94 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 95 | io.sensu.bonsai.name: sensu-ruby-runtime 96 | io.sensu.bonsai.namespace: sensu 97 | io.sensu.bonsai.tags: "" 98 | io.sensu.bonsai.tier: Community 99 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 100 | io.sensu.bonsai.version: 0.0.10 101 | name: sensu/sensu-ruby-runtime:0.0.10 102 | spec: 103 | builds: 104 | - filters: 105 | - entity.system.os == 'linux' 106 | - entity.system.arch == 'amd64' 107 | - entity.system.platform_family == 'rhel' 108 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 109 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 110 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 111 | - filters: 112 | - entity.system.os == 'linux' 113 | - entity.system.arch == 'amd64' 114 | - entity.system.platform_family == 'debian' 115 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 116 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 117 | - filters: 118 | - entity.system.os == 'linux' 119 | - entity.system.arch == 'amd64' 120 | - entity.system.platform_family == 'rhel' 121 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 122 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 123 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 124 | - filters: 125 | - entity.system.os == 'linux' 126 | - entity.system.arch == 'amd64' 127 | - entity.system.platform == 'alpine' 128 | - entity.system.platform_version.split('.')[0] == '3' 129 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 130 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 131 | -------------------------------------------------------------------------------- /http/check-http.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check that an HTTP URL is accessible and returns a 200 response. 4 | # 5 | # Instructions 6 | # 1. Add the "http" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-http#usage-examples 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: check-http 20 | spec: 21 | command: >- 22 | check-http.rb 23 | --url {{ .annotations.check_http_url | default "http://localhost:80/" }} 24 | runtime_assets: 25 | - sensu-plugins/sensu-plugins-http:6.0.0 26 | - sensu/sensu-ruby-runtime:0.0.10 27 | publish: false 28 | subscriptions: 29 | - http 30 | interval: 30 31 | timeout: 10 32 | ttl: 0 33 | proxy_entity_name: "" 34 | stdin: false 35 | handlers: 36 | - alert 37 | --- 38 | type: Asset 39 | api_version: core/v2 40 | metadata: 41 | annotations: 42 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-http 43 | io.sensu.bonsai.name: sensu-plugins-http 44 | io.sensu.bonsai.namespace: sensu-plugins 45 | io.sensu.bonsai.tags: alpine, centos, debian, http, ruby-runtime-2.4.4 46 | io.sensu.bonsai.tier: Community 47 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-http 48 | io.sensu.bonsai.version: 6.0.0 49 | name: sensu-plugins/sensu-plugins-http:6.0.0 50 | spec: 51 | builds: 52 | - filters: 53 | - entity.system.os == 'linux' 54 | - entity.system.arch == 'amd64' 55 | sha512: ed9c3c8f1fbc37f9c856498ee77d93e2cd045993786a3b59ee76e240aa799f98dd1313672adb6ffd81a131103d401351d4434b4ea95fb40cd5cd40c8afa1ac29 56 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian9_linux_amd64.tar.gz 57 | - filters: 58 | - entity.system.os == 'linux' 59 | - entity.system.arch == 'amd64' 60 | - entity.system.platform_family == 'debian' 61 | sha512: bfa025fcda806a36673e252f693635ea9283f7ba9e1ddcfa3c541fdf7ab96e6d90746e44e3377b7d973cdc7cb3c851114ce886fd9d8ec532d7371b7a3f237fa2 62 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian_linux_amd64.tar.gz 63 | - filters: 64 | - entity.system.os == 'linux' 65 | - entity.system.arch == 'amd64' 66 | - entity.system.platform_family == 'rhel' 67 | - entity.system.platform_version.split('.')[0] == '7' 68 | sha512: eb4cb5aee521500c0580111814d909ec8ccda1a13c301578e614e932dc5420fdcd1b7da129a0d801440e433c51eb2fb7aa69df16bfaf6cdbb1ac20ed032d2063 69 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos7_linux_amd64.tar.gz 70 | - filters: 71 | - entity.system.os == 'linux' 72 | - entity.system.arch == 'amd64' 73 | - entity.system.platform_family == 'rhel' 74 | - entity.system.platform_version.split('.')[0] == '6' 75 | sha512: 3f02ba8afd866ec68b50c8336263a10bd43fd29e4fb747e802bf816b11d94569e3005e808c85e9722258f67004812be367a51765095c7573e6ac91645ae02828 76 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos6_linux_amd64.tar.gz 77 | - filters: 78 | - entity.system.os == 'linux' 79 | - entity.system.arch == 'amd64' 80 | - entity.system.platform == 'alpine' 81 | sha512: 5ce520574a8460c9bdbfe5ee0cba7dd32d58bbfe51d09803d54f61f862520dfe654a2afce4d2da9553099dc8b674dae49b722dc6725ac5f3c2e7b64aec354370 82 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine3.8_linux_amd64.tar.gz 83 | - filters: 84 | - entity.system.os == 'linux' 85 | - entity.system.arch == 'amd64' 86 | - entity.system.platform == 'alpine' 87 | - entity.system.platform_version.split('.')[0] == '3' 88 | sha512: 619b32224c5d13f01360df42cb74db1118eab6b46833a93a6da2005638e955b839567ad19147bf9bfa9154bc75f60fc05645e212e75a22430b472a50eb90b655 89 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine_linux_amd64.tar.gz 90 | --- 91 | type: Asset 92 | api_version: core/v2 93 | metadata: 94 | annotations: 95 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 96 | io.sensu.bonsai.name: sensu-ruby-runtime 97 | io.sensu.bonsai.namespace: sensu 98 | io.sensu.bonsai.tags: "" 99 | io.sensu.bonsai.tier: Community 100 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 101 | io.sensu.bonsai.version: 0.0.10 102 | name: sensu/sensu-ruby-runtime:0.0.10 103 | spec: 104 | builds: 105 | - filters: 106 | - entity.system.os == 'linux' 107 | - entity.system.arch == 'amd64' 108 | - entity.system.platform_family == 'rhel' 109 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 110 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 111 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 112 | - filters: 113 | - entity.system.os == 'linux' 114 | - entity.system.arch == 'amd64' 115 | - entity.system.platform_family == 'debian' 116 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 117 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 118 | - filters: 119 | - entity.system.os == 'linux' 120 | - entity.system.arch == 'amd64' 121 | - entity.system.platform_family == 'rhel' 122 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 123 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 124 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 125 | - filters: 126 | - entity.system.os == 'linux' 127 | - entity.system.arch == 'amd64' 128 | - entity.system.platform == 'alpine' 129 | - entity.system.platform_version.split('.')[0] == '3' 130 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 131 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 132 | -------------------------------------------------------------------------------- /http/check-http-cors.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check that an http server returns the CORS header 4 | # 5 | # Instructions 6 | # 1. Add the "http" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-http#usage-examples 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: check-http-cors 20 | spec: 21 | command: >- 22 | check-http-cors.rb 23 | --url {{ .annotations.check_http_cors_url | default "http://localhost:80/" }} 24 | runtime_assets: 25 | - sensu-plugins/sensu-plugins-http:6.0.0 26 | - sensu/sensu-ruby-runtime:0.0.10 27 | publish: false 28 | subscriptions: 29 | - http 30 | interval: 30 31 | timeout: 10 32 | ttl: 0 33 | proxy_entity_name: "" 34 | stdin: false 35 | handlers: 36 | - alert 37 | --- 38 | type: Asset 39 | api_version: core/v2 40 | metadata: 41 | annotations: 42 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-http 43 | io.sensu.bonsai.name: sensu-plugins-http 44 | io.sensu.bonsai.namespace: sensu-plugins 45 | io.sensu.bonsai.tags: alpine, centos, debian, http, ruby-runtime-2.4.4 46 | io.sensu.bonsai.tier: Community 47 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-http 48 | io.sensu.bonsai.version: 6.0.0 49 | name: sensu-plugins/sensu-plugins-http:6.0.0 50 | spec: 51 | builds: 52 | - filters: 53 | - entity.system.os == 'linux' 54 | - entity.system.arch == 'amd64' 55 | sha512: ed9c3c8f1fbc37f9c856498ee77d93e2cd045993786a3b59ee76e240aa799f98dd1313672adb6ffd81a131103d401351d4434b4ea95fb40cd5cd40c8afa1ac29 56 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian9_linux_amd64.tar.gz 57 | - filters: 58 | - entity.system.os == 'linux' 59 | - entity.system.arch == 'amd64' 60 | - entity.system.platform_family == 'debian' 61 | sha512: bfa025fcda806a36673e252f693635ea9283f7ba9e1ddcfa3c541fdf7ab96e6d90746e44e3377b7d973cdc7cb3c851114ce886fd9d8ec532d7371b7a3f237fa2 62 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian_linux_amd64.tar.gz 63 | - filters: 64 | - entity.system.os == 'linux' 65 | - entity.system.arch == 'amd64' 66 | - entity.system.platform_family == 'rhel' 67 | - entity.system.platform_version.split('.')[0] == '7' 68 | sha512: eb4cb5aee521500c0580111814d909ec8ccda1a13c301578e614e932dc5420fdcd1b7da129a0d801440e433c51eb2fb7aa69df16bfaf6cdbb1ac20ed032d2063 69 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos7_linux_amd64.tar.gz 70 | - filters: 71 | - entity.system.os == 'linux' 72 | - entity.system.arch == 'amd64' 73 | - entity.system.platform_family == 'rhel' 74 | - entity.system.platform_version.split('.')[0] == '6' 75 | sha512: 3f02ba8afd866ec68b50c8336263a10bd43fd29e4fb747e802bf816b11d94569e3005e808c85e9722258f67004812be367a51765095c7573e6ac91645ae02828 76 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos6_linux_amd64.tar.gz 77 | - filters: 78 | - entity.system.os == 'linux' 79 | - entity.system.arch == 'amd64' 80 | - entity.system.platform == 'alpine' 81 | sha512: 5ce520574a8460c9bdbfe5ee0cba7dd32d58bbfe51d09803d54f61f862520dfe654a2afce4d2da9553099dc8b674dae49b722dc6725ac5f3c2e7b64aec354370 82 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine3.8_linux_amd64.tar.gz 83 | - filters: 84 | - entity.system.os == 'linux' 85 | - entity.system.arch == 'amd64' 86 | - entity.system.platform == 'alpine' 87 | - entity.system.platform_version.split('.')[0] == '3' 88 | sha512: 619b32224c5d13f01360df42cb74db1118eab6b46833a93a6da2005638e955b839567ad19147bf9bfa9154bc75f60fc05645e212e75a22430b472a50eb90b655 89 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine_linux_amd64.tar.gz 90 | --- 91 | type: Asset 92 | api_version: core/v2 93 | metadata: 94 | annotations: 95 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 96 | io.sensu.bonsai.name: sensu-ruby-runtime 97 | io.sensu.bonsai.namespace: sensu 98 | io.sensu.bonsai.tags: "" 99 | io.sensu.bonsai.tier: Community 100 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 101 | io.sensu.bonsai.version: 0.0.10 102 | name: sensu/sensu-ruby-runtime:0.0.10 103 | spec: 104 | builds: 105 | - filters: 106 | - entity.system.os == 'linux' 107 | - entity.system.arch == 'amd64' 108 | - entity.system.platform_family == 'rhel' 109 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 110 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 111 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 112 | - filters: 113 | - entity.system.os == 'linux' 114 | - entity.system.arch == 'amd64' 115 | - entity.system.platform_family == 'debian' 116 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 117 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 118 | - filters: 119 | - entity.system.os == 'linux' 120 | - entity.system.arch == 'amd64' 121 | - entity.system.platform_family == 'rhel' 122 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 123 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 124 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 125 | - filters: 126 | - entity.system.os == 'linux' 127 | - entity.system.arch == 'amd64' 128 | - entity.system.platform == 'alpine' 129 | - entity.system.platform_version.split('.')[0] == '3' 130 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 131 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 132 | -------------------------------------------------------------------------------- /http/check-head-redirect.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check that redirection links can be followed in a set number of requests 4 | # 5 | # Instructions 6 | # 1. Add the "http" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-http#usage-examples 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: check-head-redirect 20 | spec: 21 | command: >- 22 | check-head-redirect.rb 23 | --url {{ .annotations.check_head_redirect_url | default "http://localhost:80/" }} 24 | runtime_assets: 25 | - sensu-plugins/sensu-plugins-http:6.0.0 26 | - sensu/sensu-ruby-runtime:0.0.10 27 | publish: false 28 | subscriptions: 29 | - http 30 | interval: 30 31 | timeout: 10 32 | ttl: 0 33 | proxy_entity_name: "" 34 | stdin: false 35 | handlers: 36 | - alert 37 | --- 38 | type: Asset 39 | api_version: core/v2 40 | metadata: 41 | annotations: 42 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-http 43 | io.sensu.bonsai.name: sensu-plugins-http 44 | io.sensu.bonsai.namespace: sensu-plugins 45 | io.sensu.bonsai.tags: alpine, centos, debian, http, ruby-runtime-2.4.4 46 | io.sensu.bonsai.tier: Community 47 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-http 48 | io.sensu.bonsai.version: 6.0.0 49 | name: sensu-plugins/sensu-plugins-http:6.0.0 50 | spec: 51 | builds: 52 | - filters: 53 | - entity.system.os == 'linux' 54 | - entity.system.arch == 'amd64' 55 | sha512: ed9c3c8f1fbc37f9c856498ee77d93e2cd045993786a3b59ee76e240aa799f98dd1313672adb6ffd81a131103d401351d4434b4ea95fb40cd5cd40c8afa1ac29 56 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian9_linux_amd64.tar.gz 57 | - filters: 58 | - entity.system.os == 'linux' 59 | - entity.system.arch == 'amd64' 60 | - entity.system.platform_family == 'debian' 61 | sha512: bfa025fcda806a36673e252f693635ea9283f7ba9e1ddcfa3c541fdf7ab96e6d90746e44e3377b7d973cdc7cb3c851114ce886fd9d8ec532d7371b7a3f237fa2 62 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian_linux_amd64.tar.gz 63 | - filters: 64 | - entity.system.os == 'linux' 65 | - entity.system.arch == 'amd64' 66 | - entity.system.platform_family == 'rhel' 67 | - entity.system.platform_version.split('.')[0] == '7' 68 | sha512: eb4cb5aee521500c0580111814d909ec8ccda1a13c301578e614e932dc5420fdcd1b7da129a0d801440e433c51eb2fb7aa69df16bfaf6cdbb1ac20ed032d2063 69 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos7_linux_amd64.tar.gz 70 | - filters: 71 | - entity.system.os == 'linux' 72 | - entity.system.arch == 'amd64' 73 | - entity.system.platform_family == 'rhel' 74 | - entity.system.platform_version.split('.')[0] == '6' 75 | sha512: 3f02ba8afd866ec68b50c8336263a10bd43fd29e4fb747e802bf816b11d94569e3005e808c85e9722258f67004812be367a51765095c7573e6ac91645ae02828 76 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos6_linux_amd64.tar.gz 77 | - filters: 78 | - entity.system.os == 'linux' 79 | - entity.system.arch == 'amd64' 80 | - entity.system.platform == 'alpine' 81 | sha512: 5ce520574a8460c9bdbfe5ee0cba7dd32d58bbfe51d09803d54f61f862520dfe654a2afce4d2da9553099dc8b674dae49b722dc6725ac5f3c2e7b64aec354370 82 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine3.8_linux_amd64.tar.gz 83 | - filters: 84 | - entity.system.os == 'linux' 85 | - entity.system.arch == 'amd64' 86 | - entity.system.platform == 'alpine' 87 | - entity.system.platform_version.split('.')[0] == '3' 88 | sha512: 619b32224c5d13f01360df42cb74db1118eab6b46833a93a6da2005638e955b839567ad19147bf9bfa9154bc75f60fc05645e212e75a22430b472a50eb90b655 89 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine_linux_amd64.tar.gz 90 | --- 91 | type: Asset 92 | api_version: core/v2 93 | metadata: 94 | annotations: 95 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 96 | io.sensu.bonsai.name: sensu-ruby-runtime 97 | io.sensu.bonsai.namespace: sensu 98 | io.sensu.bonsai.tags: "" 99 | io.sensu.bonsai.tier: Community 100 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 101 | io.sensu.bonsai.version: 0.0.10 102 | name: sensu/sensu-ruby-runtime:0.0.10 103 | spec: 104 | builds: 105 | - filters: 106 | - entity.system.os == 'linux' 107 | - entity.system.arch == 'amd64' 108 | - entity.system.platform_family == 'rhel' 109 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 110 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 111 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 112 | - filters: 113 | - entity.system.os == 'linux' 114 | - entity.system.arch == 'amd64' 115 | - entity.system.platform_family == 'debian' 116 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 117 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 118 | - filters: 119 | - entity.system.os == 'linux' 120 | - entity.system.arch == 'amd64' 121 | - entity.system.platform_family == 'rhel' 122 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 123 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 124 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 125 | - filters: 126 | - entity.system.os == 'linux' 127 | - entity.system.arch == 'amd64' 128 | - entity.system.platform == 'alpine' 129 | - entity.system.platform_version.split('.')[0] == '3' 130 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 131 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 132 | -------------------------------------------------------------------------------- /http/metrics-curl.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Provide metrics from the output of the curl command to a URL 4 | # 5 | # Instructions 6 | # 1. Add the "http" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-http#usage-examples 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: metrics-curl 20 | spec: 21 | command: >- 22 | metrics-curl.rb 23 | --url {{ .annotations.metrics_curl_url | default "http://localhost:80/" }} 24 | runtime_assets: 25 | - sensu-plugins/sensu-plugins-http:6.0.0 26 | - sensu/sensu-ruby-runtime:0.0.10 27 | publish: false 28 | subscriptions: 29 | - http 30 | interval: 30 31 | timeout: 10 32 | ttl: 0 33 | proxy_entity_name: "" 34 | stdin: false 35 | output_metric_format: graphite_plaintext 36 | output_metric_handlers: 37 | - metric-storage 38 | --- 39 | type: Asset 40 | api_version: core/v2 41 | metadata: 42 | annotations: 43 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-http 44 | io.sensu.bonsai.name: sensu-plugins-http 45 | io.sensu.bonsai.namespace: sensu-plugins 46 | io.sensu.bonsai.tags: alpine, centos, debian, http, ruby-runtime-2.4.4 47 | io.sensu.bonsai.tier: Community 48 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-http 49 | io.sensu.bonsai.version: 6.0.0 50 | name: sensu-plugins/sensu-plugins-http:6.0.0 51 | spec: 52 | builds: 53 | - filters: 54 | - entity.system.os == 'linux' 55 | - entity.system.arch == 'amd64' 56 | sha512: ed9c3c8f1fbc37f9c856498ee77d93e2cd045993786a3b59ee76e240aa799f98dd1313672adb6ffd81a131103d401351d4434b4ea95fb40cd5cd40c8afa1ac29 57 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian9_linux_amd64.tar.gz 58 | - filters: 59 | - entity.system.os == 'linux' 60 | - entity.system.arch == 'amd64' 61 | - entity.system.platform_family == 'debian' 62 | sha512: bfa025fcda806a36673e252f693635ea9283f7ba9e1ddcfa3c541fdf7ab96e6d90746e44e3377b7d973cdc7cb3c851114ce886fd9d8ec532d7371b7a3f237fa2 63 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian_linux_amd64.tar.gz 64 | - filters: 65 | - entity.system.os == 'linux' 66 | - entity.system.arch == 'amd64' 67 | - entity.system.platform_family == 'rhel' 68 | - entity.system.platform_version.split('.')[0] == '7' 69 | sha512: eb4cb5aee521500c0580111814d909ec8ccda1a13c301578e614e932dc5420fdcd1b7da129a0d801440e433c51eb2fb7aa69df16bfaf6cdbb1ac20ed032d2063 70 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos7_linux_amd64.tar.gz 71 | - filters: 72 | - entity.system.os == 'linux' 73 | - entity.system.arch == 'amd64' 74 | - entity.system.platform_family == 'rhel' 75 | - entity.system.platform_version.split('.')[0] == '6' 76 | sha512: 3f02ba8afd866ec68b50c8336263a10bd43fd29e4fb747e802bf816b11d94569e3005e808c85e9722258f67004812be367a51765095c7573e6ac91645ae02828 77 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos6_linux_amd64.tar.gz 78 | - filters: 79 | - entity.system.os == 'linux' 80 | - entity.system.arch == 'amd64' 81 | - entity.system.platform == 'alpine' 82 | sha512: 5ce520574a8460c9bdbfe5ee0cba7dd32d58bbfe51d09803d54f61f862520dfe654a2afce4d2da9553099dc8b674dae49b722dc6725ac5f3c2e7b64aec354370 83 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine3.8_linux_amd64.tar.gz 84 | - filters: 85 | - entity.system.os == 'linux' 86 | - entity.system.arch == 'amd64' 87 | - entity.system.platform == 'alpine' 88 | - entity.system.platform_version.split('.')[0] == '3' 89 | sha512: 619b32224c5d13f01360df42cb74db1118eab6b46833a93a6da2005638e955b839567ad19147bf9bfa9154bc75f60fc05645e212e75a22430b472a50eb90b655 90 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine_linux_amd64.tar.gz 91 | --- 92 | type: Asset 93 | api_version: core/v2 94 | metadata: 95 | annotations: 96 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 97 | io.sensu.bonsai.name: sensu-ruby-runtime 98 | io.sensu.bonsai.namespace: sensu 99 | io.sensu.bonsai.tags: "" 100 | io.sensu.bonsai.tier: Community 101 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 102 | io.sensu.bonsai.version: 0.0.10 103 | name: sensu/sensu-ruby-runtime:0.0.10 104 | spec: 105 | builds: 106 | - filters: 107 | - entity.system.os == 'linux' 108 | - entity.system.arch == 'amd64' 109 | - entity.system.platform_family == 'rhel' 110 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 111 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 112 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 113 | - filters: 114 | - entity.system.os == 'linux' 115 | - entity.system.arch == 'amd64' 116 | - entity.system.platform_family == 'debian' 117 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 118 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 119 | - filters: 120 | - entity.system.os == 'linux' 121 | - entity.system.arch == 'amd64' 122 | - entity.system.platform_family == 'rhel' 123 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 124 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 125 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 126 | - filters: 127 | - entity.system.os == 'linux' 128 | - entity.system.arch == 'amd64' 129 | - entity.system.platform == 'alpine' 130 | - entity.system.platform_version.split('.')[0] == '3' 131 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 132 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 133 | -------------------------------------------------------------------------------- /http/metrics-libcurl.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Provide metrics from the use of libcurl to query a URL 4 | # 5 | # Instructions 6 | # 1. Add the "http" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-http#usage-examples 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: metrics-libcurl 20 | spec: 21 | command: >- 22 | metrics-libcurl.rb 23 | --url {{ .annotations.metrics_libcurl_url | default "http://localhost:80/" }} 24 | runtime_assets: 25 | - sensu-plugins/sensu-plugins-http:6.0.0 26 | - sensu/sensu-ruby-runtime:0.0.10 27 | publish: false 28 | subscriptions: 29 | - http 30 | interval: 30 31 | timeout: 10 32 | ttl: 0 33 | proxy_entity_name: "" 34 | stdin: false 35 | output_metric_format: graphite_plaintext 36 | output_metric_handlers: 37 | - metric-storage 38 | --- 39 | type: Asset 40 | api_version: core/v2 41 | metadata: 42 | annotations: 43 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-http 44 | io.sensu.bonsai.name: sensu-plugins-http 45 | io.sensu.bonsai.namespace: sensu-plugins 46 | io.sensu.bonsai.tags: alpine, centos, debian, http, ruby-runtime-2.4.4 47 | io.sensu.bonsai.tier: Community 48 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-http 49 | io.sensu.bonsai.version: 6.0.0 50 | name: sensu-plugins/sensu-plugins-http:6.0.0 51 | spec: 52 | builds: 53 | - filters: 54 | - entity.system.os == 'linux' 55 | - entity.system.arch == 'amd64' 56 | sha512: ed9c3c8f1fbc37f9c856498ee77d93e2cd045993786a3b59ee76e240aa799f98dd1313672adb6ffd81a131103d401351d4434b4ea95fb40cd5cd40c8afa1ac29 57 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian9_linux_amd64.tar.gz 58 | - filters: 59 | - entity.system.os == 'linux' 60 | - entity.system.arch == 'amd64' 61 | - entity.system.platform_family == 'debian' 62 | sha512: bfa025fcda806a36673e252f693635ea9283f7ba9e1ddcfa3c541fdf7ab96e6d90746e44e3377b7d973cdc7cb3c851114ce886fd9d8ec532d7371b7a3f237fa2 63 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian_linux_amd64.tar.gz 64 | - filters: 65 | - entity.system.os == 'linux' 66 | - entity.system.arch == 'amd64' 67 | - entity.system.platform_family == 'rhel' 68 | - entity.system.platform_version.split('.')[0] == '7' 69 | sha512: eb4cb5aee521500c0580111814d909ec8ccda1a13c301578e614e932dc5420fdcd1b7da129a0d801440e433c51eb2fb7aa69df16bfaf6cdbb1ac20ed032d2063 70 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos7_linux_amd64.tar.gz 71 | - filters: 72 | - entity.system.os == 'linux' 73 | - entity.system.arch == 'amd64' 74 | - entity.system.platform_family == 'rhel' 75 | - entity.system.platform_version.split('.')[0] == '6' 76 | sha512: 3f02ba8afd866ec68b50c8336263a10bd43fd29e4fb747e802bf816b11d94569e3005e808c85e9722258f67004812be367a51765095c7573e6ac91645ae02828 77 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos6_linux_amd64.tar.gz 78 | - filters: 79 | - entity.system.os == 'linux' 80 | - entity.system.arch == 'amd64' 81 | - entity.system.platform == 'alpine' 82 | sha512: 5ce520574a8460c9bdbfe5ee0cba7dd32d58bbfe51d09803d54f61f862520dfe654a2afce4d2da9553099dc8b674dae49b722dc6725ac5f3c2e7b64aec354370 83 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine3.8_linux_amd64.tar.gz 84 | - filters: 85 | - entity.system.os == 'linux' 86 | - entity.system.arch == 'amd64' 87 | - entity.system.platform == 'alpine' 88 | - entity.system.platform_version.split('.')[0] == '3' 89 | sha512: 619b32224c5d13f01360df42cb74db1118eab6b46833a93a6da2005638e955b839567ad19147bf9bfa9154bc75f60fc05645e212e75a22430b472a50eb90b655 90 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine_linux_amd64.tar.gz 91 | --- 92 | type: Asset 93 | api_version: core/v2 94 | metadata: 95 | annotations: 96 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 97 | io.sensu.bonsai.name: sensu-ruby-runtime 98 | io.sensu.bonsai.namespace: sensu 99 | io.sensu.bonsai.tags: "" 100 | io.sensu.bonsai.tier: Community 101 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 102 | io.sensu.bonsai.version: 0.0.10 103 | name: sensu/sensu-ruby-runtime:0.0.10 104 | spec: 105 | builds: 106 | - filters: 107 | - entity.system.os == 'linux' 108 | - entity.system.arch == 'amd64' 109 | - entity.system.platform_family == 'rhel' 110 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 111 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 112 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 113 | - filters: 114 | - entity.system.os == 'linux' 115 | - entity.system.arch == 'amd64' 116 | - entity.system.platform_family == 'debian' 117 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 118 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 119 | - filters: 120 | - entity.system.os == 'linux' 121 | - entity.system.arch == 'amd64' 122 | - entity.system.platform_family == 'rhel' 123 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 124 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 125 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 126 | - filters: 127 | - entity.system.os == 'linux' 128 | - entity.system.arch == 'amd64' 129 | - entity.system.platform == 'alpine' 130 | - entity.system.platform_version.split('.')[0] == '3' 131 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 132 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 133 | -------------------------------------------------------------------------------- /http/metrics-http-json-deep.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Provide metrics in JSON format 4 | # 5 | # Instructions 6 | # 1. Add the "http" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-http#usage-examples 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: metrics-http-json-deep 20 | spec: 21 | command: >- 22 | metrics-http-json-deep.rb 23 | --url {{ .annotations.metrics_http_json_deep_url | default "http://localhost:80/" }} 24 | runtime_assets: 25 | - sensu-plugins/sensu-plugins-http:6.0.0 26 | - sensu/sensu-ruby-runtime:0.0.10 27 | publish: false 28 | subscriptions: 29 | - http 30 | interval: 30 31 | timeout: 10 32 | ttl: 0 33 | proxy_entity_name: "" 34 | stdin: false 35 | output_metric_format: graphite_plaintext 36 | output_metric_handlers: 37 | - metric-storage 38 | --- 39 | type: Asset 40 | api_version: core/v2 41 | metadata: 42 | annotations: 43 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-http 44 | io.sensu.bonsai.name: sensu-plugins-http 45 | io.sensu.bonsai.namespace: sensu-plugins 46 | io.sensu.bonsai.tags: alpine, centos, debian, http, ruby-runtime-2.4.4 47 | io.sensu.bonsai.tier: Community 48 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-http 49 | io.sensu.bonsai.version: 6.0.0 50 | name: sensu-plugins/sensu-plugins-http:6.0.0 51 | spec: 52 | builds: 53 | - filters: 54 | - entity.system.os == 'linux' 55 | - entity.system.arch == 'amd64' 56 | sha512: ed9c3c8f1fbc37f9c856498ee77d93e2cd045993786a3b59ee76e240aa799f98dd1313672adb6ffd81a131103d401351d4434b4ea95fb40cd5cd40c8afa1ac29 57 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian9_linux_amd64.tar.gz 58 | - filters: 59 | - entity.system.os == 'linux' 60 | - entity.system.arch == 'amd64' 61 | - entity.system.platform_family == 'debian' 62 | sha512: bfa025fcda806a36673e252f693635ea9283f7ba9e1ddcfa3c541fdf7ab96e6d90746e44e3377b7d973cdc7cb3c851114ce886fd9d8ec532d7371b7a3f237fa2 63 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian_linux_amd64.tar.gz 64 | - filters: 65 | - entity.system.os == 'linux' 66 | - entity.system.arch == 'amd64' 67 | - entity.system.platform_family == 'rhel' 68 | - entity.system.platform_version.split('.')[0] == '7' 69 | sha512: eb4cb5aee521500c0580111814d909ec8ccda1a13c301578e614e932dc5420fdcd1b7da129a0d801440e433c51eb2fb7aa69df16bfaf6cdbb1ac20ed032d2063 70 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos7_linux_amd64.tar.gz 71 | - filters: 72 | - entity.system.os == 'linux' 73 | - entity.system.arch == 'amd64' 74 | - entity.system.platform_family == 'rhel' 75 | - entity.system.platform_version.split('.')[0] == '6' 76 | sha512: 3f02ba8afd866ec68b50c8336263a10bd43fd29e4fb747e802bf816b11d94569e3005e808c85e9722258f67004812be367a51765095c7573e6ac91645ae02828 77 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos6_linux_amd64.tar.gz 78 | - filters: 79 | - entity.system.os == 'linux' 80 | - entity.system.arch == 'amd64' 81 | - entity.system.platform == 'alpine' 82 | sha512: 5ce520574a8460c9bdbfe5ee0cba7dd32d58bbfe51d09803d54f61f862520dfe654a2afce4d2da9553099dc8b674dae49b722dc6725ac5f3c2e7b64aec354370 83 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine3.8_linux_amd64.tar.gz 84 | - filters: 85 | - entity.system.os == 'linux' 86 | - entity.system.arch == 'amd64' 87 | - entity.system.platform == 'alpine' 88 | - entity.system.platform_version.split('.')[0] == '3' 89 | sha512: 619b32224c5d13f01360df42cb74db1118eab6b46833a93a6da2005638e955b839567ad19147bf9bfa9154bc75f60fc05645e212e75a22430b472a50eb90b655 90 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine_linux_amd64.tar.gz 91 | --- 92 | type: Asset 93 | api_version: core/v2 94 | metadata: 95 | annotations: 96 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 97 | io.sensu.bonsai.name: sensu-ruby-runtime 98 | io.sensu.bonsai.namespace: sensu 99 | io.sensu.bonsai.tags: "" 100 | io.sensu.bonsai.tier: Community 101 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 102 | io.sensu.bonsai.version: 0.0.10 103 | name: sensu/sensu-ruby-runtime:0.0.10 104 | spec: 105 | builds: 106 | - filters: 107 | - entity.system.os == 'linux' 108 | - entity.system.arch == 'amd64' 109 | - entity.system.platform_family == 'rhel' 110 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 111 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 112 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 113 | - filters: 114 | - entity.system.os == 'linux' 115 | - entity.system.arch == 'amd64' 116 | - entity.system.platform_family == 'debian' 117 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 118 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 119 | - filters: 120 | - entity.system.os == 'linux' 121 | - entity.system.arch == 'amd64' 122 | - entity.system.platform_family == 'rhel' 123 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 124 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 125 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 126 | - filters: 127 | - entity.system.os == 'linux' 128 | - entity.system.arch == 'amd64' 129 | - entity.system.platform == 'alpine' 130 | - entity.system.platform_version.split('.')[0] == '3' 131 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 132 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 133 | -------------------------------------------------------------------------------- /ssl/check-ssl-crl.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check when a certificate revocation list will expire 4 | # 5 | # Instructions 6 | # 1. Add the "ssl" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-ssl#sensu-plugins-ssl 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: check-ssl-crl 20 | spec: 21 | command: >- 22 | check-ssl-crl.rb 23 | --url {{ .annotations.check_ssl_crl_url | default "https://localhost" }} 24 | --warning {{ .annotations.check_ssl_crl_warning | default 600 }} 25 | --critical {{ .annotations.check_ssl_crl_critical | default 300 }} 26 | runtime_assets: 27 | - sensu-plugins/sensu-plugins-ssl:3.0.2 28 | - sensu/sensu-ruby-runtime:0.0.10 29 | publish: false 30 | subscriptions: 31 | - ssl 32 | interval: 30 33 | timeout: 10 34 | ttl: 0 35 | proxy_entity_name: "" 36 | stdin: false 37 | handlers: 38 | - alert 39 | --- 40 | type: Asset 41 | api_version: core/v2 42 | metadata: 43 | name: sensu-plugins/sensu-plugins-ssl:3.0.2 44 | labels: 45 | annotations: 46 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-ssl 47 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-ssl 48 | io.sensu.bonsai.tier: Community 49 | io.sensu.bonsai.version: 3.0.2 50 | io.sensu.bonsai.namespace: sensu-plugins 51 | io.sensu.bonsai.name: sensu-plugins-ssl 52 | io.sensu.bonsai.tags: '' 53 | spec: 54 | builds: 55 | - url: https://assets.bonsai.sensu.io/2e3663222d4558e3aae7df6e56b229cd89b3e4ae/sensu-plugins-ssl_3.0.2_debian9_linux_amd64.tar.gz 56 | sha512: c7b8be030a7bcad34478260fb023326642d85293d261da5216c55443985f53f98853f2eced5f3574197342d948965ffbb6e8eb2c58236c036afa74503b5fb44e 57 | filters: 58 | - entity.system.os == 'linux' 59 | - entity.system.arch == 'amd64' 60 | - url: https://assets.bonsai.sensu.io/2e3663222d4558e3aae7df6e56b229cd89b3e4ae/sensu-plugins-ssl_3.0.2_debian_linux_amd64.tar.gz 61 | sha512: fe5cfc1261a863982cae42154270feaffd2326222b93daf05276907560f83c5e0eb63c6f175359364d981fcaeff60c441da3787930e710b825d3951b92f7a5d5 62 | filters: 63 | - entity.system.os == 'linux' 64 | - entity.system.arch == 'amd64' 65 | - entity.system.platform_family == 'debian' 66 | - url: https://assets.bonsai.sensu.io/2e3663222d4558e3aae7df6e56b229cd89b3e4ae/sensu-plugins-ssl_3.0.2_centos7_linux_amd64.tar.gz 67 | sha512: 27667460a0e21170264bd9482bd524bc7f97705452eaac207fcf374f814935cf98442ef6fcd52e354ca8917ca36f538ebe839875fdee16c58ecf9a1dc5f93795 68 | filters: 69 | - entity.system.os == 'linux' 70 | - entity.system.arch == 'amd64' 71 | - entity.system.platform_family == 'rhel' 72 | - entity.system.platform_version.split('.')[0] == '7' 73 | - url: https://assets.bonsai.sensu.io/2e3663222d4558e3aae7df6e56b229cd89b3e4ae/sensu-plugins-ssl_3.0.2_centos6_linux_amd64.tar.gz 74 | sha512: bd24bfd2302618f7265680cf555e22df347f803acf6440d205897449f87aa9b281d0f766b7b525625a262e9f478716ed017da0bbbb07d7013f47d12bfe31235e 75 | filters: 76 | - entity.system.os == 'linux' 77 | - entity.system.arch == 'amd64' 78 | - entity.system.platform_family == 'rhel' 79 | - entity.system.platform_version.split('.')[0] == '6' 80 | - url: https://assets.bonsai.sensu.io/2e3663222d4558e3aae7df6e56b229cd89b3e4ae/sensu-plugins-ssl_3.0.2_alpine3.8_linux_amd64.tar.gz 81 | sha512: 15cdf1eea8d60e0592b23af413aad0ad9e6f687ef43c364f305b01754d8152783944bc18a99a3302c25558618779bab57beca8a852c71e120e6e7d07c1f0396c 82 | filters: 83 | - entity.system.os == 'linux' 84 | - entity.system.arch == 'amd64' 85 | - entity.system.platform == 'alpine' 86 | - url: https://assets.bonsai.sensu.io/2e3663222d4558e3aae7df6e56b229cd89b3e4ae/sensu-plugins-ssl_3.0.2_alpine_linux_amd64.tar.gz 87 | sha512: cbddc8f3135d04d4687d031880b29aba20d1c93a1c70f71ed05070e9d15a298c6724273ca97e9edda7a908830181901786920b4a563dd40fa4df1c1606cd038d 88 | filters: 89 | - entity.system.os == 'linux' 90 | - entity.system.arch == 'amd64' 91 | - entity.system.platform == 'alpine' 92 | - entity.system.platform_version.split('.')[0] == '3' 93 | --- 94 | type: Asset 95 | api_version: core/v2 96 | metadata: 97 | name: sensu/sensu-ruby-runtime:0.0.10 98 | labels: 99 | annotations: 100 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 101 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 102 | io.sensu.bonsai.tier: Community 103 | io.sensu.bonsai.version: 0.0.10 104 | io.sensu.bonsai.namespace: sensu 105 | io.sensu.bonsai.name: sensu-ruby-runtime 106 | io.sensu.bonsai.tags: '' 107 | spec: 108 | builds: 109 | - url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 110 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 111 | filters: 112 | - entity.system.os == 'linux' 113 | - entity.system.arch == 'amd64' 114 | - entity.system.platform_family == 'rhel' 115 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 116 | - url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 117 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 118 | filters: 119 | - entity.system.os == 'linux' 120 | - entity.system.arch == 'amd64' 121 | - entity.system.platform_family == 'debian' 122 | - url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 123 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 124 | filters: 125 | - entity.system.os == 'linux' 126 | - entity.system.arch == 'amd64' 127 | - entity.system.platform_family == 'rhel' 128 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 129 | - url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 130 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 131 | filters: 132 | - entity.system.os == 'linux' 133 | - entity.system.arch == 'amd64' 134 | - entity.system.platform == 'alpine' 135 | - entity.system.platform_version.split('.')[0] == '3' 136 | -------------------------------------------------------------------------------- /postfix/metrics-mailq.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Fetch message count metrics from Postfix mailq 4 | # 5 | # Instructions 6 | # 1. Add the "postfix" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-postfix#sensu-plugins-postfix 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: metrics-mailq 20 | spec: 21 | command: metrics-mailq.rb 22 | runtime_assets: 23 | - sensu-plugins/sensu-plugins-postfix:2.0.0 24 | - sensu/sensu-ruby-runtime:0.0.10 25 | publish: false 26 | subscriptions: 27 | - postfix 28 | interval: 30 29 | timeout: 10 30 | ttl: 0 31 | proxy_entity_name: "" 32 | stdin: false 33 | output_metric_format: graphite_plaintext 34 | output_metric_handlers: 35 | - metric-storage 36 | --- 37 | type: Asset 38 | api_version: core/v2 39 | metadata: 40 | name: sensu-plugins/sensu-plugins-postfix:2.0.0 41 | labels: 42 | annotations: 43 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-postfix 44 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-postfix 45 | io.sensu.bonsai.tier: Community 46 | io.sensu.bonsai.version: 2.0.0 47 | io.sensu.bonsai.namespace: sensu-plugins 48 | io.sensu.bonsai.name: sensu-plugins-postfix 49 | io.sensu.bonsai.tags: '' 50 | spec: 51 | builds: 52 | - url: https://assets.bonsai.sensu.io/39b82d244844e31dd11f1806a5263dc2c1d209a2/sensu-plugins-postfix_2.0.0_debian9_linux_amd64.tar.gz 53 | sha512: b1d9edf379b62a3a3bc71657c700ae19e238e06eee12e647b404c83519dde0e05624c42fd2a4f21a36bdd80c27a11ca990d4f6fc8ed0eedf33edb09a32e84ac4 54 | filters: 55 | - entity.system.os == 'linux' 56 | - entity.system.arch == 'amd64' 57 | - entity.system.platform_family == 'debian' 58 | - entity.system.platform_version.split('.')[0] == '9' 59 | - url: https://assets.bonsai.sensu.io/39b82d244844e31dd11f1806a5263dc2c1d209a2/sensu-plugins-postfix_2.0.0_debian_linux_amd64.tar.gz 60 | sha512: cc3b875bcd10eb4a6cae4d6d91d50f11b00aea4040adec23d5a32ae1cddb4c6c767b5155c634f55b5e936ccf55c76e674399972822869e33ea01b8a103e6ccbc 61 | filters: 62 | - entity.system.os == 'linux' 63 | - entity.system.arch == 'amd64' 64 | - entity.system.platform_family == 'debian' 65 | - url: https://assets.bonsai.sensu.io/39b82d244844e31dd11f1806a5263dc2c1d209a2/sensu-plugins-postfix_2.0.0_centos7_linux_amd64.tar.gz 66 | sha512: 189756f43933ade60e88f92f7b4296069787abc7361f236d9505f1a6d1127dbf434a786e31fd6e0193c8ee304f26fab1347c3e7f48398988b9091cc1b79dc349 67 | filters: 68 | - entity.system.os == 'linux' 69 | - entity.system.arch == 'amd64' 70 | - entity.system.platform_family == 'rhel' 71 | - entity.system.platform_version.split('.')[0] == '7' 72 | - url: https://assets.bonsai.sensu.io/39b82d244844e31dd11f1806a5263dc2c1d209a2/sensu-plugins-postfix_2.0.0_centos6_linux_amd64.tar.gz 73 | sha512: 5bb01e362ef58910d21b4098cc33205cf32867d5758ae58d3c527569e08f83e4ab169797bcaf289f8568bcc8f7c30599149358a9f9480be8ee235b8370fb91dc 74 | filters: 75 | - entity.system.os == 'linux' 76 | - entity.system.arch == 'amd64' 77 | - entity.system.platform_family == 'rhel' 78 | - entity.system.platform_version.split('.')[0] == '6' 79 | - url: https://assets.bonsai.sensu.io/39b82d244844e31dd11f1806a5263dc2c1d209a2/sensu-plugins-postfix_2.0.0_alpine3.8_linux_amd64.tar.gz 80 | sha512: 537e778219ece95fde857e56b19eb5d0ad39e20e560cf5777fc36eccde128a5a3f7bfe4eedc40c7d566ca60e6030c43b2952b1690a003efceb0f4d8e9d149aa7 81 | filters: 82 | - entity.system.os == 'linux' 83 | - entity.system.arch == 'amd64' 84 | - entity.system.platform == 'alpine' 85 | - url: https://assets.bonsai.sensu.io/39b82d244844e31dd11f1806a5263dc2c1d209a2/sensu-plugins-postfix_2.0.0_alpine_linux_amd64.tar.gz 86 | sha512: fed22c7e21f112a0e4ba31eeb611cd7d7fa81d5f7ea51d40bf41175ed9bb149881400f80fd7a25175b5c7414013d8635c9f1d35c5683ddc9b4a220173701f9df 87 | filters: 88 | - entity.system.os == 'linux' 89 | - entity.system.arch == 'amd64' 90 | - entity.system.platform == 'alpine' 91 | - entity.system.platform_version.split('.')[0] == '3' 92 | --- 93 | type: Asset 94 | api_version: core/v2 95 | metadata: 96 | name: sensu/sensu-ruby-runtime:0.0.10 97 | labels: 98 | annotations: 99 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 100 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 101 | io.sensu.bonsai.tier: Community 102 | io.sensu.bonsai.version: 0.0.10 103 | io.sensu.bonsai.namespace: sensu 104 | io.sensu.bonsai.name: sensu-ruby-runtime 105 | io.sensu.bonsai.tags: '' 106 | spec: 107 | builds: 108 | - url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 109 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 110 | filters: 111 | - entity.system.os == 'linux' 112 | - entity.system.arch == 'amd64' 113 | - entity.system.platform_family == 'rhel' 114 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 115 | - url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 116 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 117 | filters: 118 | - entity.system.os == 'linux' 119 | - entity.system.arch == 'amd64' 120 | - entity.system.platform_family == 'debian' 121 | - url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 122 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 123 | filters: 124 | - entity.system.os == 'linux' 125 | - entity.system.arch == 'amd64' 126 | - entity.system.platform_family == 'rhel' 127 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 128 | - url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 129 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 130 | filters: 131 | - entity.system.os == 'linux' 132 | - entity.system.arch == 'amd64' 133 | - entity.system.platform == 'alpine' 134 | - entity.system.platform_version.split('.')[0] == '3' 135 | -------------------------------------------------------------------------------- /ssl/check-ssl-hsts-preloadable.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Checks a domain against Chromium HSTS API returning errors/warnings 4 | # if the domain is preloadable 5 | # 6 | # Instructions 7 | # 1. Add the "ssl" subscription to agents that should run this check. 8 | # 2. Make sure to set the proper domain argument 9 | # 3. More configuration options are available for this plugin; please see the 10 | # plugin documentation for more details. 11 | # 12 | # Documentation 13 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-ssl#sensu-plugins-ssl 14 | # 15 | # Contributors 16 | # The following individuals have contributed to this configuration template: 17 | # - Todd Campbell, @nixwiz 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: check-ssl-hsts-preloadable 22 | spec: 23 | command: >- 24 | check-ssl-hsts-preloadable.rb 25 | --domain {{ .annotations.check_ssl_hsts_preloadable_domain | default "https://example.com" }} 26 | runtime_assets: 27 | - sensu-plugins/sensu-plugins-ssl:3.0.2 28 | - sensu/sensu-ruby-runtime:0.0.10 29 | publish: false 30 | subscriptions: 31 | - ssl 32 | interval: 30 33 | timeout: 10 34 | ttl: 0 35 | proxy_entity_name: "" 36 | stdin: false 37 | handlers: 38 | - alert 39 | --- 40 | type: Asset 41 | api_version: core/v2 42 | metadata: 43 | name: sensu-plugins/sensu-plugins-ssl:3.0.2 44 | labels: 45 | annotations: 46 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-ssl 47 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-ssl 48 | io.sensu.bonsai.tier: Community 49 | io.sensu.bonsai.version: 3.0.2 50 | io.sensu.bonsai.namespace: sensu-plugins 51 | io.sensu.bonsai.name: sensu-plugins-ssl 52 | io.sensu.bonsai.tags: '' 53 | spec: 54 | builds: 55 | - url: https://assets.bonsai.sensu.io/2e3663222d4558e3aae7df6e56b229cd89b3e4ae/sensu-plugins-ssl_3.0.2_debian9_linux_amd64.tar.gz 56 | sha512: c7b8be030a7bcad34478260fb023326642d85293d261da5216c55443985f53f98853f2eced5f3574197342d948965ffbb6e8eb2c58236c036afa74503b5fb44e 57 | filters: 58 | - entity.system.os == 'linux' 59 | - entity.system.arch == 'amd64' 60 | - url: https://assets.bonsai.sensu.io/2e3663222d4558e3aae7df6e56b229cd89b3e4ae/sensu-plugins-ssl_3.0.2_debian_linux_amd64.tar.gz 61 | sha512: fe5cfc1261a863982cae42154270feaffd2326222b93daf05276907560f83c5e0eb63c6f175359364d981fcaeff60c441da3787930e710b825d3951b92f7a5d5 62 | filters: 63 | - entity.system.os == 'linux' 64 | - entity.system.arch == 'amd64' 65 | - entity.system.platform_family == 'debian' 66 | - url: https://assets.bonsai.sensu.io/2e3663222d4558e3aae7df6e56b229cd89b3e4ae/sensu-plugins-ssl_3.0.2_centos7_linux_amd64.tar.gz 67 | sha512: 27667460a0e21170264bd9482bd524bc7f97705452eaac207fcf374f814935cf98442ef6fcd52e354ca8917ca36f538ebe839875fdee16c58ecf9a1dc5f93795 68 | filters: 69 | - entity.system.os == 'linux' 70 | - entity.system.arch == 'amd64' 71 | - entity.system.platform_family == 'rhel' 72 | - entity.system.platform_version.split('.')[0] == '7' 73 | - url: https://assets.bonsai.sensu.io/2e3663222d4558e3aae7df6e56b229cd89b3e4ae/sensu-plugins-ssl_3.0.2_centos6_linux_amd64.tar.gz 74 | sha512: bd24bfd2302618f7265680cf555e22df347f803acf6440d205897449f87aa9b281d0f766b7b525625a262e9f478716ed017da0bbbb07d7013f47d12bfe31235e 75 | filters: 76 | - entity.system.os == 'linux' 77 | - entity.system.arch == 'amd64' 78 | - entity.system.platform_family == 'rhel' 79 | - entity.system.platform_version.split('.')[0] == '6' 80 | - url: https://assets.bonsai.sensu.io/2e3663222d4558e3aae7df6e56b229cd89b3e4ae/sensu-plugins-ssl_3.0.2_alpine3.8_linux_amd64.tar.gz 81 | sha512: 15cdf1eea8d60e0592b23af413aad0ad9e6f687ef43c364f305b01754d8152783944bc18a99a3302c25558618779bab57beca8a852c71e120e6e7d07c1f0396c 82 | filters: 83 | - entity.system.os == 'linux' 84 | - entity.system.arch == 'amd64' 85 | - entity.system.platform == 'alpine' 86 | - url: https://assets.bonsai.sensu.io/2e3663222d4558e3aae7df6e56b229cd89b3e4ae/sensu-plugins-ssl_3.0.2_alpine_linux_amd64.tar.gz 87 | sha512: cbddc8f3135d04d4687d031880b29aba20d1c93a1c70f71ed05070e9d15a298c6724273ca97e9edda7a908830181901786920b4a563dd40fa4df1c1606cd038d 88 | filters: 89 | - entity.system.os == 'linux' 90 | - entity.system.arch == 'amd64' 91 | - entity.system.platform == 'alpine' 92 | - entity.system.platform_version.split('.')[0] == '3' 93 | --- 94 | type: Asset 95 | api_version: core/v2 96 | metadata: 97 | name: sensu/sensu-ruby-runtime:0.0.10 98 | labels: 99 | annotations: 100 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 101 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 102 | io.sensu.bonsai.tier: Community 103 | io.sensu.bonsai.version: 0.0.10 104 | io.sensu.bonsai.namespace: sensu 105 | io.sensu.bonsai.name: sensu-ruby-runtime 106 | io.sensu.bonsai.tags: '' 107 | spec: 108 | builds: 109 | - url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 110 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 111 | filters: 112 | - entity.system.os == 'linux' 113 | - entity.system.arch == 'amd64' 114 | - entity.system.platform_family == 'rhel' 115 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 116 | - url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 117 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 118 | filters: 119 | - entity.system.os == 'linux' 120 | - entity.system.arch == 'amd64' 121 | - entity.system.platform_family == 'debian' 122 | - url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 123 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 124 | filters: 125 | - entity.system.os == 'linux' 126 | - entity.system.arch == 'amd64' 127 | - entity.system.platform_family == 'rhel' 128 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 129 | - url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 130 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 131 | filters: 132 | - entity.system.os == 'linux' 133 | - entity.system.arch == 'amd64' 134 | - entity.system.platform == 'alpine' 135 | - entity.system.platform_version.split('.')[0] == '3' 136 | -------------------------------------------------------------------------------- /http/check-http-json.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check that an HTTP URL returns a valid JSON output, and optionally can 4 | # validate simple string key/value pairs, and optionally check if a specified 5 | # value is within bounds 6 | # 7 | # Instructions 8 | # 1. Add the "http" subscription to agents that should run this check. 9 | # 2. More configuration options are available for this plugin; please see the 10 | # plugin documentation for more details. 11 | # 12 | # Documentation 13 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-http#usage-examples 14 | # 15 | # Contributors 16 | # The following individuals have contributed to this configuration template: 17 | # - Todd Campbell, @nixwiz 18 | type: CheckConfig 19 | api_version: core/v2 20 | metadata: 21 | name: check-http-json 22 | spec: 23 | command: >- 24 | check-http-json.rb 25 | --url {{ .annotations.check_http_json_url | default "http://localhost:80/health.json" }} 26 | runtime_assets: 27 | - sensu-plugins/sensu-plugins-http:6.0.0 28 | - sensu/sensu-ruby-runtime:0.0.10 29 | publish: false 30 | subscriptions: 31 | - http 32 | interval: 30 33 | timeout: 10 34 | ttl: 0 35 | proxy_entity_name: "" 36 | stdin: false 37 | handlers: 38 | - alert 39 | --- 40 | type: Asset 41 | api_version: core/v2 42 | metadata: 43 | annotations: 44 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-http 45 | io.sensu.bonsai.name: sensu-plugins-http 46 | io.sensu.bonsai.namespace: sensu-plugins 47 | io.sensu.bonsai.tags: alpine, centos, debian, http, ruby-runtime-2.4.4 48 | io.sensu.bonsai.tier: Community 49 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-http 50 | io.sensu.bonsai.version: 6.0.0 51 | name: sensu-plugins/sensu-plugins-http:6.0.0 52 | spec: 53 | builds: 54 | - filters: 55 | - entity.system.os == 'linux' 56 | - entity.system.arch == 'amd64' 57 | sha512: ed9c3c8f1fbc37f9c856498ee77d93e2cd045993786a3b59ee76e240aa799f98dd1313672adb6ffd81a131103d401351d4434b4ea95fb40cd5cd40c8afa1ac29 58 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian9_linux_amd64.tar.gz 59 | - filters: 60 | - entity.system.os == 'linux' 61 | - entity.system.arch == 'amd64' 62 | - entity.system.platform_family == 'debian' 63 | sha512: bfa025fcda806a36673e252f693635ea9283f7ba9e1ddcfa3c541fdf7ab96e6d90746e44e3377b7d973cdc7cb3c851114ce886fd9d8ec532d7371b7a3f237fa2 64 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian_linux_amd64.tar.gz 65 | - filters: 66 | - entity.system.os == 'linux' 67 | - entity.system.arch == 'amd64' 68 | - entity.system.platform_family == 'rhel' 69 | - entity.system.platform_version.split('.')[0] == '7' 70 | sha512: eb4cb5aee521500c0580111814d909ec8ccda1a13c301578e614e932dc5420fdcd1b7da129a0d801440e433c51eb2fb7aa69df16bfaf6cdbb1ac20ed032d2063 71 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos7_linux_amd64.tar.gz 72 | - filters: 73 | - entity.system.os == 'linux' 74 | - entity.system.arch == 'amd64' 75 | - entity.system.platform_family == 'rhel' 76 | - entity.system.platform_version.split('.')[0] == '6' 77 | sha512: 3f02ba8afd866ec68b50c8336263a10bd43fd29e4fb747e802bf816b11d94569e3005e808c85e9722258f67004812be367a51765095c7573e6ac91645ae02828 78 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos6_linux_amd64.tar.gz 79 | - filters: 80 | - entity.system.os == 'linux' 81 | - entity.system.arch == 'amd64' 82 | - entity.system.platform == 'alpine' 83 | sha512: 5ce520574a8460c9bdbfe5ee0cba7dd32d58bbfe51d09803d54f61f862520dfe654a2afce4d2da9553099dc8b674dae49b722dc6725ac5f3c2e7b64aec354370 84 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine3.8_linux_amd64.tar.gz 85 | - filters: 86 | - entity.system.os == 'linux' 87 | - entity.system.arch == 'amd64' 88 | - entity.system.platform == 'alpine' 89 | - entity.system.platform_version.split('.')[0] == '3' 90 | sha512: 619b32224c5d13f01360df42cb74db1118eab6b46833a93a6da2005638e955b839567ad19147bf9bfa9154bc75f60fc05645e212e75a22430b472a50eb90b655 91 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine_linux_amd64.tar.gz 92 | --- 93 | type: Asset 94 | api_version: core/v2 95 | metadata: 96 | annotations: 97 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 98 | io.sensu.bonsai.name: sensu-ruby-runtime 99 | io.sensu.bonsai.namespace: sensu 100 | io.sensu.bonsai.tags: "" 101 | io.sensu.bonsai.tier: Community 102 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 103 | io.sensu.bonsai.version: 0.0.10 104 | name: sensu/sensu-ruby-runtime:0.0.10 105 | spec: 106 | builds: 107 | - filters: 108 | - entity.system.os == 'linux' 109 | - entity.system.arch == 'amd64' 110 | - entity.system.platform_family == 'rhel' 111 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 112 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 113 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 114 | - filters: 115 | - entity.system.os == 'linux' 116 | - entity.system.arch == 'amd64' 117 | - entity.system.platform_family == 'debian' 118 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 119 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 120 | - filters: 121 | - entity.system.os == 'linux' 122 | - entity.system.arch == 'amd64' 123 | - entity.system.platform_family == 'rhel' 124 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 125 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 126 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 127 | - filters: 128 | - entity.system.os == 'linux' 129 | - entity.system.arch == 'amd64' 130 | - entity.system.platform == 'alpine' 131 | - entity.system.platform_version.split('.')[0] == '3' 132 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 133 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 134 | -------------------------------------------------------------------------------- /http/check-last-modified.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check that the last modified time of an HTTP URL has been updated within 4 | # a specified threshold 5 | # 6 | # Instructions 7 | # 1. Add the "http" subscription to agents that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-http#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Todd Campbell, @nixwiz 17 | type: CheckConfig 18 | api_version: core/v2 19 | metadata: 20 | name: check-last-modified 21 | spec: 22 | command: >- 23 | check-last-modified.rb 24 | --url {{ .annotations.check_last_modified_url | default "http://localhost:80/" }} 25 | --threshold {{ .annotations.check_last_modified_threshold | default 86400 }} 26 | runtime_assets: 27 | - sensu-plugins/sensu-plugins-http:6.0.0 28 | - sensu/sensu-ruby-runtime:0.0.10 29 | publish: false 30 | subscriptions: 31 | - http 32 | interval: 30 33 | timeout: 10 34 | ttl: 0 35 | proxy_entity_name: "" 36 | stdin: false 37 | handlers: 38 | - alert 39 | --- 40 | type: Asset 41 | api_version: core/v2 42 | metadata: 43 | annotations: 44 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-http 45 | io.sensu.bonsai.name: sensu-plugins-http 46 | io.sensu.bonsai.namespace: sensu-plugins 47 | io.sensu.bonsai.tags: alpine, centos, debian, http, ruby-runtime-2.4.4 48 | io.sensu.bonsai.tier: Community 49 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-http 50 | io.sensu.bonsai.version: 6.0.0 51 | name: sensu-plugins/sensu-plugins-http:6.0.0 52 | spec: 53 | builds: 54 | - filters: 55 | - entity.system.os == 'linux' 56 | - entity.system.arch == 'amd64' 57 | sha512: ed9c3c8f1fbc37f9c856498ee77d93e2cd045993786a3b59ee76e240aa799f98dd1313672adb6ffd81a131103d401351d4434b4ea95fb40cd5cd40c8afa1ac29 58 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian9_linux_amd64.tar.gz 59 | - filters: 60 | - entity.system.os == 'linux' 61 | - entity.system.arch == 'amd64' 62 | - entity.system.platform_family == 'debian' 63 | sha512: bfa025fcda806a36673e252f693635ea9283f7ba9e1ddcfa3c541fdf7ab96e6d90746e44e3377b7d973cdc7cb3c851114ce886fd9d8ec532d7371b7a3f237fa2 64 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian_linux_amd64.tar.gz 65 | - filters: 66 | - entity.system.os == 'linux' 67 | - entity.system.arch == 'amd64' 68 | - entity.system.platform_family == 'rhel' 69 | - entity.system.platform_version.split('.')[0] == '7' 70 | sha512: eb4cb5aee521500c0580111814d909ec8ccda1a13c301578e614e932dc5420fdcd1b7da129a0d801440e433c51eb2fb7aa69df16bfaf6cdbb1ac20ed032d2063 71 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos7_linux_amd64.tar.gz 72 | - filters: 73 | - entity.system.os == 'linux' 74 | - entity.system.arch == 'amd64' 75 | - entity.system.platform_family == 'rhel' 76 | - entity.system.platform_version.split('.')[0] == '6' 77 | sha512: 3f02ba8afd866ec68b50c8336263a10bd43fd29e4fb747e802bf816b11d94569e3005e808c85e9722258f67004812be367a51765095c7573e6ac91645ae02828 78 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos6_linux_amd64.tar.gz 79 | - filters: 80 | - entity.system.os == 'linux' 81 | - entity.system.arch == 'amd64' 82 | - entity.system.platform == 'alpine' 83 | sha512: 5ce520574a8460c9bdbfe5ee0cba7dd32d58bbfe51d09803d54f61f862520dfe654a2afce4d2da9553099dc8b674dae49b722dc6725ac5f3c2e7b64aec354370 84 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine3.8_linux_amd64.tar.gz 85 | - filters: 86 | - entity.system.os == 'linux' 87 | - entity.system.arch == 'amd64' 88 | - entity.system.platform == 'alpine' 89 | - entity.system.platform_version.split('.')[0] == '3' 90 | sha512: 619b32224c5d13f01360df42cb74db1118eab6b46833a93a6da2005638e955b839567ad19147bf9bfa9154bc75f60fc05645e212e75a22430b472a50eb90b655 91 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine_linux_amd64.tar.gz 92 | --- 93 | type: Asset 94 | api_version: core/v2 95 | metadata: 96 | annotations: 97 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 98 | io.sensu.bonsai.name: sensu-ruby-runtime 99 | io.sensu.bonsai.namespace: sensu 100 | io.sensu.bonsai.tags: "" 101 | io.sensu.bonsai.tier: Community 102 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 103 | io.sensu.bonsai.version: 0.0.10 104 | name: sensu/sensu-ruby-runtime:0.0.10 105 | spec: 106 | builds: 107 | - filters: 108 | - entity.system.os == 'linux' 109 | - entity.system.arch == 'amd64' 110 | - entity.system.platform_family == 'rhel' 111 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 112 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 113 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 114 | - filters: 115 | - entity.system.os == 'linux' 116 | - entity.system.arch == 'amd64' 117 | - entity.system.platform_family == 'debian' 118 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 119 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 120 | - filters: 121 | - entity.system.os == 'linux' 122 | - entity.system.arch == 'amd64' 123 | - entity.system.platform_family == 'rhel' 124 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 125 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 126 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 127 | - filters: 128 | - entity.system.os == 'linux' 129 | - entity.system.arch == 'amd64' 130 | - entity.system.platform == 'alpine' 131 | - entity.system.platform_version.split('.')[0] == '3' 132 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 133 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 134 | -------------------------------------------------------------------------------- /system/linux/memory/check-ram.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check memory usage using vmstat output for statistics 4 | # 5 | # Instructions 6 | # 1. Add the "system/linux" or "system/linux/memory" subscription to agents 7 | # that should run this check. 8 | # 2. More configuration options are available for this plugin; please see the 9 | # plugin documentation for more details. 10 | # 11 | # Documentation 12 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-memory-checks#usage-examples 13 | # 14 | # Contributors 15 | # The following individuals have contributed to this configuration template: 16 | # - Nikki Attea, @nikkixdev 17 | # - Caleb Hailey, @calebhailey 18 | # - Todd Campbell, @nixwiz 19 | type: CheckConfig 20 | api_version: core/v2 21 | metadata: 22 | name: check-ram 23 | spec: 24 | command: check-ram.rb 25 | interval: 10 26 | publish: false 27 | runtime_assets: 28 | - sensu-plugins/sensu-plugins-memory-checks:4.1.1 29 | - sensu/sensu-ruby-runtime:0.0.10 30 | subscriptions: 31 | - system/linux 32 | - system/linux/memory 33 | handlers: 34 | - alert 35 | --- 36 | type: Asset 37 | api_version: core/v2 38 | metadata: 39 | annotations: 40 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-memory-checks 41 | io.sensu.bonsai.name: sensu-plugins-memory-checks 42 | io.sensu.bonsai.namespace: sensu-plugins 43 | io.sensu.bonsai.tags: ruby-runtime-2.4.4 44 | io.sensu.bonsai.tier: Community 45 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-memory-checks 46 | io.sensu.bonsai.version: 4.1.1 47 | name: sensu-plugins/sensu-plugins-memory-checks:4.1.1 48 | spec: 49 | builds: 50 | - filters: 51 | - entity.system.os == 'linux' 52 | - entity.system.arch == 'amd64' 53 | headers: null 54 | sha512: 45ed66c95e71b9f44604a65752262ba8f506c39d8877f032b74ee9b155318f8229de2657ce65785fa1b46024d1b42166769dfe93f61610bf704f8bf5663f1bc8 55 | url: https://assets.bonsai.sensu.io/db2bd124b2bada73408df8c453f4fb676775b306/sensu-plugins-memory-checks_4.1.1_debian9_linux_amd64.tar.gz 56 | - filters: 57 | - entity.system.os == 'linux' 58 | - entity.system.arch == 'amd64' 59 | - entity.system.platform_family == 'debian' 60 | headers: null 61 | sha512: a1dff4bc3b890ee60bc559a64c9c89cf81f6638770c2c1bb50482050e95d70cc1b93f39ae5dd2903511f2dd685b1374bd4ddd2032fb0e28183bf5fb77a8065f2 62 | url: https://assets.bonsai.sensu.io/db2bd124b2bada73408df8c453f4fb676775b306/sensu-plugins-memory-checks_4.1.1_debian_linux_amd64.tar.gz 63 | - filters: 64 | - entity.system.os == 'linux' 65 | - entity.system.arch == 'amd64' 66 | - entity.system.platform_family == 'rhel' 67 | - entity.system.platform_version.split('.')[0] == '7' 68 | headers: null 69 | sha512: aca2e3815112f8ba1e1f8c7eb25b48f06aec71351c72fc45fb68c5c0c8c42aa3cf2f2b3e62bca6bc2186946406657805f7b7fbee597b7e41a3ffeec46dfa7015 70 | url: https://assets.bonsai.sensu.io/db2bd124b2bada73408df8c453f4fb676775b306/sensu-plugins-memory-checks_4.1.1_centos7_linux_amd64.tar.gz 71 | - filters: 72 | - entity.system.os == 'linux' 73 | - entity.system.arch == 'amd64' 74 | - entity.system.platform_family == 'rhel' 75 | - entity.system.platform_version.split('.')[0] == '6' 76 | headers: null 77 | sha512: aae3a9f69e8848f1b025f2f0808faff32c817c41ff26914bb46cc16665a103ee30b1700d495be0646b97199da53f842505914f5f32e418094e922e04e6e01c34 78 | url: https://assets.bonsai.sensu.io/db2bd124b2bada73408df8c453f4fb676775b306/sensu-plugins-memory-checks_4.1.1_centos6_linux_amd64.tar.gz 79 | - filters: 80 | - entity.system.os == 'linux' 81 | - entity.system.arch == 'amd64' 82 | - entity.system.platform == 'alpine' 83 | headers: null 84 | sha512: 38a9e030f450a27c3bee063fdcd0aaec34872c3acb147755fe6d03361df9b6d5992d14543b48b62df713c18043fd566ca9ccc84fd8552e1c1c2cc38a62a0988f 85 | url: https://assets.bonsai.sensu.io/db2bd124b2bada73408df8c453f4fb676775b306/sensu-plugins-memory-checks_4.1.1_alpine3.8_linux_amd64.tar.gz 86 | - filters: 87 | - entity.system.os == 'linux' 88 | - entity.system.arch == 'amd64' 89 | - entity.system.platform == 'alpine' 90 | - entity.system.platform_version.split('.')[0] == '3' 91 | headers: null 92 | sha512: 217b0836430064eed6a2147e3a37156af5d2aebc8e0e959c87c2fb70f2a52516cedea348a3a5bc3f9848819a20450ad2e80fdddbb3a5c8fdfe280f8d0c053730 93 | url: https://assets.bonsai.sensu.io/db2bd124b2bada73408df8c453f4fb676775b306/sensu-plugins-memory-checks_4.1.1_alpine_linux_amd64.tar.gz 94 | filters: null 95 | headers: null 96 | --- 97 | type: Asset 98 | api_version: core/v2 99 | metadata: 100 | annotations: 101 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 102 | io.sensu.bonsai.name: sensu-ruby-runtime 103 | io.sensu.bonsai.namespace: sensu 104 | io.sensu.bonsai.tags: "" 105 | io.sensu.bonsai.tier: Community 106 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 107 | io.sensu.bonsai.version: 0.0.10 108 | name: sensu/sensu-ruby-runtime:0.0.10 109 | spec: 110 | builds: 111 | - filters: 112 | - entity.system.os == 'linux' 113 | - entity.system.arch == 'amd64' 114 | - entity.system.platform_family == 'rhel' 115 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 116 | headers: null 117 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 118 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 119 | - filters: 120 | - entity.system.os == 'linux' 121 | - entity.system.arch == 'amd64' 122 | - entity.system.platform_family == 'debian' 123 | headers: null 124 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 125 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 126 | - filters: 127 | - entity.system.os == 'linux' 128 | - entity.system.arch == 'amd64' 129 | - entity.system.platform_family == 'rhel' 130 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 131 | headers: null 132 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 133 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 134 | - filters: 135 | - entity.system.os == 'linux' 136 | - entity.system.arch == 'amd64' 137 | - entity.system.platform == 'alpine' 138 | - entity.system.platform_version.split('.')[0] == '3' 139 | headers: null 140 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 141 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 142 | filters: null 143 | headers: null 144 | -------------------------------------------------------------------------------- /http/check-https-cert.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Description 3 | # Check the expiration date of a URL's TLS/SSL certificate 4 | # 5 | # Instructions 6 | # 1. Add the "http" subscription to agents that should run this check. 7 | # 2. More configuration options are available for this plugin; please see the 8 | # plugin documentation for more details. 9 | # 10 | # Documentation 11 | # - Usage: https://github.com/sensu-plugins/sensu-plugins-http#usage-examples 12 | # 13 | # Contributors 14 | # The following individuals have contributed to this configuration template: 15 | # - Todd Campbell, @nixwiz 16 | type: CheckConfig 17 | api_version: core/v2 18 | metadata: 19 | name: check-https-cert 20 | spec: 21 | command: >- 22 | check-https-cert.rb 23 | --url {{ .annotations.check_https_cert_url | default "https://localhost:80/" }} 24 | --warning {{ .annotations.check_https_cert_warning_days | default 50 }} 25 | --critical {{ .annotations.check_https_cert_critical_days | default 25 }} 26 | runtime_assets: 27 | - sensu-plugins/sensu-plugins-http:6.0.0 28 | - sensu/sensu-ruby-runtime:0.0.10 29 | publish: false 30 | subscriptions: 31 | - http 32 | interval: 30 33 | timeout: 10 34 | ttl: 0 35 | proxy_entity_name: "" 36 | stdin: false 37 | handlers: 38 | - alert 39 | --- 40 | type: Asset 41 | api_version: core/v2 42 | metadata: 43 | annotations: 44 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-http 45 | io.sensu.bonsai.name: sensu-plugins-http 46 | io.sensu.bonsai.namespace: sensu-plugins 47 | io.sensu.bonsai.tags: alpine, centos, debian, http, ruby-runtime-2.4.4 48 | io.sensu.bonsai.tier: Community 49 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-http 50 | io.sensu.bonsai.version: 6.0.0 51 | name: sensu-plugins/sensu-plugins-http:6.0.0 52 | spec: 53 | builds: 54 | - filters: 55 | - entity.system.os == 'linux' 56 | - entity.system.arch == 'amd64' 57 | sha512: ed9c3c8f1fbc37f9c856498ee77d93e2cd045993786a3b59ee76e240aa799f98dd1313672adb6ffd81a131103d401351d4434b4ea95fb40cd5cd40c8afa1ac29 58 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian9_linux_amd64.tar.gz 59 | - filters: 60 | - entity.system.os == 'linux' 61 | - entity.system.arch == 'amd64' 62 | - entity.system.platform_family == 'debian' 63 | sha512: bfa025fcda806a36673e252f693635ea9283f7ba9e1ddcfa3c541fdf7ab96e6d90746e44e3377b7d973cdc7cb3c851114ce886fd9d8ec532d7371b7a3f237fa2 64 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian_linux_amd64.tar.gz 65 | - filters: 66 | - entity.system.os == 'linux' 67 | - entity.system.arch == 'amd64' 68 | - entity.system.platform_family == 'rhel' 69 | - entity.system.platform_version.split('.')[0] == '7' 70 | sha512: eb4cb5aee521500c0580111814d909ec8ccda1a13c301578e614e932dc5420fdcd1b7da129a0d801440e433c51eb2fb7aa69df16bfaf6cdbb1ac20ed032d2063 71 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos7_linux_amd64.tar.gz 72 | - filters: 73 | - entity.system.os == 'linux' 74 | - entity.system.arch == 'amd64' 75 | - entity.system.platform_family == 'rhel' 76 | - entity.system.platform_version.split('.')[0] == '6' 77 | sha512: 3f02ba8afd866ec68b50c8336263a10bd43fd29e4fb747e802bf816b11d94569e3005e808c85e9722258f67004812be367a51765095c7573e6ac91645ae02828 78 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos6_linux_amd64.tar.gz 79 | - filters: 80 | - entity.system.os == 'linux' 81 | - entity.system.arch == 'amd64' 82 | - entity.system.platform == 'alpine' 83 | sha512: 5ce520574a8460c9bdbfe5ee0cba7dd32d58bbfe51d09803d54f61f862520dfe654a2afce4d2da9553099dc8b674dae49b722dc6725ac5f3c2e7b64aec354370 84 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine3.8_linux_amd64.tar.gz 85 | - filters: 86 | - entity.system.os == 'linux' 87 | - entity.system.arch == 'amd64' 88 | - entity.system.platform == 'alpine' 89 | - entity.system.platform_version.split('.')[0] == '3' 90 | sha512: 619b32224c5d13f01360df42cb74db1118eab6b46833a93a6da2005638e955b839567ad19147bf9bfa9154bc75f60fc05645e212e75a22430b472a50eb90b655 91 | url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine_linux_amd64.tar.gz 92 | --- 93 | type: Asset 94 | api_version: core/v2 95 | metadata: 96 | annotations: 97 | io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime 98 | io.sensu.bonsai.name: sensu-ruby-runtime 99 | io.sensu.bonsai.namespace: sensu 100 | io.sensu.bonsai.tags: "" 101 | io.sensu.bonsai.tier: Community 102 | io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime 103 | io.sensu.bonsai.version: 0.0.10 104 | name: sensu/sensu-ruby-runtime:0.0.10 105 | spec: 106 | builds: 107 | - filters: 108 | - entity.system.os == 'linux' 109 | - entity.system.arch == 'amd64' 110 | - entity.system.platform_family == 'rhel' 111 | - parseInt(entity.system.platform_version.split('.')[0]) == 6 112 | sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304 113 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz 114 | - filters: 115 | - entity.system.os == 'linux' 116 | - entity.system.arch == 'amd64' 117 | - entity.system.platform_family == 'debian' 118 | sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a 119 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz 120 | - filters: 121 | - entity.system.os == 'linux' 122 | - entity.system.arch == 'amd64' 123 | - entity.system.platform_family == 'rhel' 124 | - parseInt(entity.system.platform_version.split('.')[0]) > 6 125 | sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb 126 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz 127 | - filters: 128 | - entity.system.os == 'linux' 129 | - entity.system.arch == 'amd64' 130 | - entity.system.platform == 'alpine' 131 | - entity.system.platform_version.split('.')[0] == '3' 132 | sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 133 | url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz 134 | --------------------------------------------------------------------------------