Need some help with an Snmp Entry.
Re: Need some help with an Snmp Entry.
Hello ssax,
Attached this are the mib files from the Directory
But when i use the oid number i thought the mibs arent really necessary
regards john
Attached this are the mib files from the Directory
But when i use the oid number i thought the mibs arent really necessary
regards john
- Attachments
-
- snmpt.tar
- (11.8 KiB) Downloaded 405 times
Nagios Core 3.5.1
Checkmk 1.2.4p5
Checkmk 1.2.4p5
Re: Need some help with an Snmp Entry.
Is that literally everything in your /usr/share/snmp/mibs directory? If so, you are missing all of the default MIBs.
Re: Need some help with an Snmp Entry.
Do i need the Default MIB's if my match is based only on the OID NumberIs that literally everything in your /usr/share/snmp/mibs directory? If so, you are missing all of the default MIBs.
regards skyerjoe
Nagios Core 3.5.1
Checkmk 1.2.4p5
Checkmk 1.2.4p5
Re: Need some help with an Snmp Entry.
No, you shouldn't if you are using the full OID.
Please run these commands and post the entire output:
Wait a couple seconds, then run:
Please run these commands and post the entire output:
Code: Select all
service snmptt stop
snmptrap -v2c -cpublic 127.0.0.1 1431439518 .1.3.6.1.4.1.31440.0.6 .1.3.6.1.4.1.31440.2.2.1.1.5 i 2
Code: Select all
cat /var/spool/snmptt/*
service snmptt start
Re: Need some help with an Snmp Entry.
The output from the Cat command:
I think this is stil in place and correct
If i start snmptt and do it again the spooler is empty
Is also correct so far or ?
regards john
Code: Select all
1462963749
127.0.0.1
UDP: [127.0.0.1]:37000->[127.0.0.1]
.1.3.6.1.2.1.1.3.0 165:16:13:15.18
.1.3.6.1.6.3.1.1.4.1.0 .1.3.6.1.4.1.31440.0.6
.1.3.6.1.4.1.31440.2.2.1.1.5 2
If i start snmptt and do it again the spooler is empty
Is also correct so far or ?
regards john
Nagios Core 3.5.1
Checkmk 1.2.4p5
Checkmk 1.2.4p5
Re: Need some help with an Snmp Entry.
Yes, here is mine with the default MIBs installed:
You can see why I had to change mine as enterprises.31440.2.2.1.1.5
So MATCH $+1:(.1.3.6.1.4.1.31440.2.2.1.1.5:2) should have worked.
Please try this one (removed the first period):
Code: Select all
1462980620
localhost
UDP: [127.0.0.1]:34411->[127.0.0.1]
DISMAN-EVENT-MIB::sysUpTimeInstance 165:16:13:15.18
SNMPv2-MIB::snmpTrapOID.0 SNMPv2-SMI::enterprises.31440.0.6
SNMPv2-SMI::enterprises.31440.2.2.1.1.5 2
So MATCH $+1:(.1.3.6.1.4.1.31440.2.2.1.1.5:2) should have worked.
Please try this one (removed the first period):
Code: Select all
MATCH $+1:(1.3.6.1.4.1.31440.2.2.1.1.5:2)
Re: Need some help with an Snmp Entry.
Hello Everybody
Yes i know the thread is a little bit old but the error is still present...
@ssax:
I tried this also but this doesn't working anymore:
Tried also this without brackets ....
In think i have to try out a really simple trigger which has an binding maybe there is some ... Schema or sth. like that changed in an snmptt version ... so i think i need an more basic value with an basic Varable Binding
Any ideas ?
reagards john
Yes i know the thread is a little bit old but the error is still present...
@ssax:
I tried this also but this doesn't working anymore:
Code: Select all
MATCH $+1:(1.3.6.1.4.1.31440.2.2.1.1.5:2)
In think i have to try out a really simple trigger which has an binding maybe there is some ... Schema or sth. like that changed in an snmptt version ... so i think i need an more basic value with an basic Varable Binding
Any ideas ?
reagards john
Nagios Core 3.5.1
Checkmk 1.2.4p5
Checkmk 1.2.4p5
Re: Need some help with an Snmp Entry.
Try to add all of these to your singe trap definition, when you have multiple MATCH statements on a single trap definition it acts as an OR statement to see if it meets the criteria (this is modifiable through other SNMPTT options):
Also, please check all files in /etc/snmp and /usr/share/snmp/mibs/processed_mibs to make sure you don't have any duplicate definitions.
Thank you
Code: Select all
MATCH $+1:(.1.3.6.1.4.1.31440.2.2.1.1.5:2)
MATCH $+1:(1.3.6.1.4.1.31440.2.2.1.1.5:2)
MATCH $+1:(enterprises.31440.2.2.1.1.5)
Thank you
Re: Need some help with an Snmp Entry.
Hello ssax
I set all 3 Matches and running against the snmp services.
I checked /etc/snmp and in the snmptt.ini is no double entry for the confile
Only these 2 lines :
In the Directory /usr/share/snmp/mibs/processed_mibs they're no mibs at all
The Traps are still only coming in the unknown snmp section:
The xxx Values are just ip's
... Either there is some big mistake in an configuration or my System is kaput in any way
regards john
I set all 3 Matches and running against the snmp services.
I checked /etc/snmp and in the snmptt.ini is no double entry for the confile
Only these 2 lines :
Code: Select all
/etc/snmp/snmptt.conf.generic
/etc/snmp/snmptt.conf.owserverwatertest1line ( this is the one i use )
The Traps are still only coming in the unknown snmp section:
Code: Select all
Thu Aug 25 15:42:54 2016: Unknown trap (.1.3.6.1.4.1.31440.0.6) received from xxx.xxx.xxx.xxx at:
Value 0: xxx.xxx.xxx.xxx
Value 1: xxx.xxx.xxx.xxx
Value 2: 198:7:38:26.95
Value 3: .1.3.6.1.4.1.31440.0.6
Value 4: xxx.xxx.xxx.xxx
Value 5: public
Value 6: .1.3.6.1.4.1.31440
Value 7:
Value 8:
Value 9:
Value 10:
Ent Value 0: .1.3.6.1.4.1.31440.2.2.1.1.5=2
Thu Aug 25 15:42:56 2016: Unknown trap (.1.3.6.1.4.1.31440.0.6) received from xxx.xxx.xxx.xxx at:
Value 0: xxx.xxx.xxx.xxx
Value 1: xxx.xxx.xxx.xxx
Value 2: 198:10:25:26.22
Value 3: .1.3.6.1.4.1.31440.0.6
Value 4: xxx.xxx.xxx.xxx
Value 5: public
Value 6: .1.3.6.1.4.1.31440
Value 7:
Value 8:
Value 9:
Value 10:
Ent Value 0: .1.3.6.1.4.1.31440.2.2.1.1.5=1
... Either there is some big mistake in an configuration or my System is kaput in any way
regards john
Nagios Core 3.5.1
Checkmk 1.2.4p5
Checkmk 1.2.4p5
Re: Need some help with an Snmp Entry.
What version of SNMPTT are you running?