Windows 2019 Server OS Check

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:

Windows 2019 Server OS Check

Post by kwhogster »

Hello
Using Nagios 4.3.4 Core
I have many VM's running Using NSCLIENT 5.2.35
My OS Levels are Windows 10 , Windows 2012 R2, Windows 2016 and Windows 2019.

I have a check

Code: Select all

define service {
        host_name               SERV030
        service_description     Check OS Version
        check_command           check_nrpe!Check_OS_Version! -a "perf-config=*(ignored:true)"
        servicegroups           OSVersion
        check_interval          10080
        notification_interval   10080
        check_period            backup_WIN19
        notification_period     backup_WIN19
        use                     generic-service
        }
On all my computers this checks reports the correct OS except for the Windows 2019 Server it reports them as 2016 Servers.

I posted on the NSClient forum but I have yet to receive a response.

I have sent emails to the author and have not heard back.

I look on the nsclient site and files are dated back in 2018 and I see no information or updates in 2019 or 2020.

Is any one else having this same issue?

Also been thinking of trying Nagios ncpa agent any one have any experience with NCPA? Do my existing NRPE checks work with NCPA?

Thank you

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

Re: Windows 2019 Server OS Check

Post by kwhogster »

Guys,

I wrote a PowerShell script to get the OS Version of the computer.

Changed my check to use the PowerShell script and now it reports the correct OS Version.

If anyone would like a copy of the script let me know.

This issue can be locked as self resolved.

Thank you

Tom
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Windows 2019 Server OS Check

Post by scottwilkerson »

kwhogster wrote:Guys,

I wrote a PowerShell script to get the OS Version of the computer.

Changed my check to use the PowerShell script and now it reports the correct OS Version.

If anyone would like a copy of the script let me know.

This issue can be locked as self resolved.

Thank you

Tom
Ok, Marking resolved and locking. It would be great if you could add the script to the community exchange
https://exchange.nagios.org/
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked