Em Andamento

Service Monitor

Background:

Our company currently runs the Apache Tomcat application server. This server occasionally runs out of memory and requires a restart.

Requirements:

-A linux shell script that will continuously monitor the log file for the tomcat application server.

-If the text OutOfMemory is written to the log file the application server should be shut down.

-The stop and start scripts are already written as init.d start/stop commands.

-After shutting down the application server and waiting 1 minute, the script should check to see if any threads are still running, if they are, the script should kill these threads.

-After all threads have stopped, the script should start the application server again.

-The log file will not be cleared on a restart, so the script should monitor the output file for the OutOfMemory screen to be written to it (perhaps a 'tail -f' ?). The script should obviously not continuously restart just because of an earlier OutOfMemory error for which the sytem already restarted. When the server is restarted, the startup of the server is also logged in the file--so it is possible that the script could simply look for an OutOfMemory string occurring after the startup string.

Habilidades: Linux

Ver mais: start freelance service monitor, linux shell scripts, tomcat, threads, script kill restart application, kill linux, linux shell restart, running error, apache memory, apache linux kill script, company service, sytem, log tail, memory file, linux script log, tomcat log service, script restart server, linux file monitor script, service log, check output, monitor restart shell, sytem server, apache requires restart, shell script monitor log, script monitor

Acerca do Empregador:
( 1 comentário ) Santa Monica, United States

ID do Projeto: #168680

Premiar a:

arikaterin

Hello, have experience in this sort of scripts. WIll do it fast and without prepaid. Thanks, Sergey

$30 USD em 1 dia
(7 Avaliações)
3.1

9 freelancers estão ofertando em média $43 para este trabalho

linuxsupport

Hi, Please see PM.

$50 USD em 1 dia
(58 Comentários)
5.9
sazmy

Please read my PM

$30 USD em 1 dia
(9 Comentários)
4.6
SGe

Will be done!

$30 USD in 0 dias
(1 Comentário)
3.6
bclz

I can do this, please check PM for details.

$80 USD em 1 dia
(2 Comentários)
2.9
mlyourwayit

Hello, This is a script that I can prepare for you. I will PM you with samples of work and testimonials.

$75 USD em 1 dia
(0 Comentários)
0.0
krom1980

Please look your PMB.

$30 USD in 0 dias
(0 Comentários)
0.0
pashanoid

I will write a perl script to do this. Shell is ok, but this one will also email you with a short report on the occurance of a restart. Will need ssh access to your server.

$35 USD em 1 dia
(0 Comentários)
0.0
rea11ity

I can do this for u.

$30 USD em 1 dia
(0 Comentários)
0.0