From 0363f38e186b8c942a6db2de4974befbc373f618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 11 Jul 2018 07:45:22 +0200 Subject: Refactor a bit monitoring profile --- modules/profile/templates/monitoring/naemon.cfg.erb | 2 +- modules/profile/templates/monitoring/resource.cfg.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/profile/templates/monitoring') diff --git a/modules/profile/templates/monitoring/naemon.cfg.erb b/modules/profile/templates/monitoring/naemon.cfg.erb index 78bada3..bacbe04 100644 --- a/modules/profile/templates/monitoring/naemon.cfg.erb +++ b/modules/profile/templates/monitoring/naemon.cfg.erb @@ -26,7 +26,7 @@ log_file=/var/log/naemon/naemon.log # if you wish (as shown below), or keep them all in a single config file. # You can specify individual object config files as shown below: -cfg_file=/etc/naemon/objects.cfg +cfg_file=<%= @objects %> #cfg_file=/etc/naemon/objects/commands.cfg #cfg_file=/etc/naemon/objects/contacts.cfg #cfg_file=/etc/naemon/objects/timeperiods.cfg diff --git a/modules/profile/templates/monitoring/resource.cfg.erb b/modules/profile/templates/monitoring/resource.cfg.erb index 7da5e66..5a5c3ee 100644 --- a/modules/profile/templates/monitoring/resource.cfg.erb +++ b/modules/profile/templates/monitoring/resource.cfg.erb @@ -20,7 +20,7 @@ # Sets $USER1$ to be the path to the plugins $USER1$=/usr/lib/monitoring-plugins -$USER2$=/etc/naemon/monitoring-plugins +$USER2$=<%= @plugins %> # Sets $USER2$ to be the path to event handlers #$USER2$=/usr/lib/monitoring-plugins/eventhandlers -- cgit v1.2.3