Skip to content

Commit

Permalink
Updated version number and history
Browse files Browse the repository at this point in the history
  • Loading branch information
willemdh committed Nov 18, 2016
1 parent fbf2891 commit 4b26aff
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions check_ms_win_tasks.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Script name: check_ms_win_tasks.ps1
# Version: v5.15.160728
# Version: v5.16.161118
# Created on: 01/02/2014
# Author: Willem D'Haese
# Purpose: Checks Microsoft Windows enabled scheduled tasks excluding defined folders and task patterns, returning state of tasks
# with name, author, exit code and performance data to Nagios.
# On Github: https://github.com/willemdh/check_ms_win_tasks
# On OutsideIT: https://outsideit.net/check-ms-win-tasks
# Recent History:
# 08/01/16 => Added check for '0x00041325' to $Struct.TasksOk
# 12/02/16 => Added Write-Log
# 11/06/16 => Added hidden parameter, set to 1 to include hidden tasks
# 14/06/16 => Improved spacing and structure
Expand Down Expand Up @@ -361,16 +360,16 @@ Function Write-Help {
check_ms_win_tasks.ps1: This script is designed to check Windows 2008 or higher scheduled tasks and alert in case tasks
failed in Nagios style output.
Arguments:
-H | --Hostname => Optional hostname of remote system, default is localhost, not yet tested on remote host.
-EF | --ExclFolders => Name of folders to exclude from monitoring.
-IF | --InclFolders => Name of folders to include in monitoring.
-ET | --ExclTasks => Name of task patterns to exclude from monitoring.
-IT | --InclTasks => Name of task patterns to include in monitoring.
-Hid | --Hidden => Switch to determine if hidden tasks need to be excluded.
-H | --Hostname => Optional hostname of remote system, default is localhost, not yet tested on remote host.
-EF | --ExclFolders => Name of folders to exclude from monitoring.
-IF | --InclFolders => Name of folders to include in monitoring.
-ET | --ExclTasks => Name of task patterns to exclude from monitoring.
-IT | --InclTasks => Name of task patterns to include in monitoring.
-Hid | --Hidden => Switch to determine if hidden tasks need to be excluded.
-a | --AlertOnDisabled => If any tasks are disabled, throw a CRITICAL alert.
-w | --Warning => Threshold for warning alert. (not yet implemented)
-c | --Critical => Threshold for critical alert. (not yet implemented)
-h | --Help => Print this help output.
-w | --Warning => Threshold for warning alert. (not yet implemented)
-c | --Critical => Threshold for critical alert. (not yet implemented)
-h | --Help => Print this help output.
"@
Exit $Struct.ExitCode;
}
Expand Down

0 comments on commit 4b26aff

Please sign in to comment.