VMware Cloud Community
davidk_hyperic
Contributor
Contributor

Script to Create Platform Service and Alerts

Greetings,

Is it possible to create a platform service and/or an alert without going through the web interface?

In my case it's X number of web hosts, each running the red precious stone based app server, Y of them per host.

I am creating a platform HTTP service for each of them, as well as an alert when any of them go away.

Is it possible with a CLI tool?

Thank you,

David
0 Kudos
2 Replies
mcmesser
Hot Shot
Hot Shot

Under HQ 4.0 there is an approach via Groovy, but you do have to use the Groovy Console to execute the code:

http://support.hyperic.com/display/hypcomm/HQU+Create+HTTP+Snippet

If you truly need a CLI approach, HQ 4.1 and the new HQApi is your answer:

http://support.hyperic.com/display/DOC/HQ+Web+Services+API

HQ 4.1 is now in beta if you'd like to give it (and HQApi) a spin.

Thanks,
Marty
davidk_hyperic
Contributor
Contributor

Thank you Marty!

I have about 80 boxen in my prod configuration and using Groovy console to speed up service rollouts is very helpful.

Cheers,

David
0 Kudos