Passing a string from services to commands for check_http
Tom Cowin
tcowin at blackfinsoftware.com
Mon Mar 5 22:44:07 CET 2007
I've had trouble passing a string from a service definition to a
command, and getting the command to execute properly.
in services.cfg:
define service{
use remote-service-critical
host_name workflow-server
service_description Workflow Automation Server
check_command check_http_port_string!XXXX!lackfin
}
in commands.cfg:
define command {
command_name check_http_port_string
command_line /usr/local/nagios/libexec/check_http -I $HOSTADDRESS$ -p
$ARG1$ -s $ARG2$
}
supplied as the second argument in the service definition, the string
'lackfin' will work, but not the string 'Blackfin' nor
'lackfin_logo_small' - they will all work from the command line however.
Is there some way to handle strings in this context that I'm missing?
Many TIA,
Tom
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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