X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FPuppet.git;a=blobdiff_plain;f=modules%2Fprofile%2Fmanifests%2Fmonitoring.pp;h=ab8cc6210bdec07d5d2dfec8dda34a9ad14e979f;hp=99956c3bc1bd88314b5fd88c58ff91eb93a1ca9f;hb=bf0edb7d7858df64782719f9e6bcc1ba2de57b0f;hpb=63102a9ba9acce5697d4a0487df038b25ad8f28d diff --git a/modules/profile/manifests/monitoring.pp b/modules/profile/manifests/monitoring.pp index 99956c3..ab8cc62 100644 --- a/modules/profile/manifests/monitoring.pp +++ b/modules/profile/manifests/monitoring.pp @@ -2,6 +2,8 @@ class profile::monitoring ( Optional[String] $naemon_url = undef, Optional[String] $naemon_token = undef, ) inherits profile::monitoring::params { + $real_hostname = lookup("base_installation::real_hostname") + ensure_packages(["naemon", "cnagios"], { ensure => latest }) file { "/etc/naemon": @@ -40,6 +42,12 @@ class profile::monitoring ( enable => true, } + file { "/usr/local/sbin/i_naemon_force_check": + ensure => present, + mode => "0755", + content => template("profile/monitoring/force_check.sh.erb"), + } + unless ($naemon_url == undef or empty($naemon_url)) { file { "/etc/naemon/send_nrdp.sh": ensure => "file",