Windows OS Version
-
peakyblinder
- Posts: 63
- Joined: Tue Mar 25, 2014 4:39 am
Windows OS Version
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,
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
I'd look at NSclient++ if I were you. Specifically, the section on checking OS version.
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
Excellent! I cant see the wood for the trees...
Will look into this. Cheers eloyd!
Will look into this. Cheers eloyd!
Re: Windows OS Version
Sometimes the trees themselves are all you need to see. 
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
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,
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
Read the second link in my reply and look down at the examples.
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
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?
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
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
http://www.nsclient.org/nscp/browser/ns ... System.cpp
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
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
Yup, they seem to have missed it out of my version (http://www.nsclient.org/nscp/browser/ns ... 5a1465a18f).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.
I'm trying to configure it as command in nsclient ini but keeps moaning about a handler not existing.