[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
monit cant see process
From: |
Oliver . Walter |
Subject: |
monit cant see process |
Date: |
Fri, 6 Dec 2002 13:51:03 +0100 |
hallo list,
i have a prob with monit and several process without pidfile.
the processes are java agents with several protocol support.
(if it helps, it is the internet file system from oracle)
i created a wrapper script(ifsctrl.sh):
#######################################
case $1 in
start)
exec 2>&1 $ORACLE_HOME/ifs1.1/bin/ifsstart &
sleep 2;
echo `pgrep -f 'ifs1.1/jre/bin/sparc/native_threads/jre -mx16M'`\
> $ORACLE_HOME/ifs1.1/log/jre.pid;
;;
stop) exec 2>&1 $ORACLE_HOME/ifs1.1/bin/ifsstop &
# wait some time until all processes are shutdown;
sleep 30;
# kill all processes remaining
for i in `pgrep -f ifs1.1/jre/bin/sparc/native_threads/jre`; do
kill $i;
done;
;;
*) echo "usage: ctxsrv {start|stop}";;
esac
#######################################
cat $ORACLE_HOME/ifs1.1/log/jre.pid gives me the same PID as
pgrep -f "jre -mx16M"
my .monitrc looks like:
#######################################
check jre with pidfile /data/oracle/product/8.1.7/ifs/log/jre.pid
start program = "/home/oracle/jobs/ifsctrl.sh start"
stop program = "/home/oracle/jobs/ifsctrl.sh stop"
#######################################
But monit always tells me the process is not running and the pid
is 0. And trys to restart the process.
I thought about to make a "timeout (1, 1)" in .monitrc but this
is an "ugly workaround".
Anyone an idea to solve this problem?
regards
Oliver Walter
Zentrale Informationsverarbeitung
Bosch Rexroth AG
The Drive & Control Company
Sandweg 45
D-97737 Gemünden-Langenprozelten
telefone: +49(0)9352-18-1862
mailto:address@hidden
http://www.boschrexroth.com
- monit cant see process,
Oliver . Walter <=