<br><font size=2 face="sans-serif">I don't know if this is already in the
archives (Sourceforge's search engine is currently misbehaving), but I
need a little help with host & service command definitions.</font>
<br>
<br><font size=2 face="sans-serif">I was wondering, can command argument
macros contain spaces? for instance if I have the following:</font>
<br>
<br><font size=2 face="sans-serif">define command{</font>
<br><font size=2 face="sans-serif"> command_name
check_http</font>
<br><font size=2 face="sans-serif"> command_line
/usr/local/nagios/libexec/check_http
$ARG1$</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif">Can I then construct a service definition
like this:</font>
<br>
<br><font size=2 face="sans-serif">define service{</font>
<br><font size=2 face="sans-serif"> host_name
host1</font>
<br><font size=2 face="sans-serif"> service_description
Check
Virt Server </font>
<br><font size=2 face="sans-serif"> check_command
check_http!-H
www.mydomain.com -u /testscript.pl</font>
<br><font size=2 face="sans-serif"> ...</font>
<br>
<br><font size=2 face="sans-serif">I know there doesn't seem like a good
reason to do this (and that I should just use multiple macro arguments),
but I have my reasons.</font>
<br>
<br><font size=2 face="sans-serif">Thanks.</font>
<br><font size=2 face="sans-serif"><br>
Daniel Koffler<br>
dan@remics.net<br>
http://www.remics.net<br>
Tel: 514.497.1411<br>
Fax: 206.600.4642<br>
GPG Key ID: 0xA2C6DC83 Fingerprint: 1FD7 3FDF 8A0D 961F 26A2 3EDA AE8F
A874 A2C6 DC83 </font>