nSvcEvent and nSvcNotify traps

Marc Powell marc at ena.com
Thu Jun 4 14:44:53 CEST 2009


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.

> 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.
> Where should I find documentation about that ????
>
The macros list above is your best source for knowing when/where  
specific macros can be used.

--
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





More information about the Users mailing list