Puppet Class: monitoring::monitoring::sensu::elasticsearch
- Defined in:
- manifests/monitoring/sensu/elasticsearch.pp
Overview
Class: monitoring::monitoring::elasticsearch
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'manifests/monitoring/sensu/elasticsearch.pp', line 4
class monitoring::monitoring::sensu::elasticsearch (
$plugins_location = '/opt/sensu/embedded/bin/',
) {
if !defined(Package['gcc']) {
package { 'gcc':
ensure => 'present',
}
}
if !defined(Package['g++']) {
package { 'g++':
ensure => 'present',
}
}
if !defined(Package['make']) {
package { 'make':
ensure => 'present',
}
}
package { 'sensu-plugins-elasticsearch':
ensure => 'present',
provider => sensu_gem,
require => [Package['gcc'], Package['g++'], Package['make']],
}
sensu::check { 'es-circuit-breakers':
command => "${plugins_location}check-es-circuit-breakers.rb",
}
sensu::check { 'es-cluster-health':
command => "${plugins_location}check-es-cluster-health.rb",
}
sensu::check { 'es-cluster-status':
command => "${plugins_location}check-es-cluster-status.rb",
}
sensu::check { 'es-file-descriptors':
command => "${plugins_location}check-es-file-descriptors.rb",
}
sensu::check { 'es-heap':
command => "${plugins_location}check-es-heap.rb --percentage --warn 70 --crit 80",
}
sensu::check { 'es-indexes':
command => "${plugins_location}check-es-indexes.rb --cluster elasticsearch",
}
sensu::check { 'es-indices-sizes':
command => "${plugins_location}check-es-indices-sizes.rb",
}
sensu::check { 'es-node-status':
command => "${plugins_location}check-es-node-status.rb",
}
}
|