Page 2 of 2
Re: Monitor windows server OS license
Posted: Wed Sep 17, 2014 9:33 am
by tmcdonald
FTL wrote:What is your reason for wanting to monitor them repeatedly with Nagios?
see
imran_khan wrote:If OS license get expired then I will get alert in Nagios.
Re: Monitor windows server OS license
Posted: Thu Sep 18, 2014 6:12 am
by FTL
But a windows license will never expire! Once activated it activated unless blacklisted by MSoft for misuse.
They will only ever blacklist a key though if the same key is used of multiple machines and is not Volume License, or if its pirated in the first place
But that's a whole new conversation...and wont answer the OP question.

Re: Monitor windows server OS license
Posted: Thu Sep 18, 2014 9:42 am
by tmcdonald
Could be an evaluation license.
Re: Monitor windows server OS license
Posted: Thu Sep 18, 2014 4:36 pm
by imran_khan
Hello,
Is there anyway to monitor event id of windows activation license failed error?
Once license failed or deactivated then will get critical/warning for that particular event id in nagios.
Thanks,
Imran Khan.
Re: Monitor windows server OS license
Posted: Thu Sep 18, 2014 4:40 pm
by sreinhardt
If M$ creates an event for it, it would absolutely be possible, you would have to dig up what event id it might be and in what particular event log. NSclient would be able to handle this with the default event log checking.
Re: Monitor windows server OS license
Posted: Thu Sep 18, 2014 5:00 pm
by imran_khan
Hello,
Event Id is 8198 for Error code :0x8007232B. I want to monitor it. Please provide me step by step procedure to do it.
Thanks,
Imran Khan.
Re: Monitor windows server OS license
Posted: Fri Sep 19, 2014 12:56 pm
by tmcdonald
You'll want to become familiar with the NSClient++ CheckEventLog command:
http://www.nsclient.org/nscp/wiki/Check ... k_eventlog
http://www.nsclient.org/nscp/wiki/Check ... og/samples
Something like this from the samples section should work:
Code: Select all
CheckEventLog file=application debug=true MaxWarn=1 MaxCrit=1 "filter=id = 8198" truncate=800 unique descriptions "syntax=%id%: (%count%)"
Just save that in your NSClient++ configs, give it a name and create the nagios check for it using check_nrpe.