Monit Configuration Example

Discussion in 'General OpenLiteSpeed Discussion' started by TexasGreg, Feb 6, 2018.

  1. TexasGreg

    TexasGreg New Member

    Does anyone here have a configuration example for Openlitespeed to use in the Linux monitoring app Monit?

    I will answer my own question for others.

    check process OpenLitespeed with pidfile /tmp/lshttpd/
    start program = "/usr/local/lsws/bin/lswsctrl start"
    stop program = "/usr/local/lsws/bin/lswsctrl stop"
    if cpu usage > 25% for 5 cycles then alert
    if failed host port 80 protocol http then alert
    Last edited: Feb 6, 2018

Share This Page