Monit errors when running “check program” for custom script
问题 I am getting syntax errors when I try to check the exit status of a bash script using monit's "check program". If I run the bash script manually, it doesn't error. But if I do monit reload with my monit check program in the config, monit gives me errors. Here's my current monit .conf file -- check program myscript with path "/etc/monit.d/script_to_run.sh" if status != 0 then alert If I change it to this to make sure monit uses bash to parse the file... check program myscript with path "/usr