#default file provided by monit spk

check process Plex with pidfile "/volume1/Plex/Library/Application Support/Plex Media Server/plexmediaserver.pid"
    start program = "/var/packages/Plex Media Server/scripts/start-stop-status start"
    stop program = "/var/packages/Plex Media Server/scripts/start-stop-status stop"
    if failed host localhost port 32400 then restart
    if 3 restarts within 5 cycles then timeout

#end
