Page 1 of 2
Monitor windows server OS license
Posted: Tue Sep 09, 2014 3:01 pm
by imran_khan
Hello,
I want to know, how to monitor windows server OS license in Nagios?
Thanks,
Imran Khan.
Re: Monitor windows server OS license
Posted: Tue Sep 09, 2014 3:40 pm
by eloyd
Add an NSClient++ check that checks the version. Details at
http://docs.nsclient.org/reference/Chec ... os-version
Re: Monitor windows server OS license
Posted: Tue Sep 09, 2014 5:06 pm
by slansing
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.
Re: Monitor windows server OS license
Posted: Fri Sep 12, 2014 9:44 am
by imran_khan
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.
Re: Monitor windows server OS license
Posted: Fri Sep 12, 2014 9:58 am
by eloyd
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.
Re: Monitor windows server OS license
Posted: Fri Sep 12, 2014 2:19 pm
by sreinhardt
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.
Re: Monitor windows server OS license
Posted: Tue Sep 16, 2014 4:12 pm
by imran_khan
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.
Re: Monitor windows server OS license
Posted: Tue Sep 16, 2014 4:18 pm
by eloyd
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?
Re: Monitor windows server OS license
Posted: Tue Sep 16, 2014 5:07 pm
by slansing
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
Re: Monitor windows server OS license
Posted: Wed Sep 17, 2014 8:51 am
by FTL
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?