Search found 3 matches
- Fri Oct 11, 2019 1:34 pm
- Forum: Nagios XI
- Topic: NCPA Doesn't Load SQLServer Powershell Module
- Replies: 5
- Views: 4347
Re: NCPA Doesn't Load SQLServer Powershell Module
NCPA is running as LocalSystem on this server so I'm not entirely sure what module path it would be reading from. In any event, I was able to get the check to function properly by switching to the SqlPS module instead of SQLServer. No clue why this module imports and the other one does not but this ...
- Thu Oct 10, 2019 8:12 am
- Forum: Nagios XI
- Topic: NCPA Doesn't Load SQLServer Powershell Module
- Replies: 5
- Views: 4347
Re: NCPA Doesn't Load SQLServer Powershell Module
Here's the contents of my $env:PSModulePath: C:\Users\myusername\Documents\WindowsPowerShell\Modules C:\Program Files\WindowsPowerShell\Modules C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules\ C:\Program Files (x86)\Microso...
- Wed Oct 09, 2019 12:45 pm
- Forum: Nagios XI
- Topic: NCPA Doesn't Load SQLServer Powershell Module
- Replies: 5
- Views: 4347
NCPA Doesn't Load SQLServer Powershell Module
Hello, I wrote a PS1 script that uses the SQLServer module to query the count of records from a single table and report back based on the results. I am using NCPA installed on the target SQL Server to run the script. When I run it directly from the NCPA\Plugins directory, the script works as expecte...