Open trgrassijr55 opened 4 years ago
Guys, I wrote a PowerShell script to check the OS Level of my computers. I changed my check in the config to use the PowerShell script.
If anyone would like a copy let me know.
Thank you
Tom
This is a duplicate of https://github.com/mickem/nscp/issues/663
Nagios Core 4.3.4 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
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 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
As you can see the versions numbers do not match the OS
Any thoughts or suggestions?
Thank you
Tom
Note: I think it is the Nsclient version 4.4.23 I downloaded 5.2.35
If I upgrade does it preserve the nsclient.ini or should a make a copy of that ?
Thanks again
Another Update,
Aftert upgrading my NSclient to 5.2.41 the OS check now reports 2012 R2 2016 and Windows 10 correctly.
My only issue is that the Windows Server 2019 reports as 2016
Any ideas?
Just tried 5.3.4 same results OS Check reporting 2016 for a Windows 2019 Server