[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Monit DNS check response

From: David Jones
Subject: Monit DNS check response
Date: Tue, 4 Jun 2019 04:21:23 +0000

Does monit have the ability to check a DNS server for a specific response?  I have a need to check a local DNS server and if it becomes unhealthy, shutdown the bgpd service to send DNS traffic to a different data center.

Something like this?

check host with address
    if failed port 53
        use type udp protocol dns
        content = ""
    then exec "/bin/systemctl stop bgpd"
    else if succeeded then exec "/bin/systemctl start bgpd"

I already have an A record for "nstest" with a value of 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]