
Monitoring DNS queries
Something that does not cost much to monitor and can save us from some scares may be to control that a DNS server fulfills its function and can resolve DNS queries. That and also ensuring that our importing FQDNs exist,
For example, the subdomains that we have in the organization and provide a service, perhaps it is not so difficult to verify that they exist, we can ask a public DNS server. Or internally verify that DNS servers resolve a query, typically the FQDN of the local domain.
Well, to start we will have to create a Command, that we will call him as many times as we are interested, we will use check_dns and as a first argument with -H we will pass the FQDN DNS to query, and with -s and second argument will be the DNS server to which we will ask. So the command would be:
- Command Type: '$CENTREONPLUGINS$/check_dns -H $ARG 1$ -s $ARG 2$’
By the way, if we don't have the 'check_dns' command, We can find it by installing it with 'yum install nagios-plugins-dns'.
The following, Well, create as many services as we need, we will link them to the internal or external Hosts we have. For example, a minimum, querying domain controllers, or organization DNS servers by the root 🙂 DNS
After recording and exporting your Centreon settings, we will have all the public DNS names that provide a service under control, at least the public 🙂 FQDNs and internally the DNS server resolves and responds well.
As always hoping you are interested, some more, others less, but we have to have the infrastructure and the service provided by controlled businesses! Today we saw a classic in this monitoring systems, Or good, let's say a minimum we could control! Thanks for the Likes, Retweets, Like, Sharing and these weird things we have on social media…
Hugs!