Alerting via SNMP TRAP
Install Prerequisites (skip that in case of Virtual Appliance)
- AIX
Download Net-SNMP packages and install them.
Do not use the latest packages for AIX, it does not work, use net-snmp-5.6.2.1-1!
It will not work with AIX standard OS cmd /usr/sbin/snmptrap!
# umask 0022
# rpm -Uvh net-snmp-5.6.2.1-1 net-snmp-utils-5.6.2.1-1 net-snmp-perl-5.6.2.1-1
Make sure
- you use PERL=/opt/freeware/bin/perl in etc/stor2rrd.cfg
- PERL5LIB in etc/stor2rrd.cfg contains /opt/freeware/lib/perl5/vendor_perl/5.8.8/ppc-thread-multi path
- Linux
# umask 0022
# yum install net-snmp
# yum install net-snmp-utils
# yum install net-snmp-perl
- Linux Debian/Ubuntu
% umask 0022
% apt-get install snmp libsnmp-perl snmp-mibs-downloader
Assure that this line is commented out in /etc/snmp/snmp.conf
#mibs :
If apt-get does not find snmp-mibs-downloader package then enable contrib and non-free repositories.
Configure alerting
Product UI ➡ Alerting ➡ Options ➡ SNMP Trap host
MIB
Here you can find MIB:
XORUX-MIB.txt
Trap examples
### TRAP 2016-12-19 14:37:10
192.168.1.1 40154 1 public lpar2rrdSendTrap.0.7
lpar2rrdHmcName : hmcXY
lpar2rrdServerName: serverXY
lpar2rrdLparName : lparXY
lpar2rrdAlertType : CPU
lpar2rrdValue : 9.9
### TRAP 2016-12-19 14:37:11
192.168.1.1 34113 1 public lpar2rrdSendTrap.0.7
lpar2rrdHmcName : hmcXY1
lpar2rrdServerName: serverXY
lpar2rrdLparName : lparXY
lpar2rrdAlertType : CPU
lpar2rrdValue : 9.9
Trap testing
You can test trap from cmd like (AIX example):
# export SNMP_PERSISTENT_DIR=/tmp
# /opt/freeware/bin/snmptrap -v 1 -c public 127.0.0.1 1.3.6.1.4.1.40540.1.0.1.0.7 '' 6 7 '' 1.3.6.1.4.1.40540.1.1 s hmcXY 1.3.6.1.4.1.40540.1.2 s serverXY 1.3.6.1.4.1.40540.1.3 s lparXY 1.3.6.1.4.1.40540.1.4 s 'CPU' 1.3.6.1.4.1.40540.1.5 s 9.9