From d8f933bd00a5cc416da00cd26c9d13f7a1c02486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 1 Jul 2018 15:35:43 +0200 Subject: Add monitoring --- .../profile/templates/monitoring/resource.cfg.erb | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 modules/profile/templates/monitoring/resource.cfg.erb (limited to 'modules/profile/templates/monitoring/resource.cfg.erb') diff --git a/modules/profile/templates/monitoring/resource.cfg.erb b/modules/profile/templates/monitoring/resource.cfg.erb new file mode 100644 index 0000000..7da5e66 --- /dev/null +++ b/modules/profile/templates/monitoring/resource.cfg.erb @@ -0,0 +1,30 @@ +########################################################################### +# +# RESOURCE.CFG - Sample Resource File for Naemon 1.0.7 +# +# +# You can define $USERx$ macros in this file, which can in turn be used +# in command definitions in your host config file(s). $USERx$ macros are +# useful for storing sensitive information such as usernames, passwords, +# etc. They are also handy for specifying the path to plugins and +# event handlers - if you decide to move the plugins or event handlers to +# a different directory in the future, you can just update one or two +# $USERx$ macros, instead of modifying a lot of command definitions. +# +# Naemon supports up to 256 $USERx$ macros ($USER1$ through $USER256$) +# +# Resource files may also be used to store configuration directives for +# external data sources like MySQL... +# +########################################################################### + +# Sets $USER1$ to be the path to the plugins +$USER1$=/usr/lib/monitoring-plugins +$USER2$=/etc/naemon/monitoring-plugins + +# Sets $USER2$ to be the path to event handlers +#$USER2$=/usr/lib/monitoring-plugins/eventhandlers + +# Store some usernames and passwords (hidden from the CGIs) +#$USER3$=someuser +#$USER4$=somepassword -- cgit v1.2.3 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/resource.cfg.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/profile/templates/monitoring/resource.cfg.erb') 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