Issue #2302 has been updated by Luke Kanies. Status changed from Unreviewed to Rejected
Nagios support has gotten much faster than it was (make sure you really are using 0.24.8 on your Nagios server), but the right approach is to make it faster yet, rather than having each resource in a separate file. And really, that's not going to make it much faster - you still have quite a bit of overhead. In the meantime, use naggen from #2304. ---------------------------------------- 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: Rejected 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 -~----------~----~----~----~------~----~------~--~---
