diff --git a/site-modules/profile/manifests/icinga2/objects.pp b/site-modules/profile/manifests/icinga2/objects.pp index f1c89d20..a842b45f 100644 --- a/site-modules/profile/manifests/icinga2/objects.pp +++ b/site-modules/profile/manifests/icinga2/objects.pp @@ -1,17 +1,18 @@ # Icinga2 object definitions class profile::icinga2::objects { include profile::icinga2::objects::templates include profile::icinga2::objects::commands include profile::icinga2::objects::users include profile::icinga2::objects::notifications include profile::icinga2::objects::timeperiods include profile::icinga2::objects::apiusers include profile::icinga2::objects::common_checks include profile::icinga2::objects::static_checks include profile::icinga2::objects::agent_checks include profile::icinga2::objects::exported_checks + include profile::icinga2::objects::logstash_checks include profile::icinga2::plugins::rabbitmq } diff --git a/site-modules/profile/manifests/icinga2/objects/logstash_checks.pp b/site-modules/profile/manifests/icinga2/objects/logstash_checks.pp index 092ba228..a8f3ea6e 100644 --- a/site-modules/profile/manifests/icinga2/objects/logstash_checks.pp +++ b/site-modules/profile/manifests/icinga2/objects/logstash_checks.pp @@ -1,26 +1,28 @@ # Check the status of logstash service # this is an agent check class profile::icinga2::objects::logstash_checks { $swh_plugin_dir = '/usr/lib/nagios/plugins/swh' $check_command = 'check_logstash_errors.sh' $check_command_path = "${swh_plugin_dir}/${check_command}" $swh_plugin_configfile = '/etc/icinga2/conf.d/swh-plugins.conf' file {$check_command_path: ensure => present, owner => 'root', group => 'root', mode => '0755', source => "puppet:///modules/profile/icinga2/plugins/${check_command}", require => File[$swh_plugin_dir] } ::icinga2::object::checkcommand {$check_command: import => ['plugin-check-command'], command => $check_command_path, target => $swh_plugin_configfile, require => File[$check_command_path] } + + }