ansible-roles/nagios-nrpe/files/plugins/check_domains
William Hirigoyen 16e0f923ef
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
check_domains: Fix script and check
2022-09-01 14:58:40 +02:00

15 lines
243 B
Bash
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
#
# Check domains using script inspect-domains.
#
# Written by Will
#
if ! command -v inspect-domains >/dev/null; then
echo 'UNKNOWN - Missing dependency inspect-domains.'
exit 3
fi
inspect-domains -o nrpe -a check-dns