Page 1 of 3
Windows OS Version
Posted: Mon Jun 09, 2014 7:44 am
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,
Re: Windows OS Version
Posted: Mon Jun 09, 2014 7:52 am
by eloyd
I'd look at
NSclient++ if I were you. Specifically, the section on
checking OS version.
Re: Windows OS Version
Posted: Mon Jun 09, 2014 8:00 am
by peakyblinder
Excellent! I cant see the wood for the trees...
Will look into this. Cheers eloyd!
Re: Windows OS Version
Posted: Mon Jun 09, 2014 8:06 am
by eloyd
Sometimes the trees themselves are all you need to see.

Re: Windows OS Version
Posted: Mon Jun 09, 2014 8:19 am
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,
Re: Windows OS Version
Posted: Mon Jun 09, 2014 8:22 am
by eloyd
Read the second link in my reply and look down at the examples.
Re: Windows OS Version
Posted: Mon Jun 09, 2014 8:54 am
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?
Re: Windows OS Version
Posted: Mon Jun 09, 2014 9:10 am
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
Re: Windows OS Version
Posted: Mon Jun 09, 2014 9:24 am
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.
Re: Windows OS Version
Posted: Mon Jun 09, 2014 9:28 am
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.