Eric Gerlach wrote: > On Fri, Jul 24, 2009 at 04:09:22PM -0700, Teyo Tyree wrote: >> On Fri, Jul 24, 2009 at 12:47 PM, Eric Gerlach >> <egerl...@feds.uwaterloo.ca>wrote: >> >>> Hi, >>> >>> I'm working with nagios, and if I'm de-configuring a server manually, I'd >>> like >>> to have the monitoring system not complain about it vanishing. >>> >>> So, for each host I have: >>> >>> @@nagios_host { "$fqdn": >>> use => "generic-host", >>> address => $fqdn, >>> contact_groups => "itstaff", >>> notify => Service["nagios3"] >>> } >>> >>> and then on the Nagios server I have: >>> >>> resources { "nagios_host": >>> purge => true, >>> notify => Service["nagios3"] >>> } >>> >>> Nagios_host <<| |>> >>> >>> If I don't have a notify on the resources entry, the nagios host entries go >>> away, but nagios doesn't refresh. If I have it on the resources entry, it >>> makes the service depend on it, and so won't purge: >>> >>> "Service[nagios3] still depends on me -- not purging" >>> >>> Is it possible to accomplish what I'm trying to do? If so, how? >> Eric the most straight forward mechanism is to purge all the resources >> associated with the host that is being decommissioned. There is a script to >> do this attached to the wiki page for storedconfigs. >> http://reductivelabs.com/trac/puppet/attachment/wiki/UsingStoredConfiguration/kill_node_in_storedconfigs_db.rb > > But if I do this, it still doesn't notify the nagios service, so it will > continue to monitor them (and complain to me that they're gone) until I > restart > it. So though that's a nice way to purge the DB, it doesn't really help my > problem.
Notify from the containing directory using "checksum => mtime". It'll change when a file is deleted from it. Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---