Configure alarms

Use the gasadmin command to configure monitoring alarms for Web services running on the GAS.

Configure alarms by session id or service name using the gasadmin monitoring update --set-alarm <alarm_type> command. To view the list of available alarms, see Display available alarms and GAS monitoring alarms reference.

  • This example configures the "DVM not started" alarm for a session.

    gasadmin monitoring update --set-alarm DVM_NOT_STARTED --session d98290172c8f7c0d861db329f1ce6597

    The configuration takes effect immediately. The configuration is lost if the gwsproxy stops. The session must be running to set configuration.

  • This example configures the "DVM not started" alarm for a service.

    gasadmin monitoring update --set-alarm DVM_NOT_STARTED --service demo/Calculator

    The configuration does not affect a running service. The configuration takes effect the next time the service is started. Regardless of whether the service is running, the configuration can be set.