Re: Wrong PID

2017-09-07 Thread Bhuvan Gupta
Using monit 5.23.0 on centos 7 On Sat, Aug 26, 2017 at 3:14 PM, Bhuvan Gupta wrote: > Hello all, > > I have written check command like > > check process sample-test with pidfile /tmp/sample-test.pid > start = "/bin/sh -c 'cd /tmp ; nohup sleep 1000 1>/tmp/sample-test.log

Re: Re: Wrong PID

2017-09-07 Thread Bhuvan Gupta
Thanks for putting in time. As suggest by the community i have moved to using separate shell files, which work great :) Thanks On Fri, Sep 1, 2017 at 8:38 PM, wrote: > Hello Bhuvan Gupta, > I'm late, but I can't give you some help or hint. > I have no access to an

RE: Re: Wrong PID

2017-09-01 Thread lutz . mader
Hello Bhuvan Gupta, I'm late, but I can't give you some help or hint. I have no access to an Centos 7 system and do some additional testing on a Mac OS X, Linux and AIX system an everything works well.   > Here is the details:> monit 5.23.0> Centos 7> gnome: 3.14.2  The way you try to start an

Re: Wrong PID

2017-08-28 Thread Bhuvan Gupta
Lutz Mader, Thanks for the reply. Yes i understand that using separate script file is good idea. But just curious to know how things work and what might have gone wrong. Here is the details: monit 5.23.0 Centos 7 gnome: 3.14.2 On Sun, Aug 27, 2017 at 1:20 AM, Lutz Mader

Re: Wrong PID

2017-08-26 Thread Lutz Mader
Hello, I try to check your sample based on Monit 5.19.0 on a Mac OS X system and everything works well. Which operating system or monit version do you use? Your sample works well. check process sample-test with pidfile /tmp/sample-test.pid start = "/bin/sh -c 'cd /tmp; nohup sleep 1000

Re: Wrong PID

2017-08-26 Thread Bryan Harris
I think you would have a better time writing a script. Inside script put your commands. start = "/tmp/script.sh" with timeout 10 On Sat, Aug 26, 2017 at 5:44 AM, Bhuvan Gupta wrote: > Hello all, > > I have written check command like > > check process sample-test with