Page 1 of 2

unable to recive the traps on the nagios

Posted: Wed Feb 07, 2018 8:43 am
by sandeep.endla
Hi Team,

We are trying to configure snmp trap monitoring for ESX server for hardware monitoring. The team is sending the the traps to nagios server but we are not receiving the traps on the snmpttunknown.log. When i did the snmpwalk on the remote device we can see the output.

[nagios@SLDALNAGXI03 ~]$ snmpwalk -Os -c public -v 1 172.21.46.100 system
sysDescr.0 = STRING: VMware ESXi 6.0.0 build-5572656 VMware, Inc. x86_64
sysObjectID.0 = OID: enterprises.6876.4.1
sysUpTimeInstance = Timeticks: (8393400) 23:18:54.00
sysContact.0 = STRING:
sysName.0 = STRING: DPRDSAPESX01
sysLocation.0 = STRING:
sysServices.0 = INTEGER: 72
sysORLastChange.0 = Timeticks: (0) 0:00:00.00
sysORID.1 = OID: snmpMIB
sysORID.2 = OID: ifMIB
sysORID.3 = OID: ip
sysORID.4 = OID: ipForward
sysORID.5 = OID: udp
sysORID.6 = OID: tcp
sysORID.7 = OID: mib-2.47
sysORID.8 = OID: org.111.2.802.1.1.2
sysORID.9 = OID: org.111.2.802.1.1.4
sysORID.10 = OID: iso.2.840.10006.300.43
sysORID.11 = OID: org.111.2.802.1.1.13
sysORID.12 = OID: hostResourcesMibModule
sysORID.13 = OID: enterprises.6876.1.10
sysORID.14 = OID: enterprises.6876.2.10
sysORID.15 = OID: enterprises.6876.3.10
sysORID.16 = OID: enterprises.6876.4.90.10
sysORID.17 = OID: enterprises.6876.4.20
sysORDescr.1 = STRING: SNMPv2-MIB, RFC 3418
sysORDescr.2 = STRING: IF-MIB, RFC 2863
sysORDescr.3 = STRING: IP-MIB, RFC 4293
sysORDescr.4 = STRING: IP-FORWARD-MIB, RFC 4292
sysORDescr.5 = STRING: UDP-MIB, RFC 4113
sysORDescr.6 = STRING: TCP-MIB, RFC 4022
sysORDescr.7 = STRING: ENTITY-MIB, RFC 4133
sysORDescr.8 = STRING: IEEE8021-BRIDGE-MIB, REVISION 200810150000Z
sysORDescr.9 = STRING: IEEE8021-Q-BRIDGE-MIB, REVISION 200810150000Z
sysORDescr.10 = STRING: IEEE8023-LAG-MIB, REVISION 200706200000Z
sysORDescr.11 = STRING: LLDP-V2-MIB, REVISION 200906080000Z
sysORDescr.12 = STRING: HOST-RESOURCES-MIB, RFC 2790
sysORDescr.13 = STRING: VMWARE-SYSTEM-MIB, REVISION 201008020000Z
sysORDescr.14 = STRING: VMWARE-VMINFO-MIB, REVISION 201006220000Z
sysORDescr.15 = STRING: VMWARE-RESOURCES-MIB, REVISION 200810150000Z
sysORDescr.16 = STRING: VMWARE-CIMOM-MIB, REVISION 201008200000Z
sysORDescr.17 = STRING: VMWARE-ENV-MIB, REVISION 201005120000Z
sysORUpTime.1 = Timeticks: (0) 0:00:00.00
sysORUpTime.2 = Timeticks: (0) 0:00:00.00
sysORUpTime.3 = Timeticks: (0) 0:00:00.00
sysORUpTime.4 = Timeticks: (0) 0:00:00.00
sysORUpTime.5 = Timeticks: (0) 0:00:00.00
sysORUpTime.6 = Timeticks: (0) 0:00:00.00
sysORUpTime.7 = Timeticks: (0) 0:00:00.00
sysORUpTime.8 = Timeticks: (0) 0:00:00.00
sysORUpTime.9 = Timeticks: (0) 0:00:00.00
sysORUpTime.10 = Timeticks: (0) 0:00:00.00
sysORUpTime.11 = Timeticks: (0) 0:00:00.00
sysORUpTime.12 = Timeticks: (0) 0:00:00.00
sysORUpTime.13 = Timeticks: (0) 0:00:00.00
sysORUpTime.14 = Timeticks: (0) 0:00:00.00
sysORUpTime.15 = Timeticks: (0) 0:00:00.00
sysORUpTime.16 = Timeticks: (0) 0:00:00.00
sysORUpTime.17 = Timeticks: (0) 0:00:00.00
[nagios@SLDALNAGXI03 ~]$


[nagios@SLDALNAGXI03 snmptt]$ pwd
/var/log/snmptt
[nagios@SLDALNAGXI03 snmptt]$ ls -ltrh
total 108K
-rw-r--r-- 1 snmptt snmptt 0 Jan 24 12:32 snmptt.log
-rw-rw-r-- 1 snmptt snmptt 4.7K Jan 28 03:29 snmpttsystem.log.2.gz
-rw-rw-r-- 1 snmptt snmptt 17K Feb 4 03:07 snmpttsystem.log.1.gz
-rwxrwxr-x 1 snmptt snmptt 0 Feb 7 03:11 snmpttunknown.log
-rwxrwxr-x 1 snmptt snmptt 199 Feb 7 03:11 snmpttunknown.log.1.gz
-rw-rw-r-- 1 snmptt snmptt 71K Feb 7 12:40 snmpttsystem.log
[nagios@SLDALNAGXI03 snmptt]$ cat snmpttunknown.log
[nagios@SLDALNAGXI03 snmptt]$

Re: unable to recive the traps on the nagios

Posted: Wed Feb 07, 2018 12:52 pm
by npolovenko
Hello, @sandeep.endla.
Please go over the Install SNMPTT on Nagios XI SNMP Receiver Server section of this tutorial:
https://support.nagios.com/kb/article.php?id=77
And also, please upload the /etc/snmp/snmptt.ini file here.
Are there any firewall limitations between these two servers?

Re: unable to recive the traps on the nagios

Posted: Mon Feb 26, 2018 11:52 am
by sandeep.endla
Sorry for the delayed response.

We are have configured the snmp traps for the server on ip (172.21.46.100-NAT-IP). we are receiving the trap in snmptt.log but the log file is having traps with 10.199.96.111 this is the real ip of (172.21.46.100 -NAT IP). But we are unable to see the traps in unconfigured objects in Nagios XI console. How to add the server for SNMP traps monitoring.

Re: unable to recive the traps on the nagios

Posted: Mon Feb 26, 2018 5:24 pm
by npolovenko
@sandeep.endla, Do you see anything in /usr/local/nagios/var/nagios.log file when XI is receiving SNMP traps?

Re: unable to recive the traps on the nagios

Posted: Tue Feb 27, 2018 9:51 am
by sandeep.endla
Hi npolovenko,

We are not reciving any traps on the nagios.log . please find the below snip

Re: unable to recive the traps on the nagios

Posted: Tue Feb 27, 2018 2:18 pm
by scottwilkerson
I am going to assume you followed this document to setup SNMP Traps
https://support.nagios.com/kb/article.php?id=77


Please upload the following for review
/etc/snmp/snmptt.conf
/etc/snmp/snmptt.ini

Re: unable to recive the traps on the nagios

Posted: Wed Feb 28, 2018 6:48 am
by sandeep.endla
Hi Scottwikerson,

Please find the below snmptt config files. Other thing is we are unable to find EXEC in the processed MIBs. Please find the below snip.

Re: unable to recive the traps on the nagios

Posted: Wed Feb 28, 2018 10:04 am
by scottwilkerson
This clearly wasn't setup using our script or you would have different EXEC lines

Please see this doc,
https://assets.nagios.com/downloads/nag ... ios_XI.pdf

it must be setup using the NagiosXI-SNMPTrap-setup.sh script

Also see page 2 about running the addmib command to add new MIBs after setup

Re: unable to recive the traps on the nagios

Posted: Wed Feb 28, 2018 12:30 pm
by sandeep.endla
I have runned the same script NagiosXI-SNMPTrap-setup.sh on the nagios and for snmptt i have installed snmptt-1.4-0.9.beta2.el6.noarch.rpm on the nagios. i have these files generated on the nagios which are attached.

Re: unable to recive the traps on the nagios

Posted: Wed Feb 28, 2018 12:38 pm
by scottwilkerson
these are the exact same file size as before

run the following

Code: Select all

ll /etc/snmp