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
- Linux
Follow this to get installed SNMP support in the tool on RHEL8 and CentOS8.
# 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 stor2rrdSendTrap.0.7
stor2rrdStorageName: storageXY
stor2rrdAlertType : io_rate
stor2rrdValue : 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.2.0.1.0.7 '' 6 7 '' 1.3.6.1.4.1.40540.1.2 s storageXY 1.3.6.1.4.1.40540.1.4 s 'io_rate' 1.3.6.1.4.1.40540.1.5 s 9.9