Scripts for monitoring real time for the error code


 
Thread Tools Search this Thread
Operating Systems HP-UX Scripts for monitoring real time for the error code
# 8  
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.
# 9  
Old 10-07-2003
Many thanks for your advise. You definitely got the points.

Do you mean that i can run the cron for every one minutes?
And i am actually able to receive the error from the machine out to my PC in less than a minute? The time for the information to be SMS will depend on the transsmion network itself, right?

If my SMS application is written with Visual Basic.net, do you think it is possible to integrate with Unix/Linux?
# 10  
Old 10-07-2003
I'd be surprised if you can run visual basic on Unix. But you will need a Microsoft expert to be sure.

Yes, cron can run a script once a minute.

To unix, the sms is just a mail message. It will get passed from computer to computer until it reaches your phone companies computer. Only then does it become sms in a true sense. And mail is seldom treated as a high priority. Your local computer will try to contact your local mailhost. If your mailhost is too busy, it will reject the connection. Then your local computer will just queue the mail. One an hour or once a half hour, your computer will try to send stuff in the queue. It typically will take days before it gives up and returns the mail to sender. You can adjust your own settings. But you cannot adjust everyone else's. Mail really should not be used for emergencies.

When I use sms, it is for messages like "part 2 of the big rsync job is done". As long as the messages arrive, I know that my job is progressing. If a message is overdue, then I can check the status.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. 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

2. 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

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. 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

5. 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
Login or Register to Ask a Question