<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 href="http://switch.mydomain.com">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><br> </div>
<div><span class="gmail_quote">On 10/25/06, <b class="gmail_sendername">Tedman Eng</b> <<a href="mailto:teng@dataway.com">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 href="http://nagios.org/faqs/viewfaq.php?faq_id=28">
http://nagios.org/faqs/viewfaq.php?faq_id=28</a><br><br><br><br>-----Original Message-----<br>From: Raffaello Risso [mailto:<a href="mailto:raffaello.risso@gmail.com">raffaello.risso@gmail.com</a>]<br>Sent: Wednesday, October 25, 2006 7:55 AM
<br>To: <a href="mailto:nagios-users@lists.sourceforge.net">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>