Configuring Nagios to Send SNMP trap to anothe r monitoring tool

Raffaello Risso raffaello.risso at gmail.com
Thu Oct 26 10:39:12 CEST 2006


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 <raffaello.risso at gmail.com> 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 <teng at dataway.com> 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:raffaello.risso at gmail.com]
> > Sent: Wednesday, October 25, 2006 7:55 AM
> > To: nagios-users at lists.sourceforge.net
> > 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
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061026/9e3e28b4/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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


More information about the Users mailing list