Page 1 of 1

.ps1 plugin issue with NCPA and Windows 2019

Posted: Wed Jul 28, 2021 11:29 am
by BanditBBS
So I'm starting my migration from NRPE to NCPA finally and ran into an issue with a custom plugin to check the number of days since last update.

On 2012 and 2016 hosts everything is working fine as shown here:
2012.jpg
On 2019 hosts no matter what I always get a return code of 0 and no status text, but I can run it locally and it works fine:
2019.PNG

Code: Select all

Microsoft Windows [Version 10.0.17763.2061]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\xxxx>powershell -ExecutionPolicy Bypass -File "c:\Program Files (x86)\Nagios\NCPA\plugins\check_last_update.ps1" 30
OK: 3 since last update

C:\Users\xxxx>

Re: .ps1 plugin issue with NCPA and Windows 2019

Posted: Wed Jul 28, 2021 1:35 pm
by BanditBBS
Antivirus was the cause! Couldnt tell from debug logging in the agent, all seemed well.

This can be closed.