Comments (7)
Never had that error. Ideally it should be possible to exclude errors as a parameter.
from check_ms_win_tasks.
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.
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.
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.
last one is more correct when following the documentation
from check_ms_win_tasks.
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.
Integrated this in the last commit. Closing.
from check_ms_win_tasks.
Related Issues (13)
- Notification for tasks running for long time in Task Scheduler HOT 3
- Critical state exit code -2147020576 HOT 10
- Failed to execute check_ms_win_tasks: 87: Incorrect Parameter HOT 1
- tasks by another users are not visible HOT 1
- Include Folder for whole Path? HOT 3
- Name of ok task
- LastExec (-LE)
- is there a way to check if a task is enabled or not? HOT 1
- Problem with Exitcode:1 HOT 2
- Extend documentation "How to monitor your scheduled tasks?" HOT 1
- Add option to display full task paths HOT 1
- Assume 'success' for tasks that never ran (yet) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from check_ms_win_tasks.