<div dir="ltr">Hi,<div style> </div><div style>In past I have configured snmp traps from network devices to display in the nagios UI. I have defined only one trap service under a network device which captures all the traps sent for this device in the service, so it will always show you the latest submitted trap/message and send out an alert based on if it's a Warning/Critical trap as may be defined by you in the snmptt config file or the integration script you used.</div>

<div style><br></div><div style>Since any critical/warning alert logs a ticket on a ticketing system integrated with nagios, we are not so concerned to see all the alerts displayed in one service.</div><div style><br></div>

<div style>In your case if you always want to display all the incoming traps to be displayed permanently you may need to define multiple trap service under that host and in the integration script you have to map different traps to the different services which you defined. But even in that case you might have defined and mapped a cpu trap service and a fan problem trap service under a host, so the cpu and fan trap will not display in the same service but guess if the new fan trap comes it will again override the old trap and show you in the nagios UI. But in this situation there also a chance to miss a trap or unknow trap which you may not have mapped.</div>

<div style><br></div><div style>The other way which we are using is I defined a single trap service under a host and I used to reset it to OK after few seconds or minutes of the trap submission so by default it's always OK and once a trap comes it will display it, fire an alert and again rest to OK after few seconds.</div>

<div style><br></div><div style>Hope it helps you some what :)</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 13, 2013 at 6:31 AM, Divya Raj <span dir="ltr"><<a href="mailto:divisback@gmail.com" target="_blank">divisback@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div><div><div><b><font face="verdana, sans-serif">Hi Nagios-Users,</font></b></div></div></div></div></div>
<div>
<b><font face="verdana, sans-serif"><br></font></b></div><div><b><font face="verdana, sans-serif">Currently, I am working with Nagios where I have integrated it with a database platform (remote machines) to listen to the alerts and display them in the Nagios Web Interface. </font></b></div>


<div><br></div><div><font face="verdana, sans-serif"><b>Nagios here runs on RHEL. The remote mahine sends SNMP trap messages (its an external device 
and not a box so no NRPE/SSH). I've setup SNMPTRAPD in the machine 
which captures the snmp messages from the box and calls Nagios command 
to route them to Nagios. </b></font><b style="font-family:verdana,sans-serif">For this also, I have defined a trap service to manage the incoming traps from the remote machine. </b></div><div><b><font face="verdana, sans-serif"><br>


</font></b></div><div><b><font face="verdana, sans-serif">But, the problem is that only the topmost alert is displayed 
in the Nagios (in the log as well as in the Nagios Web UI). Is that like till the first one 
gets cleared the other alerts for the same service don't show up? The thing is that I need all the alerts sent from the remote machine to be sent under one service/host to Nagios.</font></b></div><div><b><font face="verdana, sans-serif"><br>


</font></b></div><div><b><font face="verdana, sans-serif">Any 
pointers regarding this will be much appreciated.</font></b></div><div><b><font face="verdana, sans-serif">Thank You.</font></b></div><div><b><font face="verdana, sans-serif"><br></font></b></div><div><font face="verdana, sans-serif"><b>Regards,</b></font></div>


<div><font face="verdana, sans-serif"><b>Divya.</b></font></div>
<br>------------------------------------------------------------------------------<br>
This SF.net email is sponsored by Windows:<br>
<br>
Build for Windows Store.<br>
<br>
<a href="http://p.sf.net/sfu/windows-dev2dev" target="_blank">http://p.sf.net/sfu/windows-dev2dev</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Thanks<br>Manish Kumar<div><a href="http://www.manishkr.com" target="_blank">www.manishkr.com</a></div>

<div><a href="http://in.linkedin.com/in/manishkumar85" target="_blank">http://in.linkedin.com/in/manishkumar85</a></div></div>
</div>