check_dns for docker hosts
This commit is contained in:
parent
ee0ba11677
commit
4683f941a8
|
@ -12,7 +12,7 @@ services:
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: nagios
|
container_name: nagios
|
||||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/nagios:241227.0.1
|
image: docker-registry1.in.thelinuxpro.net:5000/tlp/nagios:241227.0.2
|
||||||
networks:
|
networks:
|
||||||
infra_dev_net:
|
infra_dev_net:
|
||||||
ipv4_address: 10.99.23.36
|
ipv4_address: 10.99.23.36
|
||||||
|
|
|
@ -215,6 +215,10 @@ define command{
|
||||||
command_line $USER1$/check_docker --connection $HOSTADDRESS$ --cpu $ARG1$:$ARG2$
|
command_line $USER1$/check_docker --connection $HOSTADDRESS$ --cpu $ARG1$:$ARG2$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
define command {
|
||||||
|
command_name check_dns_a
|
||||||
|
command_line $USER1$/check_dns -H $HOSTNAME$ -q A -a $HOSTADDRESS$ -w 2 -c 5 -t 7
|
||||||
|
}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
|
|
|
@ -67,3 +67,9 @@ define service{
|
||||||
check_command check_docker_cpu!!500.0,60%
|
check_command check_docker_cpu!!500.0,60%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defind service{
|
||||||
|
use local-service,graphed-service
|
||||||
|
hostgroup_name docker-hosts
|
||||||
|
service_description DNS Query: A Record
|
||||||
|
check_command check_dns_a
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue