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?
>
> Cheers,
>
> --
> Eric Gerlach, Network Administrator
> Federation of Students
> University of Waterloo
> p: (519) 888-4567 x36329
> e: egerl...@feds.uwaterloo.ca
>
> >
>
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

Cheers,
Teyo

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to