nSvcEvent and nSvcNotify traps

Marc Powell marc at ena.com
Thu Jun 4 16:07:33 CEST 2009


On Jun 4, 2009, at 8:34 AM, Meyer Jerome wrote:

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

There's effectively no limit within nagios that I am aware of. If  
there is, I suspect it's if the total command_line length exceeds 1024  
or 65536 characters but I don't really think those limits exist unless  
your shell imposes them.

> Because my script received a max. of 9 parameters, is't that right??

In the example from your e-mail, you only saw 8 because the 9th, and  
last one, was $NOTIFICATIONTYPE$ which isn't valid for event_handlers  
and was therefor null. If you passed other macros that are valid for  
event_handlers, you would see more.

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