> -----Ursprüngliche Nachricht----- > Von: Marc Powell [mailto:[email protected]] > Gesendet: Donnerstag, 4. Juni 2009 16:08 > An: nagios-users Mailinglist > Betreff: Re: [Nagios-users] nSvcEvent and nSvcNotify traps > > > 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. >
Yes right! I made some test and it's running well... The only problem that I've seen, it's when a macro contains a sentence such as $SERVICEOUTPUT$ -> "NTP CRITICAL: No response from NTP server", each word is a parameter instead of a string .... Thanks Jerome > > 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 > [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 ------------------------------------------------------------------------------ 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 [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
