Hello,
I want to know, how to monitor windows server OS license in Nagios?
Thanks,
Imran Khan.
Monitor windows server OS license
Re: Monitor windows server OS license
Add an NSClient++ check that checks the version. Details at http://docs.nsclient.org/reference/Chec ... os-version
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: Monitor windows server OS license
Yep, it's built into NSclient++ as a module that you can check against with check_nt, examples are in the link Eloyd posted. I believe the current iteration is done via check_nrpe.
-
imran_khan
- Posts: 196
- Joined: Mon May 27, 2013 3:16 pm
Re: Monitor windows server OS license
Hello,
Thanks for the reply.
I want to monitor windows server OS license not OS version. If OS license get expired then I will get alert in Nagios.
Thanks,
Imran Khan.
Thanks for the reply.
I want to monitor windows server OS license not OS version. If OS license get expired then I will get alert in Nagios.
Thanks,
Imran Khan.
Re: Monitor windows server OS license
Whoops! My mistake for not reading more carefully. We don't monitor Windows OS server licenses, so I can't help you with that specifically. However, I'm sure there is some WMI command you can grab that will tell you your license information. You could write a script to do that and then pull that information via the check_nt check.
There may also be something on the Nagios Exchange if you check there.
There may also be something on the Nagios Exchange if you check there.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Monitor windows server OS license
I would agree, this is something you are either going to need to write a custom plugin for or might be able to gather from wmi. Regardless, I am curious, what windows server licensing is on a subscription basis? All the server OSes that I know of from M$ are perpetual licensing and either are or are not permanently licensed.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
imran_khan
- Posts: 196
- Joined: Mon May 27, 2013 3:16 pm
Re: Monitor windows server OS license
Hello,
Thanks for the reply,
I don't know about license subscription. Just I need to monitor windows OS license in Nagios.
Thanks,
Imran Khan.
Thanks for the reply,
I don't know about license subscription. Just I need to monitor windows OS license in Nagios.
Thanks,
Imran Khan.
Re: Monitor windows server OS license
Again, I'm not a WMI type person, but I don't know of anything that says when a Windows license expires because I didn't think Windows licenses expired? Do you mean you want the license code that was used to register the OS?
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: Monitor windows server OS license
If you are looking for the product ID class / License key, you can pull it from WMI with this:
http://alexmg.com/getting-the-windows-p ... using-wmi/
You would need to set up check_wmi_plus as a plugin, or build a powershell script on the windows system to call with NRPE through Nsclient++.
http://www.edcint.co.nz/checkwmiplus/?q=quickstart
http://alexmg.com/getting-the-windows-p ... using-wmi/
You would need to set up check_wmi_plus as a plugin, or build a powershell script on the windows system to call with NRPE through Nsclient++.
http://www.edcint.co.nz/checkwmiplus/?q=quickstart
Re: Monitor windows server OS license
Use nsclient++ in conjunction with this powershell script
http://gallery.technet.microsoft.com/sc ... l-83b4ce97
Im really curious though as to why you need to monitor the licence key repeatedly?
Just run the powershell script manually on each server and copy the keys into an excel/word doc if you want to know them for records?
What is your reason for wanting to monitor them repeatedly with Nagios?
http://gallery.technet.microsoft.com/sc ... l-83b4ce97
Im really curious though as to why you need to monitor the licence key repeatedly?
Just run the powershell script manually on each server and copy the keys into an excel/word doc if you want to know them for records?
What is your reason for wanting to monitor them repeatedly with Nagios?