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
apticron(1)						      General Commands Manual						       apticron(1)

NAME
apticron - Generate a mail listing packages which are pending an upgrade SYNOPSIS
apticron [--cron] DESCRIPTION
apticron is a shell script which generates a mail with a list of all packages currently pending an upgrade, as well as summary of changes - using apt-listchanges - to a configurable Email address. apticron is mainly intended for automatic notification of pending security updates but can also be used in many other situations where timely updates are necessary. The --cron option is only meant to be used when invoked by cron in order to run no more than once a day. FILES
/etc/apticron/apticron.conf Configuration file, Email address to mail and profile for use with apt-listchanges are configurable. /etc/cron.d/apticron Cron job for executing apticron daily. /etc/cron.daily/apticron Fallback cron script for executing apticron (if no crond running or system down at designated time). /var/lib/misc/apticron.cron Time stamp file used by apticron when invoked with --cron option. SEE ALSO
apt-get(8), apt-listchanges(1), cron(8) AUTHOR
Apticron was initially developed by Colm MacCarthaigh <colm.maccarthaigh@heanet.ie> with contributions from Marc Sherman <msherman@projec- tile.ca>. Since 2006 it is maintained and improved by Tiago Bortoletto Vaz <tiago@debian.org>. apticron(1)
All times are GMT -4. The time now is 08:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy