<div>Ok It's work fine.</div>
<div> </div>
<div>The Test I created for the service event_handler works.</div>
<div> </div>
<div>.... the nagios user can't write a file in /root/test.txt....</div>
<div> </div>
<div>Now I proceed sending an SNMP trap through NET-SNMP package<br>Thanx all</div>
<div> </div>
<div><span class="gmail_quote">On 10/26/06, <b class="gmail_sendername">Raffaello Risso</b> <<a href="mailto:raffaello.risso@gmail.com">raffaello.risso@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi,</div>
<div>Thanks for your suggest.</div>
<div> </div>
<div>As a test of the service event_handler, I defined:</div>
<div> </div>
<div>define command {</div>
<div> command_name newcommand</div>
<div> command_line /bin/echo $SERVICESTATE$ >> /root/test.txt</div>
<div>}</div>
<div> </div>
<div>define service {</div>
<div> use generice-service</div>
<div> host_name <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://switch.mydomain.com/" target="_blank">switch.mydomain.com</a></div>
<div> service_description PING</div>
<div> is_volatile 0</div>
<div> check_period 24x7</div>
<div> max_check_attempts 4</div>
<div> normal_check_interval 5</div>
<div> retry_check_interval 1</div>
<div> event_handler newcommand</div>
<div> event_handler_enabled 1</div>
<div> contact_groups me</div>
<div> notification_interval 300</div>
<div> notification_period 24x7</div>
<div> check_command check_ping!100.0,20%!500.0,60% </div>
<div>}<br> </div>
<div>After this I reload the nagios configuration file, but nothing seems happen.</div>
<div><span class="e" id="q_10e839be724aa610_1">
<div><br> </div>
<div><span class="gmail_quote">On 10/25/06, <b class="gmail_sendername">Tedman Eng</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:teng@dataway.com" target="_blank">teng@dataway.com</a>> wrote:
</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Have a peek at the Nagios FAQ:<br><br>Sending SNMP traps to a management host<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://nagios.org/faqs/viewfaq.php?faq_id=28" target="_blank">
http://nagios.org/faqs/viewfaq.php?faq_id=28</a><br><br><br><br>-----Original Message-----<br>From: Raffaello Risso [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:raffaello.risso@gmail.com" target="_blank">
raffaello.risso@gmail.com</a>]<br>Sent: Wednesday, October 25, 2006 7:55 AM <br>To: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net
</a><br>Subject: [Nagios-users] Configuring Nagios to Send SNMP trap to another<br>monitoring tool<br><br><br>Hi all!<br><br>I've a question for you: <br><br>I've the need to define a new command in nagios to send an SNMP trap to
<br>another monitoring tool installed in my network.<br>This event must happen in the case of ALERT/WARNING or CRITICAL result of<br>check_ping instead of sending email. <br>Anybody have a solution?<br><br>Thanks all,<br>
Raffaello<br></blockquote></div><br></span></div></blockquote></div><br>