Giter VIP home page Giter VIP logo

Comments (7)

willemdh avatar willemdh commented on June 19, 2024

Never had that error. Ideally it should be possible to exclude errors as a parameter.

from check_ms_win_tasks.

nmat avatar nmat commented on June 19, 2024

Checking documentation:

https://msdn.microsoft.com/en-us/library/windows/desktop/aa383604(v=vs.85).aspx

SCHED_E_ALREADY_RUNNING
0x8004131F
An instance of this task is already running.

from check_ms_win_tasks.

nmat avatar nmat commented on June 19, 2024

might be even more error numbers in there that can be applied to the rules set in the ps1 script to minimize the alerts of a running instance/task

from check_ms_win_tasks.

nmat avatar nmat commented on June 19, 2024

ElseIf ( $ObjTask.LastTaskResult -eq '0x8004131F'-or $ObjTask.LastTaskResult -eq '0x00041301' -and $ObjTask.Enabled ) { If ( ! $Struct.InclTasks ) { If ( ! ( Compare-Array -Str $ObjTask.Name -Patterns $Struct.ExclTasks ) ) { $Struct.RunningTasks += $ObjTask $Struct.TasksRunning += 1 } }

from check_ms_win_tasks.

nmat avatar nmat commented on June 19, 2024

last one is more correct when following the documentation

from check_ms_win_tasks.

bsivavani avatar bsivavani commented on June 19, 2024

Hi,

We are also facing the same issue, receiving CRITICAL alert even though task is running because of 0x8004131F Error code.

Modified the ps code as suggested to fix the issue.

from check_ms_win_tasks.

willemdh avatar willemdh commented on June 19, 2024

Integrated this in the last commit. Closing.

from check_ms_win_tasks.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.