Re: [Puppet-dev] Comparing new Fact values to previous ones

2012-08-26 Thread James Turnbull
Michael Stahnke wrote: > I had a hair-brained idea for a while to expose fact values via SNMP, > but I never went anywhere with it. > > (I realize this is tangental, but it reminded me of it) > I wrote some code to do that - a little "fact server" that outputted facts as JSON and allowed SNMP qu

Re: [Puppet-dev] Comparing new Fact values to previous ones

2012-08-24 Thread Andy Parker
I was just thinking that if you are looking for a fact that changes, then you just write a script for nagios (or whatever your monitoring system is) that can check for fact changes. You'll have to have some sort of baseline that it is checking against and then the script would run facter and check

Re: [Puppet-dev] Comparing new Fact values to previous ones

2012-08-24 Thread Michael Stahnke
On Fri, Aug 24, 2012 at 1:53 PM, Kent Shultz wrote: > I'd rather have the monitoring solution collect incoming facts that are > already coming to a central location rather than reaching out to the nodes. > I suppose a cronjob on the nodes could run facter, but still it seems > redundant since Fact

Re: [Puppet-dev] Comparing new Fact values to previous ones

2012-08-24 Thread Kent Shultz
I'd rather have the monitoring solution collect incoming facts that are already coming to a central location rather than reaching out to the nodes. I suppose a cronjob on the nodes could run facter, but still it seems redundant since Facter gets executed along with each Puppet run. Also, I plan

Re: [Puppet-dev] Comparing new Fact values to previous ones

2012-08-24 Thread Andy Parker
Wouldn't having your monitoring tool watch the output of `facter ` on the nodes that are being monitored achieve what you are looking for? That seems like it would be a pretty straightforward and uncomplicated way of doing this. On Thu, Aug 23, 2012 at 7:09 PM, Kent Shultz wrote: > EDIT: > > ”Id

[Puppet-dev] Comparing new Fact values to previous ones

2012-08-23 Thread Kent Shultz
EDIT: ”Id like to know the best way to collect new/incoming Fact values for a node and compare it to old/previous values (i.e. from a node making a puppet run)” I meant the last parenthetical bit to come after ”new/incoming fact values” -- You received this message because you are subscribed

[Puppet-dev] Comparing new Fact values to previous ones

2012-08-23 Thread Kent Shultz
Hello, I'd like to know the best way to collect new/incoming Fact values for a node and compare it to old/previous values (i.e. from a node making a puppet run). My thinking is that the new values need to be intercepted before they are stuffed into PuppetDB (or /var/lib/puppet/yaml/facts/.yaml