Sun GlassFish Enterprise Manager SNMP Monitoring 1.0 Reference

Configuring GlassFish SNMP Monitoring

Sun GlassFish Enterprise Manager SNMP Monitoring 1.0 Installation and Quick Start Guide describes how to change logging levels and the SNMP port using the command line. This section describes how to perform these tasks using the GlassFish Administration Console. It also describes additional ways to change the SNMP port number.

Changing the SNMP Port Number Using the Command Line or Deployment Descriptor

The default SNMP port number is 10161. If you want to monitor multiple individual server instances that exist on the same machine, the default port values may not work. You may need to change the SNMP port for these instances to avoid a port conflict.

You can override the default port value in several different ways, which are listed in order of precedence from highest to lowest:

See Configuring the Ports for some examples.

Changing the SNMP Port Number Using the GlassFish Administration Console

You can use the GlassFish Administration Console to change the server or cluster property snmp-adapter-port. You select the node for the appropriate server and/or cluster and provide a value for the snmp-adapter-port property. You may need to define the property if it is not already defined.

These tasks assume that you are already logged in to the Administration Console, as described in Admin Console in Sun GlassFish Enterprise Server 2.1 Administration Guide.

ProcedureTo Set the Port for a Stand-Alone Instance

  1. In the navigation tree, expand the Stand-Alone Instances node.

  2. Select the node for the instance whose SNMP port number you want to change (for example, standalone-instance1).

  3. On the page for the server instance, click the Properties tab.

  4. Click the Instance Properties tab.

  5. If the snmp-adapter-port property is in the Additional Properties list, specify the appropriate port number in the Value field, then go to step 7.

  6. If the snmp-adapter-port property is not in the Additional Properties list, perform these steps:

    1. Click Add Property.

    2. In the Name field, specify snmp-adapter-port.

    3. In the Value field, specify an appropriate port value.

  7. Click Save.

  8. Stop and restart the server.

ProcedureTo Set the Port for a Clustered Instance

  1. In the navigation tree, expand the Clusters node.

  2. Expand the node for the cluster whose cluster instance properties you want to change (for example, cluster1).

  3. Expand the node for the cluster instance whose SNMP port number you want to change (for example, clustered-instance1.

  4. On the page for the cluster instance, click the Properties tab.

  5. Click the Instance Properties tab.

  6. If the snmp-adapter-port property is in the Additional Properties list, specify the appropriate port number in the Value field, then go to step 8.

  7. If the snmp-adapter-port property is not in the Additional Properties list, perform these steps:

    1. Click Add Property.

    2. In the Name field, specify snmp-adapter-port.

    3. In the Value field, specify an appropriate port value.

  8. Click Save.

  9. Stop and restart the server.

ProcedureTo Set the Port for a Cluster

  1. In the navigation tree, expand the Clusters node.

  2. Expand the node for the cluster whose SNMP port number you want to change (for example, cluster1.

  3. On the page for the cluster, select the Properties tab.

  4. Select the Cluster Properties tab.

  5. If the snmp-adapter-port property is in the Additional Properties list, specify the appropriate port number in the Value field, then go to step 7.

  6. If the snmp-adapter-port property is not in the Additional Properties list, perform these steps:

    1. Click Add Property.

    2. In the Name field, specify snmp-adapter-port.

    3. In the Value field, specify an appropriate port value.

  7. Click Save.

  8. Stop and restart the server.

Changing the SNMP Logging Level Using the Administration Console

Changing the SNMP Logging Level in Sun GlassFish Enterprise Manager SNMP Monitoring 1.0 Installation and Quick Start Guide describes how to use the command line to change the logging level for the three SNMP loggers:

You can also use the Administration Console to change the logging level for these loggers.

ProcedureTo Change the Logging Level

  1. In the navigation tree, expand the Configurations node.

  2. Expand the node for the instance or cluster you want to configure.

  3. Select the Logger Settings node.

  4. On the Logger Settings page, select the Log Levels tab.

  5. If the logger whose level you want to change is in the Additional Properties list, specify the new level in the Value field, then go to step 7.

    The level may be any of the following: SEVERE, WARNING, INFO, CONFIG, FINE, FINER, and FINEST.

  6. If the logger whose level you want to change is not in the Additional Properties list, perform these steps:

    1. Click Add Property.

    2. In the Property field, specify the name of the logger.

    3. In the Value field, specify the level.

  7. Click Save.

    The change takes effect immediately.