Monitor windows server OS license

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitor windows server OS license

Post 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.
Former Nagios employee
FTL
Posts: 72
Joined: Fri Oct 21, 2011 7:23 am

Re: Monitor windows server OS license

Post 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. :)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitor windows server OS license

Post by tmcdonald »

Could be an evaluation license.
Former Nagios employee
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: Monitor windows server OS license

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitor windows server OS license

Post 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.
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

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitor windows server OS license

Post 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.
Former Nagios employee
Locked