Passing a string from services to commands for check_http
Jim Avery
jim at jimavery.me.uk
Tue Mar 6 14:27:56 CET 2007
On 05/03/07, Tom Cowin <tcowin at blackfinsoftware.com> wrote:
> 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$
> }
That looks okay to me. It wouldn't do any harm to put the string in
quotes in the service definition:
check_command check_http_port_string!XXXX!"lackfin"
It might be an idea to do a view source on the page you are checking
to see that there aren't any extraneous codes in it for example, what
you thought was:
Blackfin
might actually be
[font size=2]B[/font]lackfin
or something like that?
hth,
Jim
-------------------------------------------------------------------------
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