Windows Updates

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Windows Updates

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Windows Updates

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: Windows Updates

Post by angus »

So I will need to put the plugin on ever server's C:\Program Files (x86)\Nagios\NCPA\plugins\ directory?

Thanks.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Windows Updates

Post by rkennedy »

Yep, that should work.
Former Nagios Employee
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: Windows Updates

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Windows Updates

Post 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?
Former Nagios Employee
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: Windows Updates

Post by angus »

I have figured it out since my last post. Please close this ticket.

Thanks for the assistance.
Locked