Page 1 of 1

Windows Registry plugin?

Posted: Tue Aug 09, 2016 12:21 pm
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

Re: Windows Registry plugin?

Posted: Tue Aug 09, 2016 5:01 pm
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

Re: Windows Registry plugin?

Posted: Wed Aug 10, 2016 12:33 pm
by jriker1
Thanks, I downloaded the McAfee one and tweaked that. Working like a charm.

Re: Windows Registry plugin?

Posted: Wed Aug 10, 2016 12:45 pm
by mcapra
Awesome! Is it alright if we lock this thread and mark the issue as resolved?

Re: Windows Registry plugin?

Posted: Sat Aug 13, 2016 9:40 pm
by jriker1
Yep, close away!!