diff options
author | mh <mh@immerda.ch> | 2011-03-02 00:17:24 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-03-02 00:17:24 +0100 |
commit | 773279443f69f6f24facc83d82918cb9b76f8c79 (patch) | |
tree | a12f980da4e9f52b0e18feef68e004095ddc2c8d | |
parent | 838e27b934513306aed5ba15bdcc445d6e5e845c (diff) | |
parent | 3673e3872846a5d1d99d875091204e33d844e046 (diff) |
merge with sarava
-rw-r--r--[l---------] | files/configs/Debian/private/resource.cfg.amd64 | 32 | ||||
-rw-r--r-- | manifests/base.pp | 4 |
2 files changed, 33 insertions, 3 deletions
diff --git a/files/configs/Debian/private/resource.cfg.amd64 b/files/configs/Debian/private/resource.cfg.amd64 index 4d5f0a3..3ed732b 120000..100644 --- a/files/configs/Debian/private/resource.cfg.amd64 +++ b/files/configs/Debian/private/resource.cfg.amd64 @@ -1 +1,31 @@ -resource.cfg.i386
\ No newline at end of file +########################################################################### +# +# RESOURCE.CFG - Resource File for Nagios +# +# 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. +# +# The CGIs will not attempt to read the contents of resource files, so +# you can set restrictive permissions (600 or 660) on them. +# +# Nagios supports up to 32 $USERx$ macros ($USER1$ through $USER32$) +# +# 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/nagios/plugins + +# Sets $USER2$ to be the path to event handlers +#$USER2$=/usr/lib/nagios/plugins/eventhandlers + +# Store some usernames and passwords (hidden from the CGIs) +#$USER3$=someuser +#$USER4$=somepassword diff --git a/manifests/base.pp b/manifests/base.pp index d5feb32..8b96308 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -56,8 +56,8 @@ class nagios::base { file { 'nagios_private_resource_cfg': path => "${nagios::defaults::vars::int_nagios_cfgdir}/private/resource.cfg", - source => [ "puppet:///modules/nagios/configs/${operatingsystem}/private/resource.cfg.${architecture}", - "puppet:///modules/site-nagios/configs/${operatingsystem}/private/resource.cfg.${architecture}" ], + source => [ "puppet:///modules/site-nagios/configs/${operatingsystem}/private/resource.cfg.${architecture}", + "puppet:///modules/nagios/configs/${operatingsystem}/private/resource.cfg.${architecture}" ], notify => Service['nagios'], owner => root, group => nagios, mode => '0640'; } |