nSvcEvent and nSvcNotify traps
Marc Powell
marc at ena.com
Thu Jun 4 17:36:29 CEST 2009
On Jun 4, 2009, at 10:22 AM, Meyer Jerome wrote:
> 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 ....
Yes, of course. Your shell passes each space-separated value as a
unique $VAR; that's expected for any shell script. That's why I
originally recommended quoting $SERVICEOUTPUT$ in your command
definition - '$SEVICEOUTPUT'. That will prevent the breakout from
happening and the shell will assign the entire quoted sentence to a
single $VAR.
--
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