help-cfengine
[Top][All Lists]
Advanced

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

Re: Question on alerts


From: Chris Kacoroski
Subject: Re: Question on alerts
Date: Wed, 01 Sep 2004 09:30:56 -0700
User-agent: Mozilla Thunderbird 0.7.3 (Macintosh/20040803)

Mark,

The process is amd and when I tried to restart is automatically some people were still in the directories and the restart managed to hang teh machines pretty good. I only run it on a few machines so it is no problem for me to restart it by hand (assuring everyone is out of the amd managed directories). That said, I still had no luck. My config file looks like:

control:
  actionsequence = ( copy.amdcopy processes.amdprocs )
  AddClasses = ( ExecResult(/usr/local/scripts/amdmachines) )
  AddInstallable = ( amd restart_amd )

alerts:
  amd.restart_amd::
    "Please restart amd on me as the config files have changed"

I test it with:

[ski2:/var/cfengine/inputs] root# /usr/local/sbin/cfagent -IqK -Drestart_amd
cfengine:ski2: Please restart amd on me as the config files have changed

but I do not get any email.

Thanks for your help.

ski



Mark.Burgess@iu.hio.no wrote:

1) Alerts have to be inside a class. Make sure that class is in
AddInstallable else the rule might not be seen.

2) Why don't you just get cfengine to restart the process?

M

On 31 Aug, Chris Kacoroski wrote:

Hi,

I am trying to have cfengine send me a reminder to restart a process by hand when a config file changes. When I run cfagent -IqK I see the alert in the output, but I am not emailed anything. I get emails for errors, but not alerts. Any way to make alerts be "urgent messages" so they will show up in emails like errors do?

cheers,

ski





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


--
"When we try to pick out anything by itself, we find it
  connected to the entire universe"                John Muir

Chris "Ski" Kacoroski, ckacoroski@nsd.org, 425-489-6263



reply via email to

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