I'm setting up Icinga for the first time.
I'd like to monitor websites, not their hosts (i.e. no ping, only http).
I've created a template like this:
template Host "generic-website" {
check_command = "http"
}
apply Service "http" {
import "generic-website"
check_command = "http"
assign where host.vars.http_address
}
but my "hosts" always show up even with a bogus address.
What is the proper way to check for http?
Thanks in advance
Best Answer
You can define a command like this:
And then calling this command as: