Issue #2302 has been reported by Pieter Barrezeele.

----------------------------------------
Bug #2302: Change the default target of the nagios_* native types to a separate 
file per resource
http://projects.reductivelabs.com/issues/2302

Author: Pieter Barrezeele
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Unknown
Affected version: 0.24.8
Keywords: 


Nagios native types accept a "target" parameter which defines the file the 
corresponding {check,host,command,*} definition ends up.
By default this target is based on the type of nagios resource you're creating, 
for instance /etc/nagios/nagios_service.cfg for all resources of type 
"nagios_service"

Puppet tends to slow down tremendously if you have lots of nagios_* resources.
I blogged about this at 
http://pieter.barrezeele.be/2009/05/11/puppet-and-nagios/ and added a FAQ entry 
(http://reductivelabs.com/trac/puppet/wiki/FrequentlyAskedQuestions#i-m-using-the-nagios-types-but-the-puppetrun-on-the-server-running-nagios-is-starting-to-take-ages)
 

But I think it makes more sense to change the default target for the nagios 
types as nagios supports cfg_dir as well as cfg_file anyway.

I would patch puppet/util/nagios_maker.rb so that the line

        target = "/etc/nagios/#{full_name.to_s}.cfg"

looks something like 

        target = "/etc/nagios/#{full_name.to_s}.d/#{_naginator_name}.cfg"

But unfortunately, the _naginator_name variable is not available at this level.

Any ideas?



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to