Hello Josephine,<div><br></div><div>You mentioned you see the trap in the snmptrapd and snmptt logs.  Try enabling logging for sec and trap.sh.</div><div><br></div><div>You can enable sec logging by updating the OPTIONS2 variable in the rc.d/rc.sec init script from cerebro so it will look like this:</div>

<div><br></div><div>OPTIONS2="-input=/var/log/messages -input=/var/log/snmp/snmpttunknown.log -log=/var/log/sec-snmp.log"</div><div><br></div><div>In the server/ext/trap.sh from cerebro update the last line which calls <a href="http://trap.pl">trap.pl</a> to append its STDOUT to a log file of your choosing:</div>

<div><br></div><div>/home/hobbit/server/bin/bbcmd --env=$HOBBITCFG $TRAPCLIENT -C -s $3 -t $4 -d "$1" -m "$5 ($2)" >> /var/log/trap.log</div><div><br></div><div>Now you should be able trace the trap's entire journey and see if the status update sent to Xymon is being formatted correctly.</div>

<div><br clear="all">--<br>Brian Majeska<br>
<br><br><div class="gmail_quote">On Tue, Mar 15, 2011 at 4:35 AM, Josephine Tsikoudaki <span dir="ltr"><<a href="mailto:jtsikoudaki@ontelecoms.com">jtsikoudaki@ontelecoms.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




  
  

<div>
Hello again...<br>
<br>
Has anyone got any idea in how to handle the following? Sorry to bring it up again but I haven't found anything to help...<br>
<br>
I am really stuck here...<br>
<br>
Josephine<br>
<br>
<blockquote type="CITE">
    <br>
    <font color="#000000">Hello all</font><br>
    <br>
    <font color="#000000">I am having trouble receiving SNMP traps from my hosts using the implementation of:</font><br>
    <br>
    <tt><font color="#737373"><a href="http://cerebro.victoriacollege.edu/hobbit-trap.html" target="_blank">http://cerebro.victoriacollege.edu/hobbit-trap.html</a></font></tt><br>
    <br>
    <font color="#000000">In details:</font><br>
    <br>
    <font color="#000000">I followed the instructions in my hobbit server. We have several servers and some dell DRAC consoles among them. When I enable the snmp alerts through the DRAC and send a test alert  I receive the trap and the "trap" column is created and the trap message appears.</font><br>


    <br>
    <font color="#000000">When I send a test trap from a server (not a console) i see the trap coming in my hobbit-server logs, both from snmptrapd and snmptt, but the trap column never appears for this host, the trap is not being displayed and i don't see anything in the snmpttunknown log or the ghost client menu of Hobbit.</font><br>


    <br>
    <font color="#000000">If it wasn't for the consoles I'd presumed that perhaps the <a href="http://trap.pl" target="_blank">trap.pl</a> or trap.sh scripts won't work correctly but given the successful results of the method in the DRAC consoles I wonder what can possibly be wrong...</font><br>


    <br>
    <font color="#000000">The servers that I run the tests from all have hobbit client installed but I tried also from a server without the client installed, simply sending a trap test to the  hobbit server. No results either.</font><br>


    <br>
    <font color="#000000">I would appreciate any suggestions...</font><br>
    <br>
    <font color="#000000">Thanks a lot</font><br>
    <br>
    <font color="#000000">Josephine. </font><br>
    <table cellspacing="0" cellpadding="0" border="1">
<tbody><tr>
<td>
<font size="2">plain text document attachment (ATT2638439.txt), "ATT2638439.txt"</font>
</td>
</tr>
</tbody></table>
<pre><font color="#000000">_______________________________________________</font>
<font color="#000000">Xymon mailing list</font>
<font color="#000000"><a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a></font>
<font color="#000000"><a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a></font>
</pre>
</blockquote>
</div>

<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>