NSCLIENT on all Servers and Desktops is 4.4.23
I have a Check setup which is the same for all to Check OS Version
Code: Select all
define service {
host_name Host
service_description Check OS Version
check_interval 10080
notification_interval 10080
check_command check_nrpe!Check_OS_Version! -a "perf-config=*(ignored:true)"
servicegroups OSVersion
use generic-service
}
I have the following OS Versions Windows Server 2012R2 , Windows Server 2016 Data Center, Windows Server 2019 Data Center
Windows 10 Pro, Windows 10 LTSB, Windows 10 Enterprise
The checks show Windows 2012 for ALL Servers and Windows 8 for all Desktops
I run the command from the console
Windows 2012R2 Server Test
Code: Select all
root@serv017:/usr/local/nagios/libexec# ./check_nrpe -H SERV012 -t 30 -c Check_OS_Version -a show-all
OK: Windows 2012 (6.2.9200)|'version'=62;50;50
Windows 2016 Server Test
root@serv017:/usr/local/nagios/libexec# ./check_nrpe -H SERV002-2016 -t 30 -c Check_OS_Version -a show-all
OK: Windows 2012 (6.2.9200)|'version'=62;50;50
Windows 2019 Server Test
root@serv017:/usr/local/nagios/libexec# ./check_nrpe -H SERV027-N1 -t 30 -c Check_OS_Version -a show-all
OK: Windows 2012 (6.2.9200)|'version'=62;50;50
Windows 10 Pro test
root@serv017:/usr/local/nagios/libexec# ./check_nrpe -H Desktop10 -t 30 -c Check_OS_Version -a show-all
OK: Windows 8 (6.2.9200)|'version'=62;50;50
Any thoughts or suggestions?
Thank you
Tom