Ok It's work fine.
 
The Test I created for the service event_handler works.
 
.... the nagios user can't write a file in /root/test.txt....
 
Now I proceed sending an SNMP trap through NET-SNMP package
Thanx all
 
On 10/26/06, Raffaello Risso <[EMAIL PROTECTED]> wrote:
Hi,
Thanks for your suggest.
 
As a test of the service event_handler, I defined:
 
define command {
         command_name       newcommand
         command_line          /bin/echo $SERVICESTATE$ >> /root/test.txt
}
 
define service {
         use                               generice-service
         host_name                    switch.mydomain.com
         service_description         PING
         is_volatile                      0
         check_period                24x7
         max_check_attempts    4
         normal_check_interval   5
         retry_check_interval      1
         event_handler               newcommand
         event_handler_enabled  1
         contact_groups             me
         notification_interval        300
         notification_period         24x7
         check_command          check_ping!100.0,20%!500.0,60% 
}
 
After this I reload the nagios configuration file, but nothing seems happen.

 
On 10/25/06, Tedman Eng <[EMAIL PROTECTED]> wrote:
Have a peek at the Nagios FAQ:

Sending SNMP traps to a management host
http://nagios.org/faqs/viewfaq.php?faq_id=28



-----Original Message-----
From: Raffaello Risso [mailto: [EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2006 7:55 AM
To: [email protected]
Subject: [Nagios-users] Configuring Nagios to Send SNMP trap to another
monitoring tool


Hi all!

I've a question for you:

I've the need to define a new command in nagios to send an SNMP trap to
another monitoring tool installed in my network.
This event must happen in the case of ALERT/WARNING or CRITICAL result of
check_ping instead of sending email.
Anybody have a solution?

Thanks all,
Raffaello


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to