+ Post New Thread
Results 1 to 3 of 3
Windows Server 2000/2003 Thread, Intel Matrix E-Mail Notification in Technical; Hello all, I still use Intel Matrix 8.x on my 2003 and 2008 R2 servers and it does everything apart ...
  1. #1

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340

    Intel Matrix E-Mail Notification

    Hello all,

    I still use Intel Matrix 8.x on my 2003 and 2008 R2 servers and it does everything apart from e-mail notifications. This is where Intel promote Rapid Storage Technology 10.x (Intel Matrix's replacement), but what they don't tell you is e-mail notifications only work on newer Intel chipsets. How ridiculous!

    I've found a way here how to send e-mail notifications (which works great) on 2008 R2, but how can I achieve this on 2003 Server? I use bmail.exe to e-mail NTBackup logs, so I need something similar to send an e-mail when an event is logged. TIA.

  2. #2

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    For those interested, here's how you can achieve the same thing on 2003 Server. This uses a built in function called eventtriggers.exe.

    If you run the below from a command prompt, you can get more info:

    Code:
    eventtriggers /?
    Firstly you need bmail.exe which you can download here. I already use this to e-mail NTBackup log files to my e-mail address daily (see next post).

    Save this to C:\Windows\Backup

    Create a new text file in C:\Windows\Backup called raidmessage.txt and insert the following, then save it:

    Code:
    Server RAID Degraded on SERVERNAME @ SCHOOL
    Create a second text file in C:\Windows\Backup called trigger.bat and insert the following, then save it:

    Code:
    @echo off
    
    :: Name this script 
    SET _SCRIPTNAME=Degraded!
    
    :: Define message parameters 
    set _LOGLOCATION=%systemroot%\Backup\raidmessage.txt
    set _Text2Mail=%systemdrive%\bmailtext.txt 
    
    :: Define bmail parameters
    :: EXELOCATION is the location of the BMAIL Executable.
    set _EXELOCATION=%systemroot%\Backup
    set _SMTPSERVER=ENTER SMTP
    set _TOADDR=ENTER YOUR E-MAIL ADDRESS
    set _FROMADDR=ENTER FROM E-MAIL ADDRESS
    set _SUBJECT="Server RAID %_SCRIPTNAME%"
    
    :: Because of the formatting of the logfile, not all email programs render it properly. 
    :: Therefore we output the contents of the logfile to a plain ASCII text file. 
    type "%_LogLocation%" >> %_Text2Mail% 
    
    :: Send our email using the ASCII text file generated above as the message body. 
    %_EXELOCATION%\bmail -s %_SMTPSERVER% -t %_TOADDR% -f %_FROMADDR% -a %_SUBJECT% -m "%_Text2Mail%" -c 
    
    :: Delete our text file 
    del %_Text2Mail%
    Open a command prompt and enter:

    Code:
    eventtriggers /create /eid 7202 /tr EventID7202 /ru ADMINISTRATOR /rp PASSWORD /tk C:\Windows\Backup\trigger.bat
    You should see:

    Code:
    SUCCESS: The event trigger "EventID7202" has been created.
    If you wish to query it, enter:

    Code:
    H:\>eventtriggers /query
    You should see this:

    Code:
    Trigger ID Event Trigger Name        Task
    ========== ========================= ========================================
             1 EventID7202               C:\Windows\Backup\trigger.bat
    Please note, I cannot take credit for all the code, but only some of it! I hope this helps you setup all kinds of other triggers!

  3. #3

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    Here’s how I use bmail.exe to send NTBackup logs to my e-mail on 2003 Server:

    Create a new text file in C:\Windows\Backup called Backuplogs.bat and insert the following, then save it:

    Code:
    @echo off
    
    :: Name this script 
    SET _SCRIPTNAME=SCHOOL NAME SERVERNAME
    
    :: Define backup logfile parameters 
    set _LOGLOCATION=%USERPROFILE%\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data
    set _Text2Mail=%systemdrive%\bmailtext.txt 
    
    :: Define bmail parameters
    :: EXELOCATION is the location of the BMAIL Executable.
    set _EXELOCATION=%systemroot%\Backup
    set _SMTPSERVER=ENTER SMTP
    set _TOADDR=ENTER YOUR E-MAIL ADDRESS
    set _FROMADDR=ENTER FROM E-MAIL ADDRESS
    set _SUBJECT="Backup Log for %_SCRIPTNAME%"
    
    :: Find most recent logfile. 
    :: Using the /od  option of the DIR command lists the files in the order they were last modified, newest being on the bottom. 
    :: The /b option removes any other formatting from the output of the DIR command.
    for /f %%j in ('dir "%_LOGLOCATION%\backup*.log" /od /b') do set _currentLog=%%j 
    
    :: Because of the formatting of the logfile, not all email programs render it properly. 
    :: Therefore we output the contents of the logfile to a plain ASCII text file. 
    type "%_LogLocation%\%_CurrentLog%" >> %_Text2Mail% 
    
    :: Send our email using the ASCII text file generated above as the message body. 
    %_EXELOCATION%\bmail -s %_SMTPSERVER% -t %_TOADDR% -f %_FROMADDR% -a %_SUBJECT% -m "%_Text2Mail%" -c 
    
    :: Delete our text file 
    del %_Text2Mail%
    Create a Scheduled Task to run Backuplogs.bat located in C:\Windows\Backup at 8am every morning, or however often you want to set the schedule.

    Please note, I cannot take credit for all the code, but only some of it! I hope this helps you setup e-mailing NTBackup logs to yourself!

SHARE:
+ Post New Thread

Similar Threads

  1. E-mail notifications for printer alerts
    By X-13 in forum General Chat
    Replies: 10
    Last Post: 7th July 2011, 09:25 PM
  2. Ping Fail Notification (E-mail)
    By mbird in forum Wireless Networks
    Replies: 7
    Last Post: 24th February 2010, 10:48 PM
  3. Lotus Notes 6.5 e-mail notification
    By Fridge in forum Windows
    Replies: 0
    Last Post: 17th June 2009, 11:34 AM
  4. [CLOSED] Bug/Error: E-mail Notifications
    By FN-GM in forum EduGeek.net Site Problems
    Replies: 10
    Last Post: 18th January 2008, 05:30 PM
  5. Hmm wheres my mail
    By ChrisH in forum Windows
    Replies: 13
    Last Post: 1st September 2005, 10:12 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •