D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib64
/
nagios
/
plugins
/
Filename :
check_a2_dnsdist_health.sh
back
Copy
#!/bin/bash IP=$(dig @127.0.0.1 uncached.scdnstest.com +short) if [ "$IP" != "127.0.0.1" ]; then echo "dnsdist_health - CRIT - Unable to resolve uncached.scdnstest.com" exit 2 else echo "dnsdist_health - OK - Able to resolve uncached.scdnstest.com" exit 0 fi