I have a bash script I call from exec when a condition is met:
#!/usr/local/bin/bash Log=/var/log/mysql-proc-list.log date >> $Log /usr/local/bin/mysql -e "show processlist;" >> $Logif I run that script manually I get the expected result. First date a line then followed by output of the command. However, when I run the above from monit from a triggered condition only the date line shows.
Any ideas or suggestions? -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
