Sun GlassFish Enterprise Server v3 Prelude Administration Guide

Configuring Monitoring

By default, monitoring is not enabled for Enterprise Server components and services. When you set the monitoring level, you are enabling monitoring for that monitorable object. You can choose to leave monitoring off for objects that do not need to be monitored.

The following tasks are addressed here:

ProcedureTo Enable Monitoring

The set(1) command enables monitoring for Enterprise Server components and services. By setting the monitoring level to HIGH or LOW, you start monitoring for that service or component. For the Prelude release of Enterprise Server, there is no difference between the HIGH and LOW settings.

  1. Determine which services and components are currently enabled for monitoring.


    asadmin get server.monitoring-service.module-monitoring-levels.*
    

    The following example output shows that monitoring for the HTTP service is not enabled (OFF), but other objects are enabled:


    configs.config.server-config.monitoring-service.module-monitoring-levels.web-container=HIGH
           configs.config.server-config.monitoring-service.module-monitoring-levels.http-service=OFF
               configs.config.server-config.monitoring-service.module-monitoring-levels.jvm=HIGH 
  2. Enable monitoring for each service or component that you want to monitor.

    The following example command enables monitoring for the HTTP service by setting the monitoring level to HIGH:


    asadmin set server.monitoring-service.module-monitoring-levels.http-service=HIGH
    
See Also

To see the full syntax and options of the command, type asadmin set --help at the command line.

ProcedureTo Disable Monitoring

The set(1) command enables you to disable monitoring for Enterprise Server services and components.

  1. Determine which services and components currently are enabled for monitoring.


    asadmin get server.monitoring-service.module-monitoring-levels.*
    

    The following example output shows that monitoring is enabled for web-container, http-service, and jvm:


    configs.config.server-config.monitoring-service.module-monitoring-levels.web-container=HIGH
           configs.config.server-config.monitoring-service.module-monitoring-levels.http-service=HIGH
                  configs.config.server-config.monitoring-service.module-monitoring-levels.jvm=HIGH 
  2. Disable monitoring for a service or component that you do not want to monitor.

    The following example command disables monitoring for the HTTP service by setting the monitoring level to OFF:


    asadmin set server.monitoring-service.module-monitoring-levels.http-service=OFF
    
See Also

To see the full syntax and options of the command, type asadmin set --help at the command line.