Hi
I am trying to run a powershell through NCPA.
The powershell is using the powercli to query a vcentre and get some metrics.
Running it by hand works fine. I've commented out the original ps1 and enabled the one with sysnative as the VMWare commandlets are 64bit so I need the 64bit version of powershell.
I enabled debug on the logs and it shows "running process with command line 'c:\windows\sysnative\windowspowershell\1.0\powershell.exe -ExecutionPolicy etc etc etc...
If I copy/paste that command and run in in dos it works fine, as long as I run it from within the NCPA folder and the path is set to be just plugin\VMConsolidateCheck.ps1
When I run it from the browser, it just times out after 60 seconds.
Any help would be appreciated here.
rgds
George
Running Powershell through NCPA
Re: Running Powershell through NCPA
We have bought for this year 2x10 calls support pack.. can we use some of that to help us with these issues as we have some deadlines we have to meet.
rgds
George
rgds
George
Re: Running Powershell through NCPA
Can you send the contents of the NCPA logs?
Under Windows it's under C:\Program Files (x86)\Nagios\NCPA\var\log\*.log
Under Linux it's under /usr/local/ncpa/var/log/.log
Under Windows it's under C:\Program Files (x86)\Nagios\NCPA\var\log\*.log
Under Linux it's under /usr/local/ncpa/var/log/.log
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Running Powershell through NCPA
Hi George,
If you'd like to use your phone support for help, just call our main line at 1-888-624-4671 during business hours and ask for support. We'd be happy to help.
Regards,
Benajmin
If you'd like to use your phone support for help, just call our main line at 1-888-624-4671 during business hours and ask for support. We'd be happy to help.
Regards,
Benajmin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Running Powershell through NCPA
Hi
I've identified the issue as the CEIP!! Its hanging because its waiting for acceptance of the vmware experience program.
I've tried setting it false with scope=All users but it doesnt work if NCPA is running as local system.
The workaround is to set NCPA to run as a user/service account and then it all works fine.
The only problem I have now is the !.
The password of the VMware user contains !. When I use that, and save, Nagios escapes it with \. So it becomes \!.
But when its received by NCPA it stays as \! so the password is wrong.
Is there a way to stop this from happening?
rgds
george
I've identified the issue as the CEIP!! Its hanging because its waiting for acceptance of the vmware experience program.
I've tried setting it false with scope=All users but it doesnt work if NCPA is running as local system.
The workaround is to set NCPA to run as a user/service account and then it all works fine.
The only problem I have now is the !.
The password of the VMware user contains !. When I use that, and save, Nagios escapes it with \. So it becomes \!.
But when its received by NCPA it stays as \! so the password is wrong.
Is there a way to stop this from happening?
rgds
george
Re: Running Powershell through NCPA
ok sorted it out using User Macros!
rgds
George
rgds
George
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Running Powershell through NCPA
Locking threadrexmundo wrote:ok sorted it out using User Macros!
rgds
George