Re: Triggering an alert when repairs occur

2010-01-19 Thread Neil Watson
On Tue, Jan 19, 2010 at 02:25:24PM -0700, Justin Lloyd wrote: >Ah, you're doing it on a per-promise basis. I may do that for specific >promises, but I was wondering if there's any mechanism for having >cf-agent send an alert whenever any promise is repaired. For example AFAIK Nova has this functio

RE: Triggering an alert when repairs occur

2010-01-19 Thread Justin Lloyd
...@symcor.com] Sent: Tuesday, January 19, 2010 1:53 PM To: Justin Lloyd Cc: help-cfengine; help-cfengine-boun...@cfengine.org Subject: RE: Triggering an alert when repairs occur Something like this: files: "${trg}" perms => m( "${mod}" ),

RE: Triggering an alert when repairs occur

2010-01-19 Thread NWatson
Something like this: files: "${trg}" perms => m( "${mod}" ), action => warn_now, # Passive only at this point. classes => cdefine( "${trg}_mode_kept", "${trg}_mode_repaired", "${trg}_mode_failed"

RE: Triggering an alert when repairs occur

2010-01-19 Thread Justin Lloyd
ustin -Original Message- From: nwat...@symcor.com [mailto:nwat...@symcor.com] Sent: Tuesday, January 19, 2010 1:35 PM To: Justin Lloyd Cc: help-cfengine; help-cfengine-boun...@cfengine.org Subject: Re: Triggering an alert when repairs occur You can do this. I've done it myself.

Re: Triggering an alert when repairs occur

2010-01-19 Thread NWatson
You can do this. I've done it myself. However, you can overload yourself with useless alerts. e.g. ALERT: Cfengine doing it's job! Tongue in cheek to be sure but you get the point. It is however not a bad idea to log the repair, quietly. Sincerely, -- Neil Watson 416-673-3465 CONFIDENT

Triggering an alert when repairs occur

2010-01-19 Thread Justin Lloyd
Hi all, I'm still in my documentation and about to start our pilot phase of a Nova implementation, but I'm thinking about how to handle certain aspects of managing a Cfengine environment. One thing I would like to be able to do would be to create an alerting system any time a promise is repaire