X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FPuppet.git;a=blobdiff_plain;f=modules%2Fprofile%2Fmanifests%2Fmonitoring%2Fcommands.pp;h=7c5d8ed7a3e24be70e4a0cbe288b930731f6f6c8;hp=1c8d0b46997a53edd05bd39fda1b49a57c8c1750;hb=96f8d0f037f8b8e93315e864bdaf661f45e3c472;hpb=21d531ee2e4a5952673d694342ff01822581a1f8 diff --git a/modules/profile/manifests/monitoring/commands.pp b/modules/profile/manifests/monitoring/commands.pp index 1c8d0b4..7c5d8ed 100644 --- a/modules/profile/manifests/monitoring/commands.pp +++ b/modules/profile/manifests/monitoring/commands.pp @@ -12,6 +12,7 @@ class profile::monitoring::commands inherits profile::monitoring { "check_command", "check_md_raid", "check_postgres_replication", + "check_date", "check_last_file_date", ].each |$file| { file { "$plugins/$file": @@ -57,7 +58,10 @@ class profile::monitoring::commands inherits profile::monitoring { require => File["$plugins/check_postgres_replication"]; "check_last_file_date": command_line => '$USER2$/check_last_file_date "$ARG1$" "$ARG2$" "$ARG3$"', - require => File["$plugins/check_last_file_date"], + require => File["$plugins/check_last_file_date"]; + "check_date": + command_line => '$USER2$/check_date "$ARG1$" "$ARG2$" "$ARG3$"', + require => File["$plugins/check_date"]; } unless empty($naemon_url) {