Page 1 of 3

Setup SNMP Traps on NetBotz 450

Posted: Wed Oct 08, 2014 2:48 pm
by toleolu
Trying to get SNMP traps set up on a new NetBotz 450 we purchased. The active checks are working OK, (SNMP port 161) but the trap doesn't work. (Port 162).

First of all is the port deal correct? Documentation online says it should be set with 161 for SNMP and 162 for the traps. (Changing the traps to 161 doesn't fix the problem).

Think the problem might have something to do with the MIB's but I'm not sure where to begin with those. Is that something I get from the manufacturer, Nagios, or somewhere else?

Thanks

Re: Setup SNMP Traps on NetBotz 450

Posted: Wed Oct 08, 2014 3:32 pm
by vAJ
are you getting anything in /var/log/snmptt/snmptt.log or /var/log/snmptt/snmpttunknown.log?

Re: Setup SNMP Traps on NetBotz 450

Posted: Wed Oct 08, 2014 4:30 pm
by abrist
Vaj is correct. You should see output in those logs pertaining to unknown traps if they are being received by nagios. Additionally, check unconfigured object in the UI for any traps that successfully traversed snmptt but are failing to match a current object.

Re: Setup SNMP Traps on NetBotz 450

Posted: Wed Oct 08, 2014 9:01 pm
by toleolu
Didn't have the smptt software loaded, installed that, and I get this in snmpttunknown.log.

Wed Oct 8 15:46:10 2014: Unknown trap (.1.3.6.1.4.1.5528.100.10.2.0.10) received from 10.5.190.52 at:
Value 0: 10.5.190.52
Value 1: 10.5.190.52
Value 2: 0:1:59:05.85
Value 3: .1.3.6.1.4.1.5528.100.10.2.0.10
Value 4: 10.5.190.52
Value 5: public
Value 6: .1.3.6.1.4.1.5528.100.10.2
Value 7:
Value 8:
Value 9:
Value 10:
Ent Value 0: .1.3.6.1.4.1.5528.100.11.1=nbErrorCond_6E2014DD
Ent Value 1: .1.3.6.1.4.1.5528.100.11.2=nbErrorType_errorstate
Ent Value 2: .1.3.6.1.4.1.5528.100.11.3=Value Error
Ent Value 3: .1.3.6.1.4.1.5528.100.11.4=nbAlinkEnc_0_2_SPLK
Ent Value 4: .1.3.6.1.4.1.5528.100.11.5=Water Sensor (2)
Ent Value 5: .1.3.6.1.4.1.5528.100.11.6=nbAlinkEnc_0
Ent Value 6: .1.3.6.1.4.1.5528.100.11.7=Sensor Pod
Ent Value 7: .1.3.6.1.4.1.5528.100.11.8=
Ent Value 8: .1.3.6.1.4.1.5528.100.11.9=
Ent Value 9: .1.3.6.1.4.1.5528.100.11.10=1412819250
Ent Value 10: .1.3.6.1.4.1.5528.100.11.11=1412819250
Ent Value 11: .1.3.6.1.4.1.5528.100.11.12=0
Ent Value 12: .1.3.6.1.4.1.5528.100.11.13=3
Ent Value 13: .1.3.6.1.4.1.5528.100.11.14=Leak Detected
Ent Value 14: .1.3.6.1.4.1.5528.100.11.15=1
Ent Value 15: .1.3.6.1.4.1.5528.100.11.16=0


Wed Oct 8 15:46:11 2014: Unknown trap (.1.3.6.1.4.1.5528.100.10.2.0.10) received from 10.5.190.52 at:
Value 0: 10.5.190.52
Value 1: 10.5.190.52
Value 2: 0:1:59:06.86
Value 3: .1.3.6.1.4.1.5528.100.10.2.0.10
Value 4: 10.5.190.52
Value 5: public
Value 6: .1.3.6.1.4.1.5528.100.10.2
Value 7:
Value 8:
Value 9:
Value 10:

So Nagios is getting the trap, just doesn't know what to do with it. So I take it that has something to do with the MIB's?

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 8:39 am
by vAJ
That is a NetBotz trap, you're on your way.

Make sure you have the MIBs imported to Nagios (Admin-->Manage MIBs) and that you select "Process traps".

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 10:10 am
by vAJ
http://www.oidview.com/mibs/5528/md-5528-1.html

In case you need to download the MIBs for these

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 11:59 am
by toleolu
Thanks, I'll give that a shot.

I have another question. This box has two sensors plugged into it. One is for detecting water, the other probe does temperature and humidity. I am assuming that the same SNMP Trap that I set up for this box will process the traps from all of these sensors, so is there something in the MIB's that will give us the detail on the trap itself, indicating that it's either temperature, water, etc.?

Mahalo

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 12:48 pm
by vAJ
Not that familiar with the messages from Netboz, but a quick view of the NETBOTZ-PRD-BOT-MIB show separate traps for dry, amps, temps, etc. You will need to define each of those in the snmptt.conf

The details should come in the message though.

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 12:52 pm
by toleolu
Can't get these sites to download anything.

MIB Depot has a notice on their main page that their downloads have been disabled because they were hacked. OID View just takes me to some search screen where it says stuff is loading, but it just sits there. Might be something blocked by our network, who knows.

Shouldn't I be able to get the MIB I need from the manufacturer?

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 1:10 pm
by toleolu
Well, I haven't had this much fun since I had my wisdom teeth pulled out through my ears.

I downloaded the NetBotz 450 MIB from Netbotz website, tried to upload it to Nagios XI, and from the Manage MIB page I get this:
Capture.JPG
I downloaded and extracted the file to my Windows desktop, browsed to it from the MIB Admin page, checked the box to process traps, but it's throwing this permissions error at me.

Should I just copy this file directly to the Nagios server? If so, which directory?

Sorry for all the noob questions, just never did this before.

Thanks