Sponsored Content
Top Forums Shell Programming and Scripting Please help with monitoring stuff Post 302390594 by EAGL€ on Thursday 28th of January 2010 10:53:22 AM
Old 01-28-2010
Hi,

if you are not sure when the server will be started then you can write two scripts, first one will check if server is started or not. Then place this script into crontab and set its check (running) period according to your requirements and your system performance; lets say 15 seconds everyday, or 1 day of month or one day of every week etc.. Then add a conditional part into the first script so that you can trigger the second script with grep part.

lets say:

Code:
if [ -e  "/LOGS/applications_backup/output.txt" ]; then ##server start log##
cd scripts_directory
./log_check_script
else
echo "server not started"
exit 0
fi

 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Simple stuff.

I hacked my TIVO a few months ago. I made a computer specifically for this, but I only used a UNIX boot disk to get all the TIVO goodies to work. I am intersted in getting some version of UNIX on this machine and getting it onto my network. I only want to do some simple file transfers, maybe... (1 Reply)
Discussion started by: IamJAWA
1 Replies

2. Windows & DOS: Issues & Discussions

weird stuff

I coudln't think of another topic to post this under as the OS on the system is XP pro. Ok here is the go. I'm upgrdaing a mates computer. A AMD 1200Mhz and well it wouldn't boot from the CD to do a fresh install (By upgrade I mean OS with complete new install). So I opened up the box and... (4 Replies)
Discussion started by: woofie
4 Replies

3. Shell Programming and Scripting

A schoolboyish stuff

Hi , This is a pretty simple sed command i found when i was checking out one of the codes of my colleague . sed -e 's/\*.*\) \(\ <1*e\ >\) \(*.*\)/\2/' When i tried this on a few text files it was displaying the entire line. If this was to display entire line why sweat out on a sed . Does... (3 Replies)
Discussion started by: kinny
3 Replies

4. Shell Programming and Scripting

awk stuff

Hi, My input file data will be |ABCD|EFGH|IJKL|MNOP |ABCD|EF\|GH|IJKL|MNOP I am expecting output , |"ABCD"|"EFGH"|"IJKL"|"MNOP" |"ABCD"|"EF|GH"|"IJKL"|"MNOP" Note : The change basically the pipe deilmited file does contain | as value for some of the column but | will come with... (8 Replies)
Discussion started by: Nandy
8 Replies

5. Programming

More Arduino Stuff...

HI all... (Apologies for any typos.) To add to Neo's Arduino subject matter I have decided to upload this in ".zip" format. Ignore "*.info" files these are AMIGA icons only and also the "HAM" drawer as these are photos in ancient AMIGA HAM modes. I have noticed that there are current... (6 Replies)
Discussion started by: wisecracker
6 Replies
cmstartres(1m)															    cmstartres(1m)

NAME
cmstartres - starts resource monitoring on the local node for an EMS resource that is configured in a Serviceguard package. SYNOPSIS
cmstartres [-v] [-u] -p package_name resource_name DESCRIPTION
cmstartres starts resource monitoring for an EMS resource on the local node. This resource must be configured in the specified pack- age_name. To start a resource monitoring for an EMS resource in the package, a user must either be superuser(UID=0), or have an access policy of FULL_ADMIN allowed in the cluster configuration file. See access policy in cmquerycl(1m) or cmmakepkg(1m). Options cmstartres supports the following options. -v Verbose output will be displayed. -u Wait for the EMS resource to be available before starting resource monitoring. -p package_name The name of the package where the EMS resource is configured in. This is a required parameter. resource_name Name of the EMS resource to start resource monitoring for. This resource must be configured in the specified pack- age_name. This is a required parameter. RETURN VALUE
cmstartres returns the following values: 0 Successful completion. 1 Command failed. EXAMPLES
To start resource monitoring for the EMS resource /net/interfaces/lan/status/lan0 for package pkgA, do the following: cmstartres -u -p pkgA /net/interfaces/lan/status/lan0 AUTHOR
cmstartres was developed by HP. SEE ALSO
cmstopres(1m), cmquerycl(1m), cmmakepkg(1m). Requires Optional Serviceguard Software cmstartres(1m)
All times are GMT -4. The time now is 12:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy