VMware Cloud Community
BigBirdy
Contributor
Contributor

Generic Alerts for Identical Services?

Rather than having to individually create each alert for each server and service, is there a way to create a generic alert for ALL services, say for instance Availability, Disk Space etc? It would be nice to create an alert for any given Service Template (like disk space greater than 90%), so that when a new server is added, and that particular service is setup (File System Device), there is automatically an alert setup for those services? Or at least some way to create one alert and have it apply to all existing services.
0 Kudos
2 Replies
jtravis_hyperic
Hot Shot
Hot Shot

This type of feature is available through our Enterprise edition.

-- Jon



On Sep 25, 2007, at 6:09 PM, Johnny Stork wrote:

> Rather than having to individually create each alert for each
> server and service, is there a way to create a generic alert for
> ALL services, say for instance Availability, Disk Space etc? It
> would be nice to create an alert for any given Service Template
> (like disk space greater than 90%), so that when a new server is
> added, and that particular service is setup (File System Device),
> there is automatically an alert setup for those services? Or at
> least some way to create one alert and have it apply to all
> existing services.



0 Kudos
RobotLime
Contributor
Contributor

You can actually do this with the latest free version of Hyperic Server via the Hyperic Web Services API.  You will need to read (and re-read) the documentation here, but here's a free example from my own hard work (on Hyperic Server 4.6.6 COmmunity Edition):

hqapi1-client-5.0.0/bin/hqapi.sh alertdefinition create \

--prototype="FileServer Mount" \

--name "Disk Full" \

--assignEscalation "Default Escalation" \

--metric "Use Percent" \

--greaterthan 0.85 \

--priority 3 \

--willrecover \

--typeAlerts

This will create an alert for all filesystems

The magic switch is "--typeAlerts"; however, bear in mind that you will only be able to manage these generic alert definitions via the command line API.  Another way you can create this alert slightly less generically is to first create a group of the resources you want to apply an alert to (via the Web UI), and then run the above command replacing the --typeAlerts switch with --group "Group Name".

You can list these typeAlerts with

hqapi1-client-5.0.0/bin/hqapi.sh alertdefinition list --typeAlerts

and the child alert definitions Hyperic creates behind the scenes will show up in

hqapi1-client-5.0.0/bin/hqapi.sh alertdefinition list

However neither the parent nor child alerts will show in the Alert Center Definitions page.

0 Kudos