Testing Trap With Linux Operating System: Difference between revisions
Testing Trap With Linux Operating System (view source)
Revision as of 11:53, 19 September 2019
, 19 September 2019no edit summary
No edit summary |
|||
Line 15: | Line 15: | ||
$ sudo apt-get install snmp-mibs-downloader | $ sudo apt-get install snmp-mibs-downloader | ||
'''Important note:''' before continuing make sure that SNMP Trap package is configured. SNMP configuration example can be found | '''Important note:''' before continuing make sure that SNMP Trap package is configured. SNMP configuration example can be found [[SNMP configuration example | here]]. | ||
==Editing configuration files== | ==Editing configuration files== | ||
Line 77: | Line 77: | ||
MIB file will be used to translate OID codes to more readable format. | MIB file will be used to translate OID codes to more readable format. | ||
If you dont have the MIB file, download it from SNMP packge WebUI window [[SNMP configuration example#SNMP Configuration]] | If you dont have the MIB file, download it from SNMP packge WebUI window, example [[SNMP configuration example#SNMP Configuration | here]] | ||
After downloading the MIB file, place it in ''' ''/usr/share/snmp/mib'' ''' directory, you can use this command: | After downloading the MIB file, place it in ''' ''/usr/share/snmp/mib'' ''' directory, you can use this command: | ||
Line 129: | Line 129: | ||
==Testing if SNMP Trap listening service works== | ==Testing if SNMP Trap listening service works== | ||
First make sure that SNMP Trap package has Trap rules configured in order to test if listening service works correctly. More information | First make sure that SNMP Trap package has Trap rules configured in order to test if listening service works correctly. More information [[SNMP configuration example#Trap Configuration | here]] | ||
If any Trap was triggered, you can check, if Trap message was caught and logged. Check service '''status''' to see if any connections were established. | If any Trap was triggered, you can check, if Trap message was caught and logged. Check service '''status''' to see if any connections were established. |