Hello all,
I have a requirement to have a monitoring system that will monitor a file and a
remote server (+ more later maybe) and if one of both fails, the system should
execute a scrip and then stop dead (i.e. monit stop).
A friend of mine pointed out monit as a great tool and I do say it is very
impressive, but I am having problems getting my requirements done.
I have been playing around with monit all day but am unable to get this solved.
On one side I tried execs that would do the required tasks and then try to stop
monit from inside the script.
But the tasks would only happen if I externally stopped monit.