Puppet Class: monitoring::monitoring::sensu::rabbitmq
- Defined in:
- manifests/monitoring/sensu/rabbitmq.pp
Overview
Class: monitoring::monitoring::rabbitmq
3 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 |
# File 'manifests/monitoring/sensu/rabbitmq.pp', line 3
class monitoring::monitoring::sensu::rabbitmq ($plugins_location = '/opt/sensu/embedded/bin/',) {
if !defined(Package['g++']) {
package { 'g++': ensure => 'present', }
}
if !defined(Package['make']) {
package { 'make': ensure => 'present', }
}
package { 'sensu-plugins-rabbitmq':
ensure => 'present',
provider => sensu_gem,
require => [Package['make'], Package['g++']],
}
sensu::check { 'rabbitmq-amqp-alive': command => "${plugins_location}check-rabbitmq-amqp-alive.rb", }
if $::rabbitmq_management_present {
sensu::check { 'rabbitmq-alive': command => "${plugins_location}check-rabbitmq-alive.rb", }
sensu::check { 'rabbitmq-cluster-health': command => "${plugins_location}check-rabbitmq-cluster-health.rb", }
sensu::check { 'rabbitmq-messages': command => "${plugins_location}check-rabbitmq-messages.rb", }
sensu::check { 'rabbitmq-network-partitions': command => "${plugins_location}check-rabbitmq-network-partitions.rb", }
sensu::check { 'rabbitmq-node-health': command => "${plugins_location}check-rabbitmq-node-health.rb", }
}
}
|