Quote:
Originally Posted by ankitpandey
Thanks for the response.
After first alert mail is sent, the second one should follow after 10 mins. ...
|
Are you wanting the email to nag you until you respond somehow?
In that case, your process creates the error condition.
Your watchdog script notices and makes its complaint announcement.
After a complaint, the watchdog then looks for some acknowledgement.
After SOME_TIME, the watchdog repeats its complaint until it
gets the desired acknowledgement.
Logically, ERROR_EXISTS is a separate state from COMPLAINT_SENT which is
separate from COMPLAINT_ACKNOWLEDGED.
Think about your automobile.
Most ding or buzz with the keys in the dash and the door open.
You want the door open and you know where the keys are but that
blankety-blank-bleeping dinger just keeps making noise. Wouldn't you
like some way to say, "Thanks, I know where the keys are." to stop
the nagger? Would it be better if once acknowledged, you'd get a
fresh complaint after SOME_TIME if the keys remain in the dash?
Good luck. Keep us posted,
~~~ 0;-Dan