VMware Cloud Community
jbaptiste_hyper
Contributor
Contributor

Associate a control action to an alert

Hi,

It's possible to run a control action when a given alert is triggered ? I would like to be able to automatically restart a process when it's CPU usage goes up 90% for a determined amount of time. As far as I can see, the Control action tab only permits to do an immediate action but not to associate it to an alert.

Message was edited by: jbaptiste
Reply
0 Kudos
7 Replies
jbaptiste_hyper
Contributor
Contributor

Found it on the review guide, unfortunately it's a feature of the enterprise version 😞
Reply
0 Kudos
BradFelmey
Hot Shot
Hot Shot

You can do this the poor man's way by having a script monitor an email drop box, and send an alert to that drop box. The script POPs, parses the message, and takes the appropriate action.

I do have to say that the Enterprise version is very slick in this regard. 🙂
jtravis_hyperic
Hot Shot
Hot Shot

jbaptiste,

You should see a 'control' section in your alert definition after you
create it. Try creating a new alert definition and look for that
section.

-- Jon



On Apr 8, 2007, at 11:44 PM, jbaptiste wrote:

> Hi,
>
> It's possible to run a control action when a given alert is met ? I
> would like to be able to automatically restart a process when it's
> CPU usage goes up 90% for a determined amount of time. As far as I
> can see, the Control action tab only permits to do an immediate
> action but not to associate it to an alert.
>



Reply
0 Kudos
jbaptiste_hyper
Contributor
Contributor

That must be in the enterprise version, not in the open source one.
Reply
0 Kudos
jbaptiste_hyper
Contributor
Contributor

> You can do this the poor man's way by having a script
> monitor an email drop box, and send an alert to that
> drop box. The script POPs, parses the message, and
> takes the appropriate action.
>

Do you have any example code of how to do this ?
Reply
0 Kudos
BradFelmey
Hot Shot
Hot Shot

Do you have any experience with procmail and basic shell scripting? If so, it's supremely trivial to do what you wish. I'll tailor my next response based upon your answer.
Reply
0 Kudos
jbaptiste_hyper
Contributor
Contributor

yes, I have a decent shell programming experience and a basic understanding of procmail.
Reply
0 Kudos