Sponsored Content
Operating Systems HP-UX Scripts for monitoring real time for the error code Post 41487 by Perderabo on Tuesday 7th of October 2003 10:02:26 AM
Old 10-07-2003
Note that I said "I would use cron to schedule it to run every five minutes". If an error occurs no more than 5 minutes later, cron will run the script. I think that an average wait of 2.5 minutes is acceptable.

What is difference between a script running continuosly looping forever (but with a "sleep 300" statement in the loop) and cron running a script every 5 minutes? The only one I can think of is that if your script dies, you lose monitoring if it was looping but not if cron is running it.

You could even have cron run the script once a minute. Will a one minute maximum wait (30 seconds average) really kill you?

When I send an sms message to my phone, it can take several minutes to arrive. How fast is sms for you? And how fast can you read the message and take corrective action?

It does not make sense to require your script to notice an error in a millisecond and then use sms to notify someone.

If your application is that critical, I suggest sending the error messages to a terminal. Arrange to have someone onsite 24 hours a day, 7 days a week staring intently at the terminal. When the error message occurs, the person can respond in seconds.

We actually do that, except that the person is monitoring about 30 terminals. He has procedures to handle some things, but most problems involve calling someone...and he must actually talk to someone, he does not simply send a page or email.

And even then, the scripts that send the error messages to most of those terminals do indeed involve a delay of a minute ot two.
 

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

EPOCH to real time?

hi all :confused: i am wondering if there is a way to convert from EPOCH time to the standard tim, may be using a script or some thing else??????? thanks............................ (5 Replies)
Discussion started by: TheEngineer
5 Replies

2. UNIX for Dummies Questions & Answers

capturing real time

Newbie question: I wrote korn shell script that lets me connect to a cisco switch thru telnet from sun server. I'm wodering if or what command i would use to capture info that is being sent to standard output when the script is running. Putting part of my script below and results. #!/bin/ksh... (2 Replies)
Discussion started by: wisher115
2 Replies

3. Shell Programming and Scripting

DR monitoring shell scripts

Hi All, we need to have 2 scripts in place for the following:. 1) One which will verify if archive log sequence in Production is getting replicated in DR or not. If there is difference, we should receive an email. 2)If there are any errors in DR site like in alert log, mail should be sent to... (1 Reply)
Discussion started by: a1_win
1 Replies

4. Shell Programming and Scripting

Shell script to convert epoch time to real time

Dear experts, I have an epoch time input file such as : - 1302451209564 1302483698948 1302485231072 1302490805383 1302519244700 1302492787481 1302505299145 1302506557022 1302532112140 1302501033105 1302511536485 1302512669550 I need the epoch time above to be converted into real... (4 Replies)
Discussion started by: aismann
4 Replies

5. Shell Programming and Scripting

Converting real time to epoch time

# date +%s -d "Mon Feb 11 02:26:04" 1360567564 # perl -e 'print scalar localtime(1360567564), "\n";' Mon Feb 11 02:26:04 2013 the epoch conversion is working fine. but one of my application needs 13 digit epoch time as input 1359453135154 rather than 10 digit epoch time 1360567564... (3 Replies)
Discussion started by: vivek d r
3 Replies
UUID_TIME(3)							    Libuuid API 						      UUID_TIME(3)

NAME
uuid_time - extract the time at which the UUID was created SYNOPSIS
#include <uuid.h> time_t uuid_time(uuid_t uu, struct timeval *ret_tv) DESCRIPTION
The uuid_time function extracts the time at which the supplied time-based UUID uu was created. Note that the UUID creation time is only encoded within certain types of UUIDs. This function can only reasonably expect to extract the creation time for UUIDs created with the uuid_generate_time(3) and uuid_generate_time_safe(3) functions. It may or may not work with UUIDs created by other mechanisms. RETURN VALUES
The time at which the UUID was created, in seconds since January 1, 1970 GMT (the epoch), is returned (see time(2)). The time at which the UUID was created, in seconds and microseconds since the epoch, is also stored in the location pointed to by ret_tv (see gettimeofday(2)). AUTHOR
Theodore Y. Ts'o AVAILABILITY
libuuid is part of the util-linux package since version 2.15.1 and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. SEE ALSO
uuid(3), uuid_clear(3), uuid_compare(3), uuid_copy(3), uuid_generate(3), uuid_is_null(3), uuid_parse(3), uuid_unparse(3) util-linux May 2009 UUID_TIME(3)
All times are GMT -4. The time now is 06:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy