Windows OS 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.
peakyblinder
Posts: 63
Joined: Tue Mar 25, 2014 4:39 am

Windows OS Version

Post by peakyblinder »

Hi,

Just wandering if anyone has worked out a way of reporting the Windows OS Version of a host?

I have VB script that can run locally and will output the OS Version. I have no idea how to write plugins and the time it will take to learn it I will be an old man.

I did think about WMI but cannot find it being done anywhere.

Obviously this is a nice to have and not must have.

Thanks,
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Windows OS Version

Post by eloyd »

I'd look at NSclient++ if I were you. Specifically, the section on checking OS version.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
peakyblinder
Posts: 63
Joined: Tue Mar 25, 2014 4:39 am

Re: Windows OS Version

Post by peakyblinder »

Excellent! I cant see the wood for the trees...

Will look into this. Cheers eloyd!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Windows OS Version

Post by eloyd »

Sometimes the trees themselves are all you need to see. :)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
peakyblinder
Posts: 63
Joined: Tue Mar 25, 2014 4:39 am

Re: Windows OS Version

Post by peakyblinder »

Haha... very true!

Don't suppose you now how to create a relevant handler for this in nsclient.ini file?
I've not had much call to use NRPE so far and the ones I have had to use, there was a decent guide to go with it.

Thanks,
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Windows OS Version

Post by eloyd »

Read the second link in my reply and look down at the examples.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
peakyblinder
Posts: 63
Joined: Tue Mar 25, 2014 4:39 am

Re: Windows OS Version

Post by peakyblinder »

This check doesnt seem to be available in the latest NSClient - http://www.nsclient.org/nscp/wiki/CheckSystem

My nsclient ini file doenst contain a command for checking the OS version.

Am I missing something here or being completely stupid?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Windows OS Version

Post by eloyd »

Not sure why it's not in the docs, but it's sure in the source:

http://www.nsclient.org/nscp/browser/ns ... System.cpp
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Windows OS Version

Post by slansing »

Yeah, depending on the version you are running it may or may not be in that version's documentation. However, as we recently found with CheckEventLog, even though he omitted it from the documentation for older versions (it still exists). You can try defining a command/module for it and see if you can reference it remotely, or contact the maintainer of NSClient++ via their support channels.
peakyblinder
Posts: 63
Joined: Tue Mar 25, 2014 4:39 am

Re: Windows OS Version

Post by peakyblinder »

slansing wrote:Yeah, depending on the version you are running it may or may not be in that version's documentation. However, as we recently found with CheckEventLog, even though he omitted it from the documentation for older versions (it still exists). You can try defining a command/module for it and see if you can reference it remotely, or contact the maintainer of NSClient++ via their support channels.
Yup, they seem to have missed it out of my version (http://www.nsclient.org/nscp/browser/ns ... 5a1465a18f).
I'm trying to configure it as command in nsclient ini but keeps moaning about a handler not existing.
Locked