Hosts already defined!

Hi all,
I wrote a plugin called check_url which is uses lwp to check if the url is up i.e. 200 OK, 500 etc. but the problem I have is that I have 4 urls with the same hostname eg.

host.com/index.html
host.com/poll.cgi
host.com/stuff.fcgi

etc. but it says hosts already defined and when I tried adding all url in one like this

define service{
hostname hostname.com
check-command check_url!http://host.com/index.html
check_url!http://host.com/poll.cgi!1!
check_url!http://host.com/stuff.fcgi!1!
.
.
.
.
.
}

but it gave no output in the browser is there a way around this?

thanks for your help.

i fyou have different srvices for a single host you should have no problems… idon’t get the point possibly… :confused:

Luca

Post the output of your nagios config check. The -v option.