monit-general
[Top][All Lists]
Advanced

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

Monit /etc/hosts


From: Rui Lapa
Subject: Monit /etc/hosts
Date: Tue, 21 Oct 2014 10:04:17 +0100

Hello,

    I need your ideas on a way to achieve a /etc/hosts differentiated scenario.

    I wish to change a record on /etc/hosts based on an ICMP/Telnet test. But there's an issue, I wish to rollback if it fails again.

    I'm thinking of using something like

     check host <HOST> with address <IP>
         if failed icmp type echo count 5 with timeout 5 seconds then exec "<change_hosts>"

    But how to I do the rollback?

Thanks a lot,
    Rui Lapa




reply via email to

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