Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
skyerjoe
Posts: 56 Joined: Thu Mar 22, 2012 2:57 am
Post
by skyerjoe » Fri Apr 08, 2016 4:46 am
Hello tgriep
Yes the basic snmptt definition will triggered the submit checkresult correctly .. so no problem with the basic trap definition
Btw. I have to restart snmpd also
But the ent value definition is the problem.
Here is the output from trapd in syslog with the trap with the additional value :
Code: Select all
2016-04-08 11:39:53 UDP: [xxx.16.9.138]:53831->[xxx.16.9.61]:162 [UDP: [xxx.16.9.138]:53831->[xxx.16.9.61]:162]:#012.1.3.6.1.2.1.1.3.0 = Timeticks: (0) 0:00:00.00#011.1.3.6.1.6.3.1.1.4.1.0 = OID: .1.3.6.1.4.1.31440.0.6#011.1.3.6.1.4.1.31440.2.2.1.1.5 = STRING: "2"
And the trap is no more showing in the snmptt unknown log i guess due to the main oid matching
best regards
Nagios Core 3.5.1
Checkmk 1.2.4p5
tgriep
Madmin
Posts: 9177 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Fri Apr 08, 2016 10:58 am
If the MATCH didn't match the data received exactly as it is specified, it will show up in the unknown log file.
Try editing the MATCH for that OID like below and see if it works for you.
Code: Select all
MATCH $1:.1.3.6.1.4.1.31440.2.2.1.1.5:2
or
Code: Select all
MATCH $1:.1.3.6.1.4.1.31440.2.2.1.1.5=2
Be sure to check out our
Knowledgebase for helpful articles and solutions!
skyerjoe
Posts: 56 Joined: Thu Mar 22, 2012 2:57 am
Post
by skyerjoe » Tue Apr 26, 2016 9:33 am
Hey Guys again
So i tried to find out the right Value but it won't be fit at all
I tried some several definitions:
MATCH $+1:.1.3.6.1.4.1.31440.2.2.1.1.5=1
MATCH $1:.1.3.6.1.4.1.31440.2.2.1.1.5=1
MATCH $1:.1.3.6.1.4.1.31440.2.2.1.1.5:1
MATCH $+1:.1.3.6.1.4.1.31440.2.2.1.1.5:1
I'm not really sure i this the right way for the adiitional value definition
See my defintions before and these ones are worked a long time till i had update to our ubuntu server.
Furthermore these are the Ent Values which comes from the ow-server to the smptt unkonwn log if i trigger our water altert components manually:
Ent Value 0: .1.3.6.1.4.1.31440.2.2.1.1.4=2 water sensor 1
Ent Value 0: .1.3.6.1.4.1.31440.2.2.1.1.4=1 water sensor 1
Ent Value 0: .1.3.6.1.4.1.31440.2.2.1.1.5=2 water sensor 2
Ent Value 0: .1.3.6.1.4.1.31440.2.2.1.1.5=1water sensor 2
regards john
Nagios Core 3.5.1
Checkmk 1.2.4p5
Box293
Too Basu
Posts: 5126 Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:
Post
by Box293 » Tue Apr 26, 2016 4:57 pm
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
skyerjoe
Posts: 56 Joined: Thu Mar 22, 2012 2:57 am
Post
by skyerjoe » Wed Apr 27, 2016 7:28 am
Try:
MATCH $1: 2
Hello Box293
thanks for helping
This one seems to work a litte bit bettter some triggered snmp traps will be processed.
But this match is not exactly enough.
The OID .1.3.6.1.4.1.31440.2.2.1.1.4 with the Value '2'
will be processed also
any more suggestions so far ?
regards john
Nagios Core 3.5.1
Checkmk 1.2.4p5
ssax
Dreams In Code
Posts: 7682 Joined: Wed Feb 11, 2015 12:54 pm
Post
by ssax » Wed Apr 27, 2016 3:48 pm
Try this:
Or this:
Code: Select all
MATCH $+1:(.1.3.6.1.4.1.31440.2.2.1.1.5:2)
skyerjoe
Posts: 56 Joined: Thu Mar 22, 2012 2:57 am
Post
by skyerjoe » Fri Apr 29, 2016 5:38 am
Hello Again
Again thanks for help
I Tired several traps Matches with these Defintion ( incl. all commented out matches which are listed below )
Code: Select all
EVENT wateralertOWSERVER .1.3.6.1.4.1.31440.0.6 "Status Events" Testing
FORMAT Water Status $+1
EXEC /usr/local/nagios/libexec/submit_check_result ow-server "Water Alert level 2" 2 "Water status is critical"
#MATCH $+1:.1.3.6.1.4.1.31440.2.2.1.1.5:2
#MATCH $+1:(31440.2.2.1.1.5:2)
# works :MATCH $1: 2
#MATCH $+1:(31440.2.2.1.1.5:2)
MATCH $+1:(.1.3.6.1.4.1.31440.2.2.1.1.5:2)
SDESC
ow-server alert
EDESC
The only one which works is the
Variable but these one is as i mentioned already too common and too much matches fits for the matching condition .
regards john
Nagios Core 3.5.1
Checkmk 1.2.4p5
ssax
Dreams In Code
Posts: 7682 Joined: Wed Feb 11, 2015 12:54 pm
Post
by ssax » Fri Apr 29, 2016 9:21 am
Looks like this is what works:
Code: Select all
MATCH $+1:(enterprises.31440.2.2.1.1.5:2)
It's translating the OID.
skyerjoe
Posts: 56 Joined: Thu Mar 22, 2012 2:57 am
Post
by skyerjoe » Tue May 03, 2016 5:30 am
Hello ssax
Unfortunately these Match leads also to an unknown trap
im not really sure . may i have to translate some oids or sth like that to reach the finish line
regards john
Nagios Core 3.5.1
Checkmk 1.2.4p5
ssax
Dreams In Code
Posts: 7682 Joined: Wed Feb 11, 2015 12:54 pm
Post
by ssax » Tue May 03, 2016 3:43 pm
Hmm, it works perfectly on mine.. please zip up and attach your /usr/share/snmp/mibs directory so I can lab this up.
Thank you