Olaf,
On 1/3/24 09:52, Olaf Kock wrote:
On 03.01.24 15:34, Christopher Schultz wrote:
Olaf,
+1
The regular expression used with grep should be improved a lot.
I would recommend at least the following:
STAT=`netstat -luptn 2>/dev/null | grep '^tcp.*:8080[^:0-9]' | awk
'{print $6}'`
...or
On 03.01.24 15:34, Christopher Schultz wrote:
Olaf,
+1
The regular expression used with grep should be improved a lot.
I would recommend at least the following:
STAT=`netstat -luptn 2>/dev/null | grep '^tcp.*:8080[^:0-9]' | awk
'{print $6}'`
...or omit the UDP output by using "netstat -lp
Olaf,
On 1/3/24 04:18, Olaf Kock wrote:
Here's an option:
On 03.01.24 09:41, Chaudhary, Mohit wrote:
Hi,
Please find below script code which has been written.
STAT=`netstat -luptn | grep 8080 | awk '{print $6}'`
if [[ "$STAT" != "LISTEN" ]];
then
echo "Tomcat instance down" >> $MESSAGE
mail
Brian,
On 12/30/23 15:42, Brian Braun wrote:
At the beginning, this was the problem: The OOM-killer (something that I
never knew existed) killing Tomcat unexpectedly and without any
explanation
The explanation is always the same: some application requests memory
from the kernel, which always
On 03.01.24 10:18, Olaf Kock wrote:
Here's an option:
On 03.01.24 09:41, Chaudhary, Mohit wrote:
Hi,
Please find below script code which has been written.
STAT=`netstat -luptn | grep 8080 | awk '{print $6}'`
if [[ "$STAT" != "LISTEN" ]];
then
echo "Tomcat instance down" >> $MESSAGE
mail -s
Here's an option:
On 03.01.24 09:41, Chaudhary, Mohit wrote:
Hi,
Please find below script code which has been written.
STAT=`netstat -luptn | grep 8080 | awk '{print $6}'`
if [[ "$STAT" != "LISTEN" ]];
then
echo "Tomcat instance down" >> $MESSAGE
mail -s "Tomcat Instance Down on $HOSTNAME" $ma
Hi,
Please find below script code which has been written.
STAT=`netstat -luptn | grep 8080 | awk '{print $6}'`
if [[ "$STAT" != "LISTEN" ]];
then
echo "Tomcat instance down" >> $MESSAGE
mail -s "Tomcat Instance Down on $HOSTNAME" $mailto < $MESSAGE
Thanks & Regards,
Mohit Chaudhary
-Origin
On 03.01.24 07:55, Chaudhary, Mohit wrote:
Hello Team,
We have RHEL 6.10 server and configured custom script in crontab to
check 8080 port is up or not, if 8080 is down then getting email
alert. But some time we are facing the false alert for 2 to 3 min.
When we are checking the tomcat ser