[1.6] Please add check_dns plugin

Have a great idea for an upcoming release of NEMS? Post it here.
Post Reply
76bugguy
Junior Member
Posts: 1
Joined: Thu Dec 17, 2020 4:11 pm

[1.6] Please add check_dns plugin

Post by 76bugguy »

I would like to monitor my DNS server and I have successfully added this checkcommand manually but would love to see it in the default list.

Thanks
pade
Junior Member
Posts: 3
Joined: Sun Jan 31, 2021 4:46 pm

Re: [1.6] Please add check_dns plugin

Post by pade »

I agree. adding a suggestion for a check_command below:
$USER1$/check_dns -s $HOSTADDRESS$ -H $ARG1$ -w $ARG2$ -c $ARG3$

$ARG1$: DNS address, e.g. google.com
$ARG2$: Warning threshold in seconds, e.g. 0.5
$ARG3$: Critical threshold in seconds, e.g. 1. Must be larger than the warning threshold.

Suggested default values (I never got the default values to work though):
$ARG1$: home.arpa
$ARG2$: 0.5
$ARG3$: 1

Suggestion to documentation:
The check_dns command checks if a dns service can provide an IP address. In a standard home network, the router hosts the DNS service, so in a home network, the check_dns command can be used to create a DNS service on the router host. It's also possible to create another host that provides the DNS service, e.g. the google DNS service at IP 8.8.8.8

Note to whoever is implementing this:
The check_dns can also be applied on the NEMS host, but then the -s option shall not be used. This way, NEMS will use the DNS service provided by the network (probably during the DHCP handshake). This way, the dns check can be one of the standard checks created by the NEMS init command
Post Reply