• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Plesk 11.5.30 on Ubuntu 12.04 Monit issues

GeoffroyG

New Pleskian
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
 
Why you do not use default Plesk watchdog for this purpose instead of this third-party monit software?
 
I want to be able to set the difference parameters of Monit (frequency, web interface access,...), and as stated in the plesk monit config, the file is re-generated.

Is there some documentation somewhere on how to override plesk watchdog behavior.

Regards
 
Igor,

Thank you for those tips, but the documentation does not contains any information on how to add new services to monitor, neither does it contains information on how to modify the settings of Monit (frequency, web interface access, ...), so my questions are :
- How to modify the settings for monit (for all the monitored service)?
- How can I add new services to be monitored?

Regards

Geoffroy
 
You can just try to modify corresponding config files

/usr/local/psa/etc/modules/watchdog/monitrc
/usr/local/psa/etc/modules/watchdog/wdcollect.inc.php
 
But then again, as mentioned in the files, the changes would be overwritten.
That solution is also tight coupled with Plesk, what if I want to move away from that, it does't really fit in an Devops way of doing things.
I want to be able to move my applications rapidly between servers and this is one thing that could cause trouble (having to depend on plesk)

Regards

Geoffroy
 
Back
Top