NMIS is a powerful network management system which is open source and free for a highly capable tool.
Setup SNMP Trap Daemon
NMIS 8.4.1 has included some Cisco and Generic MIBS and added the ability to view the SNMP traps in the NMIS logging tool.
You will need to copy the options file to the right location and restart the daemon.
Code Block |
---|
cp /usr/local/nmis8/install/snmptrapd.options /etc/sysconfig/snmptrapd service snmptrapd restart |
You can test the MIB resolution with this command
Code Block |
---|
snmptranslate -m ALL -M /usr/local/nmis8/mibs/traps 1.3.6.1.4.1.9.9.43.1.1.6.1.5.34 |
Which should result in:
Code Block |
---|
CISCO-CONFIG-MAN-MIB::ccmHistoryEventConfigDestination.34 |
Configure a Cisco Router to Send Traps
If the IP address of your NMIS server is 192.168.1.7 and you want to use the community string public, these are the commands you need to send traps.
Code Block |
---|
snmp-server host 192.168.1.7 version 2c public |
or to use SNMP v2c Informs
Code Block |
---|
snmp-server host 192.168.1.7 informs version 2c public |
To enable all traps
Code Block |
---|
snmp-server enable traps |