Freeware and Plugins

Freewaregruppe Monitoring/Nagios-Plugins

check_regkey

Windows-Plugin: performs a check for existence of specified Registrykeys and displays their value

Descprition

check_regkey performs a check for existence of specified Registrykeys and displays their value

Requirements

Windows Operating Systm

EXAMPLES

Searching for the Subkey „ProductName“ in
„HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion“
with the „check_regkey.exe“ stored in „C:\“

Matching Input for the Commandline:
„C:\check_regkey.exe key=”HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion” subkey=ProductName“

Result:

C:/>check_regkey.exe key="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion" subkey="ProductName" Windows Registry OK: Windows 8.1 Pro

If there is no match, the result will be:

„UNKNOWN: Registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProductName does not exist.“

You can access the help and information with the parameter „help“ and further informations with „debug“.

Examples:

C:\>check_regkey.exe help

check_regkey - 1.0
Copyright (C) 2016 LuftEngineering GmbH, Germany
Report Bugs to:development@luft-it.de

check_regkey plugin for Nagios. Monitors windows Registry values

Usage:
     key     - Full path to registry key (required)
     subkey  - Full nameof subkey (required)
     timeout - Seconds before the plugin times out (default = 15)
     version - Plugin version
     help    - show this text
     debug   - Print details, NOT for use with nagios

Examples:

check_regkey.exe key="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurentVersion" subkey=ProductName
C:/>check_regkey.exe key="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion" subkey="ProductName" debug
Key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current\Version
Subkey: ProductName
Timeout: 15
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion" subkey="ProductName" Windows 8.1 Pro
Windows Registry OK: Windows 8.1 Pro

Changelog

2018-11-29
fixed output for Monitoring with OK, Warn, Crit

2016-21-09
1.0 – First version

Copyright

Check_arcconf is licensed under the GNU General Public License.

Author

Joachim Luft will answer your questions to this plugin and is happy about your donation.

 

Freeware name

check_regkey

  • System: Nagios Plugins and Addons
  • Date: 29.November 2018
  • Author: Joachim Luft
  • Version: 1.1

Category: Monitoring/Nagios-Plugins

Tags: Windows-Plugin

Download