Hi,
Does SNMP V3 traps require different setup compared to SNMP V2?
Anyone can confirm this?
Thanks
Receiving SNMP V3 traps
Receiving SNMP V3 traps
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Receiving SNMP V3 traps
You need to configure snmptrapd to accept SNMPv3 traps or informs, add something like this to the bottom of your /etc/snmp/snmptrapd.conf:
For SNMPv3 informs:
Now restart snmptrapd:
You can then test it out from the command line and you should see it show up in /var/log/messages:
For SNMPv3 traps:
Now restart snmptrapd:
You can then test it out from the command line and you should see it show up in /var/log/messages:
Taken and adjusted from here:
- Read here for more information but you should only put any configuration in /etc/snmp/snmptrapd.conf (ignore the files listed in the guide).
http://www.net-snmp.org/wiki/index.php/ ... ifications
For SNMPv3 informs:
Code: Select all
createUser snmpv3informuser SHA 'authpass' AES 'privpass'
authUser log,execute,net snmpv3informuserCode: Select all
service snmptrapd restartCode: Select all
snmpinform -v 3 -u snmpv3informuser -a SHA -A authpass -x AES -X privpass -l authPriv localhost 42 coldStartCode: Select all
createUser -e 0x8000000001020304 snmpv3trapuser SHA 'authpass' AES 'privpass'
authUser log,execute,net snmpv3trapuserCode: Select all
service snmptrapd restartCode: Select all
snmptrap -v 3 -n "" -a SHA -A 'authpass' -x AES -X 'privpass' -l authPriv -u snmpv3trapuser -e 0x8000000001020304 localhost 0 coldStartTaken and adjusted from here:
- Read here for more information but you should only put any configuration in /etc/snmp/snmptrapd.conf (ignore the files listed in the guide).
http://www.net-snmp.org/wiki/index.php/ ... ifications
Re: Receiving SNMP V3 traps
Thanks ssax for the detailed help.
It is working fine using the test scripts.
You can close this up now.
It is working fine using the test scripts.
You can close this up now.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation