Red Hat Training

A Red Hat training course is available for Red Hat JBoss Operations Network

7.2. Migrating SNMP Settings

The SNMP settings for the server (unlike other server settings) are not migrated with the other server settings. These settings have to be restored manually after migration, and there are two ways to do this:
  • Run a SQL command to copy the settings from the database table for the old server instance into the table for the new instance.
  • Set the SNMP settings in the JBoss ON GUI.

7.2.1. Running SQL Commands to Migrate the SNMP Settings

  1. Open the administrative page, with the location admin/test/sql.jsp. For example:
    http://server.example.com:7080/admin/test/sql.jsp
  2. Run the command to migrate the SNMP settings:
    select property_key,property_value from RHQ_SYSTEM_CONFIG where property_key like 'SNMP%';
  3. Click the Execute SQL button.
  4. Reconfigure all of the SNMP alert notification senders.

7.2.2. Configuring SNMP Settings in the GUI

Note

Take a screenshot of the SNMP settings before beginning the upgrade procedure, so that the image is available as a reference to re-do the SNMP settings.
  1. In the top menu, click the Administration tab.
  2. In the Configuration box on the left navigation bar, click the Plugins link.
  3. Click the Server Plugins tab.
  4. Click the name of the SNMP plug-in in the list.
  5. In the plug-in details page, click the Configure 'Alert:SNMP' link to open the configuration page for the plug-in.
  6. Click the EDIT button at the bottom of the configuration screen to make the fields active.
  7. All SNMP versions require the JBoss ON MIB OID (1.3.6.1.4.1.18016.2.1) and selected version, plus optional information to access the trap. Expand the version-specific configuration section and fill in the information about the SNMP agent.
  8. Once SNMP is set up for the server, reconfigure all of the SNMP alert notification senders.