[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Monit won't monitor my program
From: |
chinaboy |
Subject: |
Monit won't monitor my program |
Date: |
Wed, 17 Sep 2014 07:07:05 -0700 (MST) |
Hi all.
Have been struggling with this for the past few days. I have program on my
VPS and for some reason I can't get Monit to recognize it. I reached out to
the developer of the program for some assistance but they have provided
very
little help. I had difficulty locating the process so they told me to run
the command "ps aux | grep ProxyServer" and below is what it produced.
address@hidden:~# ps aux | grep ProxyServer
root 31793 5.6 44.1 1211704 221868 ? Sl 08:48 0:14
./jre1.6.0_16/bin/java -Xmx384m -Djava.net.preferIPv4Stack=true -cp
lib/secure_shelp.jar:lib/secure_utils.jar:lib/secure_nlink.jar:lib/mail.jar:lib/activation.jar
-Djava.awt.headless=true SecureRunner1
com.aem.shelp.proxy.ProxyServerStartup
root 32070 0.0 0.1 11744 896 pts/0 S+ 08:52 0:00 grep
--color=auto ProxyServer
Below is what I currently have in my montitrc file and script. Monit status
just says "Execution Failed" Please help me configure this. Nothing I tried
has worked. I tried adding "echo $$ > /opt/SimpleHelp/simplehelp.pid; " to
my script to create the PID file. It creates the file but still doesn't
work. The developer said that the PID is stored in the file ssport but I
still can't get monit to work. Please help.
check process SimpleHelp with path /opt/SimpleHelp/ssport
start program = "/etc/init.d/simplehelp start"
stop program = "/etc/init.d/simplehelp stop"
In my bash file I have.
#!/bin/bash
SHELPDIR=/opt/SimpleHelp
case "$1" in
start)
cd $SHELPDIR ; sh ./serverstart.sh
;;
stop)
cd $SHELPDIR ; sh ./serverstop.sh
;;
reload|force-reload)
cd $SHELPDIR ; sh ./serverstop.sh
cd $SHELPDIR ; sh ./serverstart.sh
;;
restart)
cd $SHELPDIR ; sh ./serverstop.sh
cd $SHELPDIR ; sh ./serverstart.sh
;;
esac
--
View this message in context:
http://nongnu.13855.n7.nabble.com/Monit-won-t-monitor-my-program-tp189931.html
Sent from the monit-general mailing list archive at Nabble.com.
- Monit won't monitor my program,
chinaboy <=
- Re: Monit won't monitor my program, Martin Pala, 2014/09/17
- Re: Monit won't monitor my program, chinaboy, 2014/09/17
- Re: Monit won't monitor my program, Martin Pala, 2014/09/17
- Re: Monit won't monitor my program, chinaboy, 2014/09/17
- Re: Monit won't monitor my program, chinaboy, 2014/09/17
- Re: Monit won't monitor my program, Javier Viola, 2014/09/17
- Re: Monit won't monitor my program, chinaboy, 2014/09/17
- Re: Monit won't monitor my program, Javier Viola, 2014/09/17
- ProcMatch Was: Monit won't monitor my program, Kevin Chadwick, 2014/09/17
- Re: ProcMatch Was: Monit won't monitor my program, Martin Pala, 2014/09/18