[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Basic q's abt monit 4.5.1
From: |
Christian Kowarzik |
Subject: |
Re: Basic q's abt monit 4.5.1 |
Date: |
Fri, 16 Sep 2005 13:31:00 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720) |
Hi Anuj,
anuj agrawal wrote:
Hello all,
Well for my intro i am a newbie in the world of MONIT
and hence facing some difficulties using it.
I am using monit 4.5.1 to monitor a certain server
which is written in java. When the server is up there
is no pid file generated by it hence i wrote my own
pid file and i wrote the pid of the server process in
it.
Once this was done i made an emtry in the monitrc file
placed in /etc as:
check process server with pidfile /var/run/server.pid
start = "............"
stop = "............"
after doing this i started the monit web interface in
which it was easily recognising and monitoring the
process "server".It showed the status as running and
all the required information was correctly displayed.
Now,i pressed the "stop" button and hence the process
was successfully stopped.
Now comes the problem , when i try to start the server
through monit it doesnt and shows "execution failed".
Questions i have are:
1) When starting a service how does monit come to know
the pid of the process???
by looking in the pid file you specified in the monit.conf like in
'check process server with pidfile /var/run/server.pid'
2) Does monit itself places the pid of the started
process in the pid file??(i.e. updates the pidfile)
no, the proccess you started itself is responsible for placing its pid
in the pidfile - or your startup script if the proccess itself is not
able to do so
Eagerly awaiting replies.
Thanks,
Anuj
christian
__________________________________________________________
Yahoo! India Matrimony: Find your partner online. Go to http://yahoo.shaadi.com
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
ckowarzik.vcf
Description: Vcard
- Basic q's abt monit 4.5.1, anuj agrawal, 2005/09/16
- Re: Basic q's abt monit 4.5.1,
Christian Kowarzik <=
- Re: Basic q's abt monit 4.5.1, anuj agrawal, 2005/09/18
- Re: Basic q's abt monit 4.5.1, Martin Pala, 2005/09/18
- Re: Basic q's abt monit 4.5.1, anuj agrawal, 2005/09/19
- Re: Basic q's abt monit 4.5.1, Martin Pala, 2005/09/19
- Re: Basic q's abt monit 4.5.1, anuj agrawal, 2005/09/20
- Re: Basic q's abt monit 4.5.1, Martin Pala, 2005/09/20
- Re: Basic q's abt monit 4.5.1, anuj agrawal, 2005/09/21
- Re: Basic q's abt monit 4.5.1, Ben Hartshorne, 2005/09/21