HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //lib64/nagios/plugins/check_a2_dnsdist_health.sh
#!/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