Sponsored Content
Top Forums Shell Programming and Scripting grep startup messages from catalina.out file Post 302482593 by coolguyamy on Wednesday 22nd of December 2010 03:56:08 AM
Old 12-22-2010
grep startup messages from catalina.out file

Hello Team,

I am trying to extract date from the following output and trying to compare with current date and if there is 10 minute difference between the two. it should logs message in the file server is started.can anyone help me to implement this in the script?

Quote:
bash-3.00$ grep -i startup catalina.out
Dec 19, 2010 3:28:36 PM org.apache.catalina.startup.Catalina load
Dec 19, 2010 3:28:39 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3258 ms
bash-3.00$
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Startup File

I am running Mandrake 8.1 and am wondering what file Linux uses to start services. Such as MySQLD and Apache. I need to add a program to this startup file so that it loads when linux loads. Thanks Gregg (3 Replies)
Discussion started by: gdboling
3 Replies

2. Solaris

Catalina Analysis

How can I make analysis for catalina.out (2 Replies)
Discussion started by: Burhan
2 Replies

3. SuSE

How to record shutdown/startup messages

The wtmp file records all logins and logouts. Its format is exactly like utmp except that a null user name indicates a logout on the associated terminal. Furthermore, the terminal name "~" with user name "shutdown" or "reboot" indicates a system shutdown or reboot and the pair of terminal names... (1 Reply)
Discussion started by: Laksmi
1 Replies

4. Solaris

Log Rotation of Catalina.out

Hi, Recently i received a request to rotate logs of catalina.out (tomcat). The file size was about 807 MB. I used logadm to truncate the log ( -c ) and zip (-z 0) it. Everything worked fine, catalina.out.0.gz was created (22 MB) and the size of original catalina.out became 0kb. After... (2 Replies)
Discussion started by: Mack1982
2 Replies

5. Shell Programming and Scripting

Apache tomcat startup script not booting at startup.

I copied the script from an AskUbuntu post - #!/bin/bash ### BEGIN INIT INFO # Provides: tomcat7 # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop Tomcat server ### END INIT INFO ... (14 Replies)
Discussion started by: Hijanoqu
14 Replies

6. UNIX and Linux Applications

Logrotate with catalina.out "daily compressed file is overwriting the logs"

Hi Everyone, We are trying to do a logrotate for "catalina.out" daily, So have used the "copytruncate" option in the logrotate configuration but ended up seeing there was a 0kb file touched with "catalina.out" and the other file with the current date(compressed) file created and seems the log is... (2 Replies)
Discussion started by: thiyagoo
2 Replies

7. Shell Programming and Scripting

Montioring Script Tomcat catalina.out

Hi, I need to monitor the tomcat log file called "Catalina.out" for any errors like out of memory,JDBC exceptions,broken pipe any other errors and exceptions The script should monitor this file and send a mail instantly and create a text file with errors day to day. Iam using Solaris... (3 Replies)
Discussion started by: chaithanyaa
3 Replies

8. UNIX for Beginners Questions & Answers

No init messages display during startup/shutdown

This question is more in the line of how init messages get sent to a console during startup/shutdown. My problem has to do with exporting a VM from AWS to KVM (and a retry on virtual box). I am looking for a understanding on how init messages are sent to a device and what controls them My two... (0 Replies)
Discussion started by: jtkells
0 Replies

9. OS X (Apple)

MacOS 10.15 (Catalina) switches from bash to zsh

Interestingly Apple has decided to switch the default shell for new users from bash to zsh in MacOS Catalina (10.15) Use zsh as the default shell on your Mac - Apple Support Another interesting fact is that Catalina also comes with /bin/dash (5 Replies)
Discussion started by: Scrutinizer
5 Replies
OCF_HEARTBEAT_TOMCAT(7) 					OCF resource agents					   OCF_HEARTBEAT_TOMCAT(7)

NAME
ocf_heartbeat_tomcat - Manages a Tomcat servlet environment instance SYNOPSIS
tomcat [start | stop | status | monitor | meta-data | validate-all] DESCRIPTION
Resource script for tomcat. It manages a Tomcat instance as an HA resource. SUPPORTED PARAMETERS
tomcat_name The name of the resource (optional, string, no default) script_log A destination of the log of this script (optional, string, no default) tomcat_stop_timeout Time-out at the time of the stop (optional, integer, no default) tomcat_suspend_trialcount The re-try number of times awaiting a stop (optional, integer, no default) tomcat_user A user name to start a resource (optional, string, no default) statusurl URL for state confirmation (optional, string, no default) java_home Home directory of the Java (required, string, no default) catalina_home Home directory of Tomcat (required, string, no default) catalina_pid A PID file name of Tomcat (optional, string, no default) tomcat_start_opts Tomcat start options (optional, string, no default) catalina_opts Catalina options (optional, string, no default) catalina_rotate_log Rotate catalina.out flag (optional, string, no default) catalina_rotatetime Time span of the rotate catalina.out (optional, integer, no default) SUPPORTED ACTIONS
This resource agent supports the following actions (operations): start Starts the resource. Suggested minimum timeout: 60s. stop Stops the resource. Suggested minimum timeout: 120s. status Performs a status check. Suggested minimum timeout: 60. monitor Performs a detailed status check. Suggested minimum timeout: 30s. Suggested interval: 10s. meta-data Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s. validate-all Performs a validation of the resource configuration. Suggested minimum timeout: 5. EXAMPLE
The following is an example configuration for a tomcat resource using the crm(8) shell: primitive example_tomcat ocf:heartbeat:tomcat params java_home=string catalina_home=string op monitor depth="0" timeout="30s" interval="10s" SEE ALSO
http://www.linux-ha.org/wiki/tomcat_(resource_agent) AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors) resource-agents 1.0.3 07/05/2010 OCF_HEARTBEAT_TOMCAT(7)
All times are GMT -4. The time now is 09:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy