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
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 newcommandcommand_line /bin/echo $SERVICESTATE$ >> /root/test.txt}define service {use generice-servicehost_name switch.mydomain.comservice_description PINGis_volatile 0check_period 24x7max_check_attempts 4normal_check_interval 5retry_check_interval 1event_handler newcommandevent_handler_enabled 1contact_groups menotification_interval 300notification_period 24x7check_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
