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

Re: [cobalt-users] Resetting apache on raq4 daily any way to test it?



Hi Michael,

you might want to use snmp and ping the port 80 of your webserver, if it
respond you have a running webserver if it doesn't make it send an alarm to
a beeper of something similar.


le 19.8.2001 19:39, Michael à no.spam.please@xxxxxxxxxxxxxxxxxxxx a écrit :

> Hello folks!
> 
> I have to reset my apache server on my raq4 daily because if it runs too long
> without a reset, for some strange reason older versions of MSIE will not
> display SSL pages. When I reset the httpd server, strangly enough, they can
> see them.  I have been resetting it daily by hand and want to add a script in
> cron.daily BUT sometimes (rare) the reset does not take and the server stays
> down!  When I do it by hand I can test this with the browser, and simply
> restart it again.  With a restart script though, that is not possible since I
> am not sitting there to see if its up or not.
> 
> I made a script in /etc/cron.daily called restarthttpd
> 
> #!/bin/sh
> /etc/rc.d/init.d/httpd restart
> 
> #EOF
> 
> 
> Chmod 755 seems to work. OK, now, is there anything I can add to this script
> that will test to see if it REALLY restarted? And if not, try again?
> 
> Thanks guys!
> 
> Michael Thiessen
> 
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users

=======================================================================

Marco Baurdoux
Unix Administrator
Infomaniak Network SA
Avenue de la Praille 26
1227 Carouge
Switzerland
Tel: +41 (0)22 820 35 41
Fax: +41 (0)22 820 35 46
http://web.infomaniak.ch

=======================================================================