Monitoring SNMP Traps
To view the measures pertaining to SNMP traps, do the following:
- Login to the eG monitor interface as supermonitor.
- Follow the Hosts/Applications -> Components menu sequence.
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.
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.
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:
- Edit the eg_external.ini file in the <EG_INSTALL_DIR>\manager\config directory.
- In the [misc] section of the file, set the ExpandMib flag to true.
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:
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.
- Finally, save the file.