<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
span.EmailStyle17
{font-family:"Calibri","sans-serif";
color:windowtext}
.MsoChpDefault
{}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
{}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"> </p>
<p class="MsoNormal">Dear Team,<br>
<br>
I am trying to integrate Nagios and SNMP traps for monitoring network devices with trap facility for immediate information of any issue on these critical devices. I have followed the document from NagiosXI to do the same and have already installed net-snmp
and snmptt to handle the traps. <br>
<br>
As I was testing and sending test trap from one another unix server using snmptrap utility, I am able to see it in
<br>
<br>
[root@mmkndnag networks]# tail -f /var/log/snmptt/snmptthandler.debug as below:-<br>
<br>
SNMPTTHANDLER started: Wed Apr 11 18:50:11 2012<br>
<br>
s = 1334150411, usec = 272432<br>
s_pad = 1334150411, usec_pad = 272432<br>
<br>
Data received:<br>
<br>
<UNKNOWN><br>
<br>
UDP: [10.2.202.57]:33911<br>
<br>
.1.3.6.1.2.1.1.3.0 10:3:34:28.65<br>
<br>
.1.3.6.1.6.3.1.1.4.1.0 .1.3.6.1.4.1.2021.13.990.0.17<br>
<br>
.1.3.6.1.2.1.1.6.0 Here<br>
<br>
.1.3.6.1.6.3.18.1.3.0 x.x.x.x<br>
<br>
.1.3.6.1.6.3.18.1.4.0 "community-string"<br>
<br>
.1.3.6.1.6.3.1.1.4.3.0 .1.3.6.1.4.1.2021.13.990<br>
<br>
Also I am sending test trap from another unix machine as below:-<br>
<br>
snmptrap -v 1 -c public nagios-server-ip UCD-TRAP-TEST-MIB::demotraps "" 6 17 "" SNMPv2-MIB::sysLocation.0 s "Here"<br>
<br>
Also when I tested tcpdump on port 162 on nagios server I found that trap coming perfectly fine as below<br>
tcpdump -i eth0 port 162<br>
<br>
18:52:52.092229 IP trap-sending-ip.54276 > nagxi-server-name.snmptrap: Trap(50) E:2021.13.990 trap-sending-ip enterpriseSpecific s=17 87703152 [|snmp]<br>
<br>
But as described in the document its not coming in the<br>
tail -f /var/log/snmptt/snmpttunknown.log <br>
<br>
Also there is no UCD-TRAP-TEST-MIB.txt file in /usr/share/snmp/mibs on nagiosxi server as described in that document, so it should come in the snmpttunknown.log<br>
<br>
I have checked these config files of snmptt and everything looks fine ...<br>
vim /etc/snmp/snmptt.ini <br>
vim /etc/snmp/snmptt.conf <br>
<br>
Also no test traps are showing up in but i am able to see other traps.<br>
tail -f /var/log/snmptt/snmptt.log <br>
<br>
I am not able to see any test trap related info in this file.<br>
tail -f /var/log/snmptt/snmptt.debug<br>
<br>
What can be the issue... Any suggestion</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks<br>
Manish Kumar<br>
Open Source Tools Team, IMS, Mahindra Satyam<br>
Electronics City, Bangalore, India<br>
<a href="http://in.linkedin.com/in/manishkumar85">http://in.linkedin.com/in/manishkumar85</a></p>
<p class="MsoNormal"> </p>
</div>
<br>
<hr>
<font face="Arial" color="Navy" size="2"><br>
DISCLAIMER:<br>
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or
all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.<br>
</font>
</body>
</html>