Using the Event Monitoring Service (November 1999)

Contents
3
1. Understanding the Event Monitoring Service
Event Monitoring Service Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
EMS Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
EMS Resource Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Client and Target Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
EMS with ServiceGuard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
EMS GUI Client Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
EMS and Target Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
Resource Monitors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
Installing Resource Monitors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
Configuring Resource Monitors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
Writing Resource Monitors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
EMS Framework Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
The EMS API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
The registrar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
The Resource Dictionary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
2. Selecting Resources to Monitor
Starting the Event Monitoring Service . . . . . . . . . . . . . . . . . . . . . . . . . .28
Selecting Resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
Viewing Resource Descriptions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
3. Defining a Monitoring Request
Starting a Monitoring Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
Specifying When to Send Event Notifications . . . . . . . . . . . . . . . . . . . . .37
Setting the Polling Interval. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
Setting Event Value Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40