Windows Registry plugin?

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.
Locked
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

Windows Registry plugin?

Post by jriker1 »

I am trying to see how much data I currently have for a particular application. There is a registry key that tells me the extent of the data. So for key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Service\Epg the endTime value, shows 2016-08-21T17:00:00-05:00.

This basically tells me that it has TV Guide data thru 8/21/2016.

And obviously this value will change daily/hourly. I want to be able to query this registry value and return if the current date, and the date in the endTime value are 8 days apart, and if so warn, and if 3 days apart go critical. Any idea how to accomplish this?

Saw a plugin to query the registry but it expected status values for warning and critical.

Thanks.

JR
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Windows Registry plugin?

Post by tgriep »

You may want to take a look at this link and see if one of them would work for you is if they could be modified for your needs.
https://exchange.nagios.org/index.php?o ... d=registry
Be sure to check out our Knowledgebase for helpful articles and solutions!
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

Re: Windows Registry plugin?

Post by jriker1 »

Thanks, I downloaded the McAfee one and tweaked that. Working like a charm.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Windows Registry plugin?

Post by mcapra »

Awesome! Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

Re: Windows Registry plugin?

Post by jriker1 »

Yep, close away!!
Locked