Graham Stratton
2009-Apr-02 07:34 UTC
[Puppet Users] Nagios resources create files unreadable by Nagios
Hi all, I''m using Puppet 0.24.7 with exported resources to configure Nagios 3 on Debian Lenny. The problem is that when Puppet creates new files they have permissions -rw------- , which means that Nagios can''t read them. Does anyone else have this setup? Thanks, Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Rolfs
2009-Apr-02 11:57 UTC
[Puppet Users] Re: Nagios resources create files unreadable by Nagios
Graham Stratton wrote:> I''m using Puppet 0.24.7 with exported resources to configure Nagios 3 > on Debian Lenny. The problem is that when Puppet creates new files > they have permissions -rw------- , which means that Nagios can''t read > them. > > Does anyone else have this setup?I don''t have the setup you describe. I might want it laiter. I''ve seen modules for puppet to configure nagios or add hosts to zenoss. You can modify the file access with something like below. Where did you get your nagios module from? file { "/path/to/file": mode => 0744, owner => root, group => root; } Regards, Rolf --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Scott
2009-Apr-13 15:38 UTC
[Puppet Users] Re: Nagios resources create files unreadable by Nagios
Graham, I''ve asked about this exact issue and never got a real response. It doesn''t make any sense at all for these files to be mode 600 but the only way around this is to create an exec that chmods all the files every time a new nagios file is created and make sure that exec is run after any nagios files are created. It''s really much more difficult than it should be. Scott On Apr 2, 1:57 pm, Rolfs <goo...@krev.no> wrote:> Graham Stratton wrote: > > I''m using Puppet 0.24.7 with exported resources to configure Nagios 3 > > on Debian Lenny. The problem is that when Puppet creates new files > > they have permissions -rw------- , which means that Nagios can''t read > > them. > > > Does anyone else have this setup? > > I don''t have the setup you describe. I might want it laiter. I''ve seen > modules for puppet to configure nagios or add hosts to zenoss. You can > modify the file access with something like below. Where did you get > your nagios module from? > > file { > "/path/to/file": > mode => 0744, owner => root, group => root; > } > > Regards, > Rolf--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
James Turnbull
2009-Apr-14 03:16 UTC
[Puppet Users] Re: Nagios resources create files unreadable by Nagios
Have you logged a bug for this then? Regards James Turnbull On 13/04/2009, at 10:38 PM, Scott <scott.br@gmail.com> wrote:> > Graham, I''ve asked about this exact issue and never got a real > response. It doesn''t make any sense at all for these files to be mode > 600 but the only way around this is to create an exec that chmods all > the files every time a new nagios file is created and make sure that > exec is run after any nagios files are created. > > It''s really much more difficult than it should be. > > Scott > > On Apr 2, 1:57 pm, Rolfs <goo...@krev.no> wrote: >> Graham Stratton wrote: >>> I''m using Puppet 0.24.7 with exported resources to configure >>> Nagios 3 >>> on Debian Lenny. The problem is that when Puppet creates new files >>> they have permissions -rw------- , which means that Nagios can''t >>> read >>> them. >> >>> Does anyone else have this setup? >> >> I don''t have the setup you describe. I might want it laiter. I''ve >> seen >> modules for puppet to configure nagios or add hosts to zenoss. You >> can >> modify the file access with something like below. Where did you get >> your nagios module from? >> >> file { >> "/path/to/file": >> mode => 0744, owner => root, group => root; >> } >> >> Regards, >> Rolf > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Scott
2009-Apr-14 22:09 UTC
[Puppet Users] Re: Nagios resources create files unreadable by Nagios
James, thanks for the suggestion: http://projects.reductivelabs.com/issues/2158 Cheers, Scott On Apr 14, 5:16 am, James Turnbull <ja...@lovedthanlost.net> wrote:> Have you logged a bug for this then? > > Regards > > James Turnbull > > On 13/04/2009, at 10:38 PM, Scott <scott...@gmail.com> wrote: > > > > > Graham, I''ve asked about this exact issue and never got a real > > response. It doesn''t make any sense at all for these files to be mode > > 600 but the only way around this is to create an exec that chmods all > > the files every time a new nagios file is created and make sure that > > exec is run after any nagios files are created. > > > It''s really much more difficult than it should be. > > > Scott > > > On Apr 2, 1:57 pm, Rolfs <goo...@krev.no> wrote: > >> Graham Stratton wrote: > >>> I''m using Puppet 0.24.7 with exported resources to configure > >>> Nagios 3 > >>> on Debian Lenny. The problem is that when Puppet creates new files > >>> they have permissions -rw------- , which means that Nagios can''t > >>> read > >>> them. > > >>> Does anyone else have this setup? > > >> I don''t have the setup you describe. I might want it laiter. I''ve > >> seen > >> modules for puppet to configure nagios or add hosts to zenoss. You > >> can > >> modify the file access with something like below. Where did you get > >> your nagios module from? > > >> file { > >> "/path/to/file": > >> mode => 0744, owner => root, group => root; > >> } > > >> Regards, > >> Rolf--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---