Window 2016 Server Windows 2008 Windows 2012 R2 servers
run this from my windows server
C:\Program Files\NSClient++>nscp nrpe --host 127.0.0.1 --command check_wmi -a "query=Select Version,Caption from win32_OperatingSystem"
Microsoft Windows Server 2008 R2 Enterprise , 6.1.7601
Run successfully
Add this to the nsclient which is 5.1.44
Code: Select all
; External scripts - A list of scripts available to run from the CheckExternalScripts module. Syntax is: `command=script arguments`
[/settings/external scripts/scripts]
; check_os - Alias for check_os. To configure this item add a section called: /settings/external scripts/scripts/check_os
check_os = check_wmi -a "Query=Select Version,Caption from win32_OperatingSystem" columnSyntax="%value%" columnSeparator=", " ignore-perf-data
[tgrassi@anakin libexec]$ ./check_nrpe -t 60 -H printing.fdu.edu -c check_os
Failed to execute check_os: 2: The system cannot find the file specified.
Any ideas Thank you Tom