Correct Syntax??

Hugo van der Kooij hvdkooij at vanderkooij.org
Mon Mar 13 07:22:49 CET 2006


On Mon, 13 Mar 2006, Jody Noscov wrote:

> define command{
>         command_name    check-host-alive
>         command_line    $USER1$=/usr/local/nagios/libexec check_ping -H
> $HOSTADDRESS$ -w 99,99% -c 100,100% -p 1

This can not be right. Either $USER1$ is defined so you do not have to
use an absolute path:
	command_line	$USER1$/check_ping -H $HOSTADDRESS$ -w 99,99% -c 100,100% -p 1

Or you need to use the full path to the check:
	command_line	/usr/local/nagios/libexec check_ping -H  $HOSTADDRESS$ -w 99,99% -c 100,100% -p 1

But your syntax is not valid.

Please refer to this mailinglist archive and the manual for other $USER1$
knowledge.

Hugo.

-- 
	I hate duplicates. Just reply to the relevant mailinglist.
	hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
		Don't meddle in the affairs of magicians,
		for they are subtle and quick to anger.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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