Hi,
I want to use monit to monitor some process and program.
I installed it on my server (Ubuntu 12.04.3 LTS) with apt-get.
Everything seems fine, when i kill a monitored process, monit restarts it as it should.
The problem is that monit does not start on server reboot. I added it to the program to start on reboot, but it does not start.
After a reboot, trying to restart it manually does not work either.
I first have to stop Plesk's monit process (I did not know there was one) with the command sudo /usr/local/psa/admin/sbin/modules/watchdog/wdservice monit stop /usr/local/psa/etc/modules/watchdog/monitrc and then only, I can start "my" monit with sudo /etc/init.d/monit start, after that, I start plesk's monit again and everything seems fine.
Of course, I want monit to start on reboot (both ideally, the one from plesk seems useful as well).
Or I want to be able to add process to be monitored to plesk monit, but the config file of plush monit state:
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
Does someone have a solution to propose please?
Regards
Geoffroy
I want to use monit to monitor some process and program.
I installed it on my server (Ubuntu 12.04.3 LTS) with apt-get.
Everything seems fine, when i kill a monitored process, monit restarts it as it should.
The problem is that monit does not start on server reboot. I added it to the program to start on reboot, but it does not start.
After a reboot, trying to restart it manually does not work either.
I first have to stop Plesk's monit process (I did not know there was one) with the command sudo /usr/local/psa/admin/sbin/modules/watchdog/wdservice monit stop /usr/local/psa/etc/modules/watchdog/monitrc and then only, I can start "my" monit with sudo /etc/init.d/monit start, after that, I start plesk's monit again and everything seems fine.
Of course, I want monit to start on reboot (both ideally, the one from plesk seems useful as well).
Or I want to be able to add process to be monitored to plesk monit, but the config file of plush monit state:
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
Does someone have a solution to propose please?
Regards
Geoffroy