help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warn when killing blacklisted processes


From: Russell Adams
Subject: Re: warn when killing blacklisted processes
Date: Thu, 26 Aug 2004 12:25:08 -0500
User-agent: Mutt/1.4.2.1i

Quote me if you like. It was all from Monty Python. ;]

You most likely don't want to use the second alert, because you don't
want to be alerted every time a process was not killed. 

Russell

On Thu, Aug 26, 2004 at 07:08:25PM +0200, Mike Gabriel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> hi russel,
> 
> this one's cool. may i quote you in our configs...?
> 
> cheers mate,
> mike
> 
> ps: but with your code, any non-present psybnc process that did not get slain 
> would also be considered invincible. which might also be true from a certain 
> perspective... *g*
> 
> On Thursday 26 August 2004 18:54, Russell Adams wrote:
> > I think this is close to what you want.
> >
> > processes:
> >
> >   linux::
> >
> >     "psybnc" signal=kill define=KilledPsybnc
> >
> > alerts:
> >
> >   KilledPsybnc::
> >
> >     "I have valiantly slain a process in your honor."
> >
> >   !KilledPsybnc::
> >
> >     "I'm the Black Process! I'm INVINCIBLE!"
> >
> > Russell
> >
> > On Thu, Aug 26, 2004 at 06:35:33PM +0200, Mike Gabriel wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > hi there,
> > >
> > > another question:
> > >
> > > is it possible to send a mail-warning if a processed gets killed by
> > > cfengine?
> > >
> > > the cf_code is:
> > >
> > > <snip>
> > > # cf.process_blacklist
> > >
> > > #
> > > # POLICY for cf.process_blacklist
> > > #
> > > #   o kill any of the following processes if detected on the system
> > > #
> > >
> > > control:
> > >
> > >   actionsequence = ( processes )
> > >
> > > processes:
> > >
> > >   linux::
> > >
> > >     "psybnc" signal=kill
> > >
> > > </snip>
> > >
> > > whenever psybnc is started, i want it killed and i want cfengine to tell
> > > me... any clues?
> > >
> > > thanks a lot!!!
> > > mike
> > >
> > > - --
> > >
> > > network administration, ecology centre, kiel university, germany
> > > Mike Gabriel, olshausenstr 75, 24118 kiel, germany
> > >
> > > fon-work: +49 431 880-1186
> > > fon-home: +49 431 6474196
> > > mail: mgabriel@ecology.uni-kiel.de
> > > www: http://www.ecology.uni-kiel.de, http://zope.ecology.uni-kiel.de
> > >
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: GnuPG v1.2.4 (GNU/Linux)
> > >
> > > iD8DBQFBLhFVpoJgRMI6HfERAoxVAJ9a5+rXuwT7iZygWw6+YuHWg9bZtgCfWNal
> > > togFamU6+LqbGkchFmLgmFY=
> > > =0Lzu
> > > -----END PGP SIGNATURE-----
> > >
> > >
> > > _______________________________________________
> > > Help-cfengine mailing list
> > > Help-cfengine@gnu.org
> > > http://lists.gnu.org/mailman/listinfo/help-cfengine
> >
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@gnu.org
> > http://lists.gnu.org/mailman/listinfo/help-cfengine
> 
> - -- 
> 
> network administration, ecology centre, kiel university, germany
> Mike Gabriel, olshausenstr 75, 24118 kiel, germany
> 
> fon-work: +49 431 880-1186
> fon-home: +49 431 6474196
> mail: mgabriel@ecology.uni-kiel.de
> www: http://www.ecology.uni-kiel.de, http://zope.ecology.uni-kiel.de
>      
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> 
> iD8DBQFBLhkJpoJgRMI6HfERAqtLAJ993ZwyUYj1CV6xVkUF5nhVXkkRWACeIgf3
> vXvJChLHIse9cacGPh3ilro=
> =ZjsW
> -----END PGP SIGNATURE-----
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine




reply via email to

[Prev in Thread] Current Thread [Next in Thread]