check_dns for docker hosts

This commit is contained in:
Kameron Kenny - pi501 2024-12-27 10:48:09 -05:00
parent ee0ba11677
commit 4683f941a8
3 changed files with 11 additions and 1 deletions

View File

@ -12,7 +12,7 @@ services:
build:
dockerfile: Dockerfile
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:
infra_dev_net:
ipv4_address: 10.99.23.36

View File

@ -215,6 +215,10 @@ define command{
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
}
################################################################################
#

View File

@ -67,3 +67,9 @@ define service{
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
}