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
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
