我刚开始做monit服务。如果应用服务器使用monit关闭,我希望执行select查询。在/etc/监测仪中的配置类似于:-
check host www.example.com with address www.example.com
if failed port 80 protocol http
then exec /tmp/test.shtest.sh包含以下内容: chmod a+x /tmp/test.sh
mysql -u root -p root
use database;
select * from tablename;monit服务没有执行/tem/test.sh文件。我怎么才能用monit做这件事?
https://serverfault.com/questions/974623
复制相似问题