Advertisement
fduran

Monitoring Plesk with Monit

Feb 20th, 2012
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. www.fduran.com
  2. Monitoring Plesk with Monit
  3.  
  4. Plesk is not mentioned anywhere in monit's site http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=plesk+site%3Ammonit.com and I couldn't find any article or tutorial about how to monitor Plesk using Monit, so I'm writing one myself in the hopes other people with the same problem find it.
  5.  
  6. Plesk 8.3 on Centos5
  7.  
  8. etc/init.d/psa status
  9. psa dead but subsys locked
  10.  
  11. I check plesk's logs but there's nothing there that sheds light on this issue and server utilization has been low.
  12. the "solution" given by the vendor is to restart plesk http://kb.parallels.com/6566 (duh! but why is Plesk dying?)
  13.  
  14. so I looked into adding Plesk as a monitored service in monit.
  15.  
  16.  
  17. upgraded monit to Monit 5.2.5
  18.  
  19. add to monit config file:
  20.  
  21. check process https with pidfile /usr/local/psa/admin/logs/httpsd.pid
  22. start program = "/etc/init.d/psa start"
  23. stop program = "/etc/init.d/psa stop"
  24. if failed host localhost port 8443 type tcpSSL protocol http
  25. then restart
  26.  
  27. after restarting monit
  28.  
  29. Error: ssl check cannot be activated. SSL is not supported
  30.  
  31. apt-get install libssl-dev (dind't work)
  32. apt-get install openssl-devel (Centos5)
  33.  
  34. apt-cache search ssl-dev
  35.  
  36. this fixed the ssl support issue.
  37.  
  38. If that monit configuraiton is not working check that the pid file exists at that location when Plesk is running, test plesk (psa) start/stop commands and check monit errors in its log.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement