Hello All,
So used your great guide to get Monit up and running and tried to modify the NZBGET portion to get it work with Ombi (Plex Requests).
Here is what I came up with:
However, I have some issues. It will detect when Ombi is running and it will alert me when it crashes, however it will not restart it.
Here is what I get from Monit:
So what I have been doing is when I get the email error, I just ssh in and run :
and this works. I'd just really like to be able to have Monit do that.
If anyone can let me know where I went wrong, I'd really appreciate it!
So used your great guide to get Monit up and running and tried to modify the NZBGET portion to get it work with Ombi (Plex Requests).
Here is what I came up with:
Code:
Check process Ombi with pidfile /run/Ombi.pid
start program = "/usr/sbin/service ombi start"
stop program = "/usr/sbin/service ombi stop"
if failed host 127.0.0.1 port 3579 with timeout 60 seconds then restart
However, I have some issues. It will detect when Ombi is running and it will alert me when it crashes, however it will not restart it.
Here is what I get from Monit:
Quote:Execution failed Service Ombi
Date: Sat, 11 Mar 2017 21:14:33
Action: alert
Host: ***
Description: failed to start (exit status 0) -- no output
Your faithful employee,
Monit
So what I have been doing is when I get the email error, I just ssh in and run :
Code:
sudo service ombi restart
If anyone can let me know where I went wrong, I'd really appreciate it!