Configuring Resource Monitoring

To monitor a resource, there are two possibilities: either define monitor operation with the op keyword or use the monitor command. The following example configures an Apache resource and monitors it for every 30 minutes with the op keyword:

crm(live)configure# primitive apache apache \
  params ... \
  op monitor interval=60s timeout=30s

The same can be done with:

crm(live)configure# primitive apache apache \
   params ...
crm(live)configure# monitor apache 60s:30s