On Tue, 25 Feb 2014 09:01:43 -0800 (PST)
JonY <[email protected]> wrote:

> I'm trying to setup a nagios server via puppet to monitor the other
> servers in the group. I can get the various stored info from puppet
> db but when the *.cfg files are created in the nagios folder they are
> all root:root 0600. 
> 
> IE nagios can't read them.
> 
> I can work around this but I'm wondering if there is some config that
> I've missed.

I recall having the same problem. In fact, here's what I have in my own
nagios module :

  # Work around a puppet bug where created files are 600 root:root
  file { [
    '/etc/nagios/nagios_command.cfg',
    '/etc/nagios/nagios_contact.cfg',
    '/etc/nagios/nagios_contactgroup.cfg',
    '/etc/nagios/nagios_host.cfg',
    '/etc/nagios/nagios_hostdependency.cfg',
    '/etc/nagios/nagios_hostgroup.cfg',
    '/etc/nagios/nagios_service.cfg',
    '/etc/nagios/nagios_servicegroup.cfg',
    '/etc/nagios/nagios_timeperiod.cfg',
  ]:
    ensure => present,
    owner  => 'root',
    group  => 'nagios',
    mode   => '0640',
    before => Service['nagios'],
  }

Matthias

-- 
            Matthias Saou                  ██          ██
                                             ██      ██
Web: http://matthias.saou.eu/              ██████████████
Mail/XMPP:  [email protected]             ████  ██████  ████
                                       ██████████████████████
GPG: 4096R/E755CC63                    ██  ██████████████  ██
     8D91 7E2E F048 9C9C 46AF          ██  ██          ██  ██
     21A9 7A51 7B82 E755 CC63                ████  ████

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/20140225180713.5ce8b79d%40r2d2.marmotte.net.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to