.ps1 plugin issue with NCPA and Windows 2019

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

.ps1 plugin issue with NCPA and Windows 2019

Post 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>
You do not have the required permissions to view the files attached to this post.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: .ps1 plugin issue with NCPA and Windows 2019

Post by BanditBBS »

Antivirus was the cause! Couldnt tell from debug logging in the agent, all seemed well.

This can be closed.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked