Command Definitions
dan at remics.net
dan at remics.net
Thu Jan 23 19:38:04 CET 2003
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.
I was wondering, can command argument macros contain spaces? for instance
if I have the following:
define command{
command_name check_http
command_line /usr/local/nagios/libexec/check_http $ARG1$
}
Can I then construct a service definition like this:
define service{
host_name host1
service_description Check Virt Server
check_command check_http!-H www.mydomain.com -u
/testscript.pl
...
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.
Thanks.
Daniel Koffler
dan at remics.net
http://www.remics.net
Tel: 514.497.1411
Fax: 206.600.4642
GPG Key ID: 0xA2C6DC83 Fingerprint: 1FD7 3FDF 8A0D 961F 26A2 3EDA AE8F
A874 A2C6 DC83
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030123/a27176c2/attachment.html>
More information about the Users
mailing list