Skip to content

Commit

Permalink
Merge pull request #101 from opinkerfi/feature-update-01
Browse files Browse the repository at this point in the history
Feature update 01
  • Loading branch information
gardart authored Aug 1, 2018
2 parents a1cf360 + 50f1e5a commit 960f16a
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions usr/share/okconfig/templates/windows/services.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ define service {
register 0
}

define service {
use okc-windows-service
name okc-windows-v5-check_services
__EXCLUDED_SERVICES exclude=TBS exclude=ShellHWDetection exclude=clr_optimization_v4.0.30319_32 exclude=clr_optimization_v4.0.30319_64 exclude=sppsvc exclude=spupdsvc exclude=MMCSS exclude=gupdate exclude=gupdatem exclude=TrustedInstaller exclude=RemoteRegistry exclude=wscsvc exclude=SysmonLog exclude=MapsBroker exclude=WbioSrvc exclude=MSExchangeNotificationsBroker
__FILTERS filter=name not like 'OneSyncSvc'
check_command okc-crit2warn!$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_service -a "$_SERVICE_FILTERS$" $_SERVICE_EXCLUDED_SERVICES$
service_description Running Services Health
action_url
register 0
}

# windows-check_service
# Checks for one specific Service
# Edited by PyNag on Wed May 30 14:06:07 2012
Expand Down Expand Up @@ -189,3 +200,59 @@ define service {
register 0
}

define service {
use okc-windows-service
name okc-windows-check_os_version
service_description Windows OS Version
__LOWEST_VERSION 50
check_command okc-check_nrpe!check_os_version -a warn='version < $_SERVICE_LOWEST_VERSION$'
register 0
}

define service {
use okc-windows-service
name okc-windows-check_pdh
service_description Total Processor Time counter
__COUNTER \\Processor(_total)\\% Processor Time
__PERF_SYNTAX Total Processor Time
__FILTER_WARNING value > 1
__FILTER_CRITICAL value > 5
__TYPE large
__TIME
__EXTRAOPTS
check_command okc-check_nrpe!check_pdh -a counter="$_SERVICE_COUNTER$" warn="$_SERVICE_FILTER_WARNING$" crit="$_SERVICE_FILTER_CRITICAL$" type="$_SERVICE_TYPE$" time="$_SERVICE_TIME$" perf-syntax="$_SERVICE_PERF_SYNTAX$" "$_SERVICE_EXTRAOPTS$"
register 0
}

define service {
use okc-windows-service
name okc-windows-check_file_version
service_description Nagios NSClient version
__PATH C:\\Program Files\\NSClient++\\nscp.exe
__VERSION_WARNING 0.4
check_command okc-check_nrpe!check_files -a path="$_SERVICE_PATH$" warn="version < '$_SERVICE_VERSION_WARNING$'" "detail-syntax=%(filename): %(version)" show-all
register 0
}

define service {
use okc-windows-service
name okc-windows-check_nsclient_version
service_description Nagios NSClient version
__PATH C:\\Program Files\\NSClient++\\nscp.exe
__VERSION_WARNING 0.4
check_command okc-check_nrpe!check_files -a path="$_SERVICE_PATH$" warn="version < '$_SERVICE_VERSION_WARNING$'" "detail-syntax=%(filename): %(version)" show-all
register 0
}

define service {
use okc-windows-service
name okc-windows-check_certificate_store
service_description Certificate Store Health
__WARNINGDAYS 60
__CRITICALDAYS 30
__CERTIFICATEPATH
__EXCLUDEDTHUMBPRINT
check_command okc-check_nrpe!check_certificate_store -a -WarningDays $_SERVICE_WARNINGDAYS$ -CriticalDays $_SERVICE_CRITICALDAYS$ -CertificatePath $_SERVICE_CERTIFICATEPATH$ -ExcludedThumbprint $_SERVICE_EXCLUDEDTHUMBPRINT$
register 0
}

0 comments on commit 960f16a

Please sign in to comment.