Answer the question
In order to leave comments, you need to log in
How to properly set up monitoring with monit?
It is necessary to check the availability of the host, and if it is not available, execute the script once, and then execute the script when it becomes available again.
Current config:
check host localhost with address 127.0.0.1
if failed
port 80 protocol http
for 1 times within 1 cycles
then exec "/var/www/alert.sh"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question