HEX
Server: LiteSpeed
System: Linux s12787.usc1.stableserver.net 5.14.0-570.32.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 6 11:30:41 EDT 2025 x86_64
User: househiv (1652)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/self/root/usr/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