monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Monit won't monitor my program


From: Martin Pala
Subject: Re: Monit won't monitor my program
Date: Wed, 17 Sep 2014 19:59:13 +0200

Hi,

the configuration you use expects that the "/opt/SimpleHelp/ssport" is PID file 
... what you get if you run "cat /opt/SimpleHelp/ssport"?

Regards,
Martin


On 17 Sep 2014, at 16:07, chinaboy <address@hidden> wrote:

> 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.
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

[Prev in Thread] Current Thread [Next in Thread]