VMware Cloud Community
hypermike
Contributor
Contributor
Jump to solution

Can someone supply me with a groovy script to do a simple alert for anythin

Can someone supply me with a simple roovy script that can be used to craete a alert for some data threshold .. I just need a simple script that I could use to define my own script.
down the line .

I dont know groovy and I am NOT a java person. So learning groovy is really hard for me.
0 Kudos
1 Solution

Accepted Solutions
jvalkeal_hyperi
Jump to solution

Fixed that deploy dir link:
{JBOSS_HOME}/server/default/deploy/hq.ear/hq.war/hqu

View solution in original post

0 Kudos
8 Replies
jvalkeal_hyperi
Jump to solution

Have you seen my HQU admin helper plugin to clone/sync alerts?

http://support.hyperic.com/display/hypcomm/HQU+Admin+Helper

Cloning is done through groovy, but to create simple script to create alert definitions is a really tough job. At least if you want script to be intelligent. It's much easier to use existing alert definitions for cloning, that create alert definition from scratch.
admin
Immortal
Immortal
Jump to solution

Hi Mike,

Another option is to use the alertdefinition command delivered as part of the CLI we are delivering with HQApi in HQ 4.1. That release is still a couple weeks away, but I think it should do exactly what you need.

http://support.hyperic.com/display/EXT/HQApi+alertdefinition+command

-Ryan
hypermike
Contributor
Contributor
Jump to solution

THanks this might do what I need..
0 Kudos
hypermike
Contributor
Contributor
Jump to solution

Thanks .. We might just upgrade to 4.1 . We are currently at 4.0.3 Open source version.
Again thanks for taking time to reply..!!!
0 Kudos
hypermike
Contributor
Contributor
Jump to solution

I downloaded the tar file .. Where do I extract it to .Do I have to put this is Hyperic servers
HOME directory ?? before extracting ?
0 Kudos
hypermike
Contributor
Contributor
Jump to solution

Can you tell me how I install this helper plugin or where I can find instructions!!.
0 Kudos
excowboy
Virtuoso
Virtuoso
Jump to solution

> Can you tell me how I install this helper plugin or
> where I can find instructions!!.

Mike,

http://support.hyperic.com/display/hypcomm/HQU+Deployment+and+Creating+Attachments

"Where pinger is the name of the plugin. Internally, all this does is copy ui_plugins/pinger to {JBOSS_HOME}/server/default/deploy/hq.war/hq.war/hqu"


Cheers,
0 Kudos
jvalkeal_hyperi
Jump to solution

Fixed that deploy dir link:
{JBOSS_HOME}/server/default/deploy/hq.ear/hq.war/hqu
0 Kudos