I have an Icinga2 server and I’m trying to use this[1] plugin, but when I try to check containers from remote, I get an error as follows. It 's running when try on the remote server. Monitor server appears as Check Source.
## Plugin Output
usage: check_docker_container [-h] -n NAME
check_docker_container: error: the following arguments are required: -n/--name
My conf:
apply Service "example.com {
import "generic-service"
check_command = "docker_container"
vars.docker_containers = [
"test"
]
assign where host.name == "example.com"
}