Page 1 of 1

Windows Updates

Posted: Thu Dec 03, 2015 3:08 pm
by angus
Hello,

I would like to install a plugin that will search my Windows boxes from updates but i only seem to find plugins written for NRPE or that use powershell scripts. I do not want to open all my servers up to unrestricted execution policy and I am using NCPA so i am stuck. Is there a plugin specific to NCPA? I believe I saw a post somewhere that mentioned being able to change a plugin to work with NCPA instead of NRPE, is this accurate? If so, how do i go about that.

Thanks.

Re: Windows Updates

Posted: Thu Dec 03, 2015 10:20 pm
by Box293
I'm haven't delved a lot into NCPA however looking at the docs it shouldn't be too hard.

Your scripts should go in C:\Program Files (x86)\Nagios\NCPA\plugins\

Have a look here at the section "Using Nagios Plugins"
https://assets.nagios.com/downloads/ncp ... l/api.html

NOTE: there is a spelling mistake on that page, it references a URL that ends with /api/agent/plugins but the s at the end should not exist, it should be: /api/agent/plugin

Does this help?

Re: Windows Updates

Posted: Fri Dec 04, 2015 11:01 am
by angus
So I will need to put the plugin on ever server's C:\Program Files (x86)\Nagios\NCPA\plugins\ directory?

Thanks.

Re: Windows Updates

Posted: Fri Dec 04, 2015 12:57 pm
by rkennedy
Yep, that should work.

Re: Windows Updates

Posted: Mon Dec 07, 2015 2:52 pm
by angus
I have come to terms with the PowerShell version of this check. I have it working on a service by service basis but i would like to create command or service template to make it easier to deploy across multiple servers. I have been working at this for the better part of the day and I can't get it to work. Any help is appreciated.

Re: Windows Updates

Posted: Mon Dec 07, 2015 3:35 pm
by rkennedy
Are you looking to create a command specific for the Windows Update NCPA checks?

Navigate to Configure -> Core Config Manager -> ### Commands -> '+ Add New'.

Once there, give it a command name, and assign a command line check to it.

Is that what you're looking for?

Re: Windows Updates

Posted: Mon Dec 07, 2015 4:25 pm
by angus
I have figured it out since my last post. Please close this ticket.

Thanks for the assistance.