Page 1 of 1

snmp traps are not being reported

Posted: Thu Jul 23, 2015 2:09 am
by paltel
Hello ,

I installed fresh nagios xi and everything is ok except snmp trap integration , I followed this tutorial to install and integrate traps :

https://assets.nagios.com/downloads/nag ... ios_XI.pdf

I configured Csico 1841 device to send traps to my nagios and configured trap service using trap wizards , I changed .1.3.6.1.6.3.1.1.5.5 severity to critical and I can see traps coming and translated in snmptt.log :

Thu Jul 23 08:37:35 2015 .1.3.6.1.6.3.1.1.5.5 Critical "Status Events" 172.17.3.176 - SNMP athentication failure

172.17.3.176 is my host name and address , but trap service are not triggered in nagios and always " wating for trap ..."

I tired from searching the internet and could not get this working , your help is much appreciated .

* I did not change any conf file , all are uploaded in this post

Thanks

Re: snmp traps are not being reported

Posted: Thu Jul 23, 2015 9:48 am
by tgriep
It looks like the import of the MIB file in to the XI system didn't either work correctly or that the MIB file wasn't formatted correctly. You can try and re-add the MIB file by running the command below.

Code: Select all

addmib <PathToNewMIB>
Here is an example from a known good snmptt.conf file for reference.

Code: Select all

EVENT nHostNotify .1.3.6.1.4.1.20006.1.6 "Status Events" Normal
FORMAT The SNMP trap that is generated as a result of an event requiring $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "The SNMP trap that is generated as a result of an event requiring $*"
SDESC
The SNMP trap that is generated as a result of an event requiring
notification for a host in Nagios.
Variables:
  1: nHostNotifyType
  2: nHostNotifyNum 
  3: nHostAckAuthor
  4: nHostAckComment
  5: nHostname
  6: nHostStateID
  7: nHostAttempt
  8: nHostGroupName
  9: nHostLastCheck
  10: nHostLastChange
  11: nHostOutput
EDESC

Re: snmp traps are not being reported

Posted: Sun Jul 26, 2015 1:57 am
by paltel
Thanks for your reply ,

actually I did not add any MIB , this OID seems defined by default XI mibs .
as I'm new to concept of snmp and traps I could not find specific file containing all mibs for my cisco 1641 box , if any one can help understandi ng the structure of cisco mib files in ftp://ftp.cisco.com/pub/mibs/v2

Also When I tried to upload random mib file from cisco using xi admin MIB interface I got the error :

Uploaded file had one or more failed translations when converting to snmptt mib.

any ideas ?

Thanks for help

Re: snmp traps are not being reported

Posted: Sun Jul 26, 2015 2:39 am
by paltel
Hello ,

I did not import any MIB , the OID was defined by default XI configuration .
I'm new to this field , I tried to find a mib files that contain everything about my cisco 1841 box , can anyone help me to understand how to get that from cisco or other site .

one more thing , I tried to upload random MIB file using XI admin interface and got the following error :

Uploaded file had one or more failed translations when converting to snmptt mib.

your help s appreciated

Thanks

Re: snmp traps are not being reported

Posted: Mon Jul 27, 2015 11:58 am
by tgriep
I think this is the link to Cisco site for their SNMP Trap MIB's.
ftp://ftp.cisco.com/pub/mibs/traps/
In that folder is a file called trapsreadme that describes what the various files are used for traps.
Take a look at the file to see if you can find out what to need.