Monitoring SNMP Traps

To view the measures pertaining to SNMP traps, do the following:

  1. Login to the eG monitor interface as supermonitor.
  2. Follow the Hosts/Applications -> Components menu sequence.
  3. From the component list page that appears, click on the component to which the Network Traps test or Application Traps test is mapped. Figure 1 will then appear.

    Figure 1 : Measures pertaining to Network Traps test

  4. If detailed diagnosis has been enabled for the test, then click on the ‘magnifying glass’ icon against the measure name in Figure 1. This will reveal the details reported by the SNMP agent via traps – the details include the time at which the SNMP trap was received, the IP address of the trap sender, the trap type, and the contents of the trap. If the showoid parameter is set to true, then the contents of the trap (i.e., the Trap Details column) will display the OID and its value (see Figure 2). If the flag is set to false instead, only the values will be displayed in the Trap details column and not the OIDs.

    Figure 2 : The detailed diagnosis of the NetworkTraps test

Note:

For more clarity, you might want the OIDs displayed in the detailed diagnosis to be replaced by their corresponding object names. To ensure this, you first need to upload the SNMP MIB files of all those applications/devices from which traps are to be received, to the eG manager. The procedure for uploading MIB files to the eG manager is detailed in Section 1.6 below.

After the upload is complete, do the following:

  1. Edit the eg_external.ini file in the <EG_INSTALL_DIR>\manager\config directory.
  2. In the [misc] section of the file, set the ExpandMib flag to true.
  3. Then, make sure that the tests reporting the trap details are available in the [SNMP_Tests] section of the file. If not, enter the ‘internal names’ of these tests in that section. For instance, to ensure that the detailed diagnosis of the NetworkTraps test and the ApplicationTraps test converts OIDs into corresponding object names, include the internal names of these two tests – i.e., NetworkTrapTest and AppTrapTest – in the [SNMP_Tests] section in the following format:

    SNMP_Tests] 

    NetworkTrapTest=yes

    AppTrapTest=yes

    To know the internal test names, refer to the eg_lang*.ini file in the <EG_INSTALL_DIR>\manager\config, where * is the language code that represents the language preference that you have set using the USER PROFILE page. In this file, the component types, measure names, test names, layer names, measure descriptions, and a wide range of other display information are expressed in a particular language, and are mapped to their eG equivalents. Search the file for the test of interest to you. For instance, to know the internal name for the Processes test, search the [TEST_NAME_MAPPING] section of the file for Processes. This will reveal the internal test name that maps to Processes.

  4. Finally, save the file.