Check Operating System Version

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Check Operating System Version

Post by kwhogster »

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

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

As you can see the versions numbers do not match the OS

Any thoughts or suggestions?

Thank you

Tom :D
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Check Operating System Version

Post by kwhogster »

I figured this out .

I was running nsclinet 4.4.23 and needed to upgrade to 5.2.41

Now my Windows 2012 R2 servers show the correct OS version.

now off to upgrade all my computers to the latest nsclient 5.2.41

This can be locked as resolved.
Locked