Monitor redundent processes running on the Windows Server

Discussion in 'Scripting' started by ash, Jan 20, 2009.

  1. ash

    ash Guest

    Hi Everyone,

    I am looking for some Vbs scrip that can monitor for redundent processes and
    send me an email alert when that happens.
    Your help would be much appreciated.

    Cheers,
    Ash.
     
    ash, Jan 20, 2009
    #1
    1. Advertisements

  2. How do you define a redundant process?
     
    Pegasus \(MVP\), Jan 20, 2009
    #2
    1. Advertisements

  3. ash

    ash Guest

    Hi,

    Same process opening again and again with out closing the earlier one.

    For example: If i go to Taskmanager and check the current running processes
    then i want to find if there are more than one process running with the same
    name . If so the script should send me an alert email mentioning about that
    process.

    Cheers,
    Ash.
     
    ash, Jan 21, 2009
    #3
  4. Just because a task appears several times in the Task Manager does not mean
    that it is redundant. It is perfectly normal to have several tasks called
    "svchost.exe", "cmd.exe" or others. Perhaps you can explain what you're
    trying to achieve.
     
    Pegasus \(MVP\), Jan 21, 2009
    #4
  5. ash

    Al Dunbar Guest

    That's not always an error. I often have two or more instances of notepad
    open to examine multiple text files, each of which appears as a process.

    /Al
     
    Al Dunbar, Jan 21, 2009
    #5
  6. ash

    ash Guest

    Hi,

    Some of the processes are not getting terminated when it completes the job.
    We use Arkeia for backups. Arkeia uses a process called Arkfs.exe in windows.
    I was monitoring process last week i found there were 50 and odd arkfs.exe
    processes opened. What i am thinking is to develop a vbs script to send me a
    report or such every day listing the duplicate/redundent processes running.
    I will totally agree with you that there can be redundent processes.

    Cheers,
    Ash.
     
    ash, Jan 21, 2009
    #6
  7. If you're concerned about redundAnt arkfs.exe processes then you should
    check specifically for these processes, not just for any redundAnt process,
    perhaps like by getting the Task Scheduler to run this batch file once every
    day:

    @echo off
    for /F %%a in ('tasklist ^| find /i /c "arkfs.exe"') do if %%a LSS 2 goto
    :eof
    blat.exe /.. /..

    Blat.exe is a command line mailer that you can download from a number of
    sites.
    Note that line 2 in this batch file is a long line. It start with the word
    "for" and ends with the word ":eof".
     
    Pegasus \(MVP\), Jan 21, 2009
    #7
  8. ash

    ash Guest

    Hi,

    Thanks for the reply.

    I did found another way. I did a vb script:

    1) To get all the process Name, Date and time when they started.
    2) Write that info into a .csv file.
    3) Send an email with that .csv file attached one in a week.

    Thanks a lot for all the help :).

    Cheers,
    Ash.
     
    ash, Jan 26, 2009
    #8
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.