On Wednesday, February 4, 2015 at 5:41:50 AM UTC-6, kashif wrote: > > Hi > > I am using puppetdb and exported resource to manage autmatic nagios > setup. It works very well. Now I want to setup another nagios server for > another set of machines using same puppetdb and puppet master. > As for I understand, a client exports @@nagios_host and nagios server > collect it by Nagios_host <<| |>> > > I want some Nagios_host to be collected by different nagios server. Is it > possible ? I was thinking about 'tag' but am not sure how to use with > exported resources. > >
Ken already gave a practical answer. I want to add that the idea of "exporting to a particular host" his wrong thinking. You cannot do that -- it is inherent in the nature of exported resources that each is available for import by any node. What you *can* do, as Ken demonstrated, is associate data with your exported resources that allows collectors to be appropriately selective about which to collect. More generally, it is valuable for maintenance and flexibility of your site configuration for your declarations to be *de*scriptive rather than *pre*scriptive. That is, you should declare the characteristics of your resources (such as that they are members of certain groups) rather than their intended use (such as that they be collected by a specific Nagios server). The use follows from the characteristics; it is not the primary consideration. John -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/53d386e3-2eb1-4633-bcf7-f885ba1a1c6f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.