|
| From: | Christian Hopp |
| Subject: | Re: a) HTTP-Port & quitting, b) monit ran amok on my apache |
| Date: | Tue, 2 Jul 2002 15:21:52 +0200 (CEST) |
On 1 Jul 2002, Jan-Henrik Haukeland wrote:
Moin!
Sorry, for all those attachments.
> Whops! This was new.
There must be always time for something new.|-:
> > Problem a)
> > ----------
> >
> > Mostly when monit is quitted (SIGQUIT, SIGTERM and SIGKILL) there
> > happens something really strange... monit is quited but many of my
> > servers are reported to listen to monit's HTTP port (here 2812).
> > Thus, monit can't restart with HTTP support, because the port is
> > already occupied
>
> I suspect part of this to come from the socket linger code. Funny
> enough I removed this yesterday since it's not something we use and
> monit http will manage without. There is a new beta out on:
>
> http://www.tildeslash.com/monit/beta/
Installed it!
> (The email date headers is also fixed in this release)
Fine!
> Can you check out this relase and see if it helps.
I have completely new insight now. I did the following...
I) I started monit (simply "monit") and stopped it afterward. Then
there is no problem. (also if I just use "validate" and "status" in
between)
II) If I do a "monit restart apache" in between it screws up. Then
there comes "port listening thing". Attachment ->
"lsof_monit_restart_apache"
I thought it would be to the quitting situation, because that was the
time when I realized it!
III) I gonna "monit restart zope". Well now there is also the "zope"
listening to 2812. Attachment -> "lsof_monit_restart_zope"
IV) I have to restart apache/zope/monit by hand.
> > sh 12100 root ... TCP *:2812 (LISTEN)
> > custom_lo 12103 root ... TCP *:2812 (LISTEN)
> > httpd 12104 httpd ... TCP *:2812 (LISTEN)
> > (...)
> > httpd 12180 httpd ... TCP *:2812 (LISTEN)
> >
> > I have never seen a sh listening on a port.
>
> This could be due to the fork done by monit before it starts a new
> program. But one thing first. Check out the beta release first. And
> what does: 'netstat -a -t tcp' says?
This is a netstat after apache is listening on 2812.
iei1-root: /etc/init.d 77 > netstat -a -f inet
TCP
Local Address Remote Address Swind Send-Q Rwind Recv-Q State
-------------------- -------------------- ----- ------ ----- ------ -------
*.* *.* 0 0 0 0 IDLE
*.sunrpc *.* 0 0 0 0 LISTEN
*.* *.* 0 0 0 0 IDLE
*.824 *.* 0 0 0 0 BOUND
(...)
*.58632 *.* 0 0 0 0 LISTEN
localhost.58633 *.* 0 0 0 0 LISTEN
localhost.40012 localhost.58632 32768 0 32768 0 ESTABLISHED
localhost.58632 localhost.40012 32768 0 32768 0 ESTABLISHED
*.3306 *.* 0 0 0 0 LISTEN
*.22 *.* 0 0 0 0 LISTEN
localhost.139 *.* 0 0 0 0 LISTEN
iei1.139 *.* 0 0 0 0 LISTEN
*.smtp *.* 0 0 0 0 LISTEN
localhost.10025 *.* 0 0 0 0 LISTEN
iei1.11022 *.* 0 0 0 0 LISTEN
iei1.4376 *.* 0 0 0 0 LISTEN
iei1.4378 *.* 0 0 0 0 LISTEN
iei1.5000 *.* 0 0 0 0 LISTEN
*.40177 *.* 0 0 0 0 LISTEN
(...)
iei1.servernet.3128 *.* 0 0 0 0 LISTEN
*.8080 *.* 0 0 0 0 LISTEN
*.8021 *.* 0 0 0 0 LISTEN
*.pop3s *.* 0 0 0 0 LISTEN
*.swatssl *.* 0 0 0 0 LISTEN
*.12813 *.* 0 0 0 0 LISTEN
(...)
iei1.22 iei11.42788 35200 0 10136 0 ESTABLISHED
localhost.6010 *.* 0 0 0 0 LISTEN
iei1.991 iei8.nfsd 8760 0 8760 120 ESTABLISHED
iei1.46503 iei11.6000 34220 0 8760 0 ESTABLISHED
localhost.6011 *.* 0 0 0 0 LISTEN
iei1.139 scirocco.4787 7651 0 8760 0 ESTABLISHED
*.2812 *.* 0 0 0 0 LISTEN
*.443 *.* 0 0 0 0 LISTEN
*.80 *.* 0 0 0 0 LISTEN
wetter.80 *.* 0 0 0 0 LISTEN
iei1.80 *.* 0 0 0 0 LISTEN
iei1.139 tartarus.1478 42927 0 8760 0 ESTABLISHED
iei1.80 talentix.rz.tu-clausthal.de.36299 24820 0 8760
0 TIME_WAIT
(...)
iei1.46686 iei1.40003 32768 0 32768 0 TIME_WAIT
iei1.80 talentix.rz.tu-clausthal.de.36319 24820 0 8760
0 TIME_WAIT
(...)
iei1.46698 iei1.40003 32768 0 32768 0 TIME_WAIT
iei1.80 talentix.rz.tu-clausthal.de.36327 24820 0 8760
0 TIME_WAIT
(...)
localhost.46709 localhost.58633 32768 0 32768 0 TIME_WAIT
iei1.46745 iei1.40003 32768 0 32768 0 TIME_WAIT
(...)
iei1.smtp sinfonix.rz.tu-clausthal.de.34906 8760 0 8760
0 TIME_WAIT
iei1.46922 iei1.40003 32768 0 32768 0 TIME_WAIT
localhost.10025 localhost.46920 32768 0 32768 0 TIME_WAIT
iei1.139 printserv.1858 5840 0 10136 0 ESTABLISHED
iei1.46925 iei1.40003 32768 0 32768 0 TIME_WAIT
localhost.46931 localhost.58633 32768 0 32768 0 TIME_WAIT
(...)
iei1.46952 iei1.40003 32768 0 32768 0 TIME_WAIT
iei1.imaps gaia.heim6.tu-clausthal.de.33154 11264 0 10136 0
TIME_WAIT
localhost.46954 localhost.58633 32768 0 32768 0 TIME_WAIT
*.* *.* 0 0 0 0 IDLE
iei1.80 p5088EEB2.dip.t-dialin.net.8401 31636 0 10066 0
TIME_WAIT
*.* *.* 0 0 0 0 IDLE
> > Problem b)
> > ----------
> >
(...)
> 503 Service Unavailable - The server is currently unable to handle the
> request due to a temporary overloading or maintenance of the server.
>
> What is the poll-cycle time, or better send us the monitrc file you
> are using. It could be that the port check is to soon and apache is in
> some initialization faze.
set daemon 120
Attachment -> monitrc_chopp
I have attached the output of "truss monit" and "truss monit quit".
But I don't know if would help you, cuz monit has already forked away
when the problems might happen. Attachment -> monit_truss and
monit_truss_stop
I hope that's gonna help.
Bye,
Christian
--
Christian Hopp email: address@hidden
Institut für Elektrische Informationstechnik fon: +49-5323-72-2113
Technische Universität Clausthal fax: +49-5323-72-3197
pgpkey: https://www.iei.tu-clausthal.de/pgp-keys/chopp.key.asc (2001-11-22)
lsof_monit_restart_zope
Description: Text document
lsof_monit_restart_apache
Description: Text document
monitrc_chopp
Description: Text document
monit_truss.gz
Description: Binary data
monit_truss_stop.gz
Description: Binary data
| [Prev in Thread] | Current Thread | [Next in Thread] |