NSClient - and args with spaces
John Sellens
jsellens at generalconcepts.com
Wed Sep 11 04:05:25 CEST 2002
Put quotes around the ARG in the command definition i.e.
command_line /usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -t 30 -l "$ARG1$"
This doesn't work for perl scripts with the embedded perl interpreter,
but check_nt is a C program.
Cheers
John
jsellens at generalconcepts.com
| From: "Rusch, Daniel" <Daniel.Rusch at GlobalCrossing.com>
| Date: Tue, 10 Sep 2002 17:01:39 -0400
|
| All,
|
| Using NSClient:
|
| I have the following command defined:
|
| # 'check_nt_service' command definition
| define command{
| command_name check_nt_service
| command_line /usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$
| -v SERVICESTATE -t 30 -l $ARG1$
| }
|
| In my services.cfg I have two services with the following commands defined
| for the same host:
|
| check_command check_nt_service!MESSENGER
|
| check_command check_nt_service!TREND SERVERPROTECT
-------------------------------------------------------
In remembrance
www.osdn.com/911/
More information about the Users
mailing list