Skip to content

Commit

Permalink
added service check_file_version and check_nsclient_version
Browse files Browse the repository at this point in the history
  • Loading branch information
gardart committed Apr 26, 2018
1 parent dc7ddce commit 3a45aea
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions usr/share/okconfig/templates/windows/services.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,24 @@ define service {
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
}

0 comments on commit 3a45aea

Please sign in to comment.