Trying to build IIS pool checks via NCPA for a server. I tried https://support.nagios.com/forum/viewtopic.php?t=49956 and https://support.nagios.com/forum/viewtopic.php?t=48302, and I am still not having luck. I get the following message in the API:
CRITICAL: Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
I am able to run the Powershell script manually and get information. I tried changing the ncpa.cfg to no avail. Any ideas?
$USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
$ARG1$ = t '*token*' -P 5693 -M 'plugins/check_ms_iis_application_pool_DefaultAppPool.ps1' -q
NCPA IIS Pool Service Sensor
Re: NCPA IIS Pool Service Sensor
Hi wkratky,
The Windows version of NCPA is 32-bit. When you run the script manually on the command line are you using a 32 or 64 bit version of powershell ? You can double check with the following:
It would be interesting to trying running the script in both the 64 and 32 versions of powershell to see if there is any difference.
To start a 32-bit shell:
To start a 64-bit shell:
Thanks and Best Regards,
Keith
The Windows version of NCPA is 32-bit. When you run the script manually on the command line are you using a 32 or 64 bit version of powershell ? You can double check with the following:
Code: Select all
[Environment]::Is64BitProcess To start a 32-bit shell:
Code: Select all
%systemroot%\syswow64\windowspowershell\v1.0\powershell.exe Code: Select all
%systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe Keith
Re: NCPA IIS Pool Service Sensor
Powershell:
PS C:\Program Files (x86)\Nagios\NCPA\plugins> .\check_ms_iis_application_pool_DefaultAppPool.ps1
OK: Application Pool Started but no process is assigned yet "DefaultAppPool" with 0 Applications. {CPU: 0%}{Memory: 0MB} | 'pool_cpu'=0%, 'pool_memory'=0MB, 'app_count'=0
Poweshell x86:
PS C:\Program Files (x86)\Nagios\NCPA\plugins> .\check_ms_iis_application_pool_DefaultAppPool.ps1
CRITICAL: Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
PS C:\Program Files (x86)\Nagios\NCPA\plugins> .\check_ms_iis_application_pool_DefaultAppPool.ps1
OK: Application Pool Started but no process is assigned yet "DefaultAppPool" with 0 Applications. {CPU: 0%}{Memory: 0MB} | 'pool_cpu'=0%, 'pool_memory'=0MB, 'app_count'=0
Poweshell x86:
PS C:\Program Files (x86)\Nagios\NCPA\plugins> .\check_ms_iis_application_pool_DefaultAppPool.ps1
CRITICAL: Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Re: NCPA IIS Pool Service Sensor
Hi wkratky,
Bummer - it appears that the script doesn't agree with the 32-bit shell. Your windows knowledge is probably better than mine but doing a little searching it looks like there might be a work around.
https://stackoverflow.com/questions/190 ... it-cmd-exe
Hope this is useful.
Thanks and Best Regards,
Keith
Bummer - it appears that the script doesn't agree with the 32-bit shell. Your windows knowledge is probably better than mine but doing a little searching it looks like there might be a work around.
https://stackoverflow.com/questions/190 ... it-cmd-exe
Hope this is useful.
Thanks and Best Regards,
Keith
Re: NCPA IIS Pool Service Sensor
Locking thread, ticket received, we will continue support through the ticket.
Thank you!
Thank you!