nSvcEvent and nSvcNotify traps

Meyer Jerome Jerome.Meyer at baldata.ch
Thu Jun 4 15:34:56 CEST 2009


Hi

Thanks for your answer!
See my remarks below...

> -----Ursprüngliche Nachricht-----
> Von: Marc Powell [mailto:marc at ena.com]
> Gesendet: Donnerstag, 4. Juni 2009 14:45
> An: Nagios Users
> Betreff: Re: [Nagios-users] nSvcEvent and nSvcNotify traps
> 
> 
> On Jun 4, 2009, at 3:26 AM, Ortner, Gerald wrote:
> 
> > Von: Meyer Jerome [mailto:Jerome.Meyer at baldata.ch]
> > Gesendet: Mittwoch, 03. Juni 2009 16:27
> > An: Nagios-users at lists.sourceforge.net
> > Betreff: [Nagios-users] nSvcEvent and nSvcNotify traps
> >
> >
> >
> > As someone an Idea?
> >
> 
> > Define command{
> >
> > command_line    $USER1$/send_trap server_test public $HOSTNAME$
> > $SERVICEDESC$ $SERVICESTATEID$ $SERVICEOUTPUT$ $NOTIFICATIONTYPE$
> >
> > }
> >
> 1 - You'll probably want to '$SERVICEOUTPUT$' for predictability
> 2 - Is this command being used as a service_notification_command for a
> contact or as an event_handler? $NOTIFICATIONTYPE$ isn't valid for
> event_handlers -- http://nagios.sourceforge.net/docs/3_0/macrolist.html.

1 - Yes and also to receive the words OK, WARNING, RECOVERY, etc....
2 - I checked the web's link and now I understood why this macro never comes. For testing that, I made a script which gives me all parameters and I noticed indeed that this macro does not exist for the event_handler! 

Do you known how many parameter could send the event_handler? 
Because my script received a max. of 9 parameters, is't that right??

> 
> > Do a trap snmp sending only a nSvcEvent NOTIFICATION-TYPE or a
> > nSvcNotify NOTIFICATION-TYPE too ?????
> >
> A notification to nagios is just running a script. It doesn't matter,
> know, or care what that script actually does. It could send an e-mail,
> send a trap, log to a file, and/or ring alarm bells in an underground
> fortress to send out battalions of techs. In all cases, any macro that
> is valid for notifications can be passed.
> > What's the difference between them ????
> >
> I personally suspect that this isn't a notification but an
> event_handler.

Now, I think too...

> > Where should I find documentation about that ????
> >
> The macros list above is your best source for knowing when/where
> specific macros can be used.


Thanks for the links, I'll read it...
Best regards
Jerome
> 
> --
> Marc
> 
> 
> -----------------------------------------------------------------------------
> -
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> 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

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
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