Вопрос почему срабатывают оба правила, что не так с MATCH ?
snmptt.conf
EVENT eccGatewayEventTrap .1.3.6.1.4.1.1139.3.0.4 "eccGatewayEventTrap" Normal
FORMAT eccGatewayEventTrap, host=$r, severity=$s , val1=$1, val4=$4, val5=$5
MATCH MODE=and
MATCH $5: > 5
MATCH $4: !(Service Processor could not complete a call for service|Device configuration has changed)
EXEC /usr/lib/nagios/plugins/submit_check_result "$r" "snmp_traps" 0 "$4"
SDESC
Normal
EDESC
#
#
#
EVENT eccGatewayEventTrap .1.3.6.1.4.1.1139.3.0.4 "eccGatewayEventTrap" Critical
FORMAT eccGatewayEventTrap, host=$r, severity=$s , val1=$1, val4=$4, val5=$5
MATCH MODE=and
MATCH $5: < 6
MATCH $4: !(Service Processor could not complete a call for service|Device configuration has changed)
EXEC /usr/lib/nagios/plugins/submit_check_result "$r" "snmp_traps" 2 "$4"
SDESC
Critical
EDESC
snmptt.log
Wed Jun 14 13:09:37 2017 .1.3.6.1.4.1.1139.3.0.4 Normal "eccGatewayEventTrap" lnx280 - eccGatewayEventTrap, host=lnx280, severity=Normal , val1=977, val4=Symmetrix 000296700895 : Disk state is now Online (was: Offline). - Object is: ... , val5=8
Wed Jun 14 13:09:37 2017 .1.3.6.1.4.1.1139.3.0.4 Critical "eccGatewayEventTrap" lnx280 - eccGatewayEventTrap, host=lnx280, severity=Critical , val1=977, val4=Symmetrix 000296700895 : Disk state is now Online (was: Offline). - Object is ... , val5=8