Hello guys

I have been distressed with the match configuration for my 1-wire sensor system.

so i may someone could help:

The snmptt.conf looks like this:

EVENT tempOWSERVER .1.3.6.1.4.1.31440.0.6 "Status Events" Testing
FORMAT Airflow
EXEC /usr/local/nagios/libexec/submit_check_result localhost "TempSnmp" 0 
"Aiflow is +$1"
#MATCH $+1:(1.3.6.1.4.1.31440.2.2.1.1.2:1)
MATCH $+1:(31440.2.2.1.1.6:1)
SDESC
ow-server alert
EDESC


EVENT tempOWSERVER .1.3.6.1.4.1.31440.0.6 "Status Events" Testing
FORMAT Aiflow
EXEC /usr/local/nagios/libexec/submit_check_result localhost "TempSnmp" 2 
"Aiflow is $+1"
MATCH $+1:(31440.2.2.1.1.6:2)
SDESC
ow-server alert
EDESC



For my opinion ....

the line
MATCH $+1:(31440.2.2.1.1.6:2)

ensures that an trap will be only send if the varaible $+1 match exaclty with  
the oid chain :   31440.2.2.1.1.6:2

and if i modify the line in the following way:

MATCH $+1:(31440.2.2.1.1.6:*)

All numbers or digits behind the 6 are vaild for the match .....

is this right or is the reg expression syntax completely wrong

i'm not so familar with the regex thing ..




regards john

















------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to