RE: Alarm program
Posted in 2000
On NT you can use this :
Create a bat-file that is running the the oncheck commando's.
That file is making an output file.
After that output file (oncheck.log) has been created you can search for
some words eg. error, ...
%MAILUSER% : user that is sending the mail
%MAILPASS% : password
IFMSG "Error" /f:"c:\\BATCH\\LOG_FILES\\oncheck.LOG"
IF ERRORLEVEL 1 goto END
sendmail -u "%MAILUSER"% -p "%MAILPASS%" -r "user " -s "Error oncheck " -m
"Error oncheck -cc."
GOTO END
:END
Let me know if you can use this.
Kind Regards,
Franky
-----Oorspronkelijk bericht-----
Van: Mukund Shevkar [mailto:mukundshevkar@hotmail.com]
Verzonden: maandag 17 januari 2000 14:06
Aan: informix-list@iiug.org
Onderwerp: Alarm program
I want to run oncheck commands like -cc / -cr and if there is any error send
a mail to DBA. How can I do that? An example of one oncheck -cc command with
event severity and sending mail to DBA will be highly appreciated. URGENT,
TIA
Mukund
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com