Check_ms_iis_application_pool: "Cannot bind argument to..."
Re: Check_ms_iis_application_pool: "Cannot bind argument to.
Did you set $DebugPreference = 'Continue' as well?
Re: Check_ms_iis_application_pool: "Cannot bind argument to.
Please edit the powershell script and add this code:
Right below the $VerbosePreference = 'SilentlyContinue' code.
Then re-run it directly on the server from an administrator powershell console and send us the full output.
Thank you
Code: Select all
Set-PSDebug -Trace 2 -DebugThen re-run it directly on the server from an administrator powershell console and send us the full output.
Thank you
Re: Check_ms_iis_application_pool: "Cannot bind argument to.
I have attached the new log. I have also found that if the application pool is started but has no currently running process it returns Ok like this:
Code: Select all
OUTPUT: OK: Application Pool Started but no process is assigned yet "Compliance" with 0 Applications. {CPU: 0%}{Memory: 0MB} |'app_count'=0 'pool_cpu'=0%, 'pool_memory'=0MBRe: Check_ms_iis_application_pool: "Cannot bind argument to.
Can you double-check your post? It seems the log did not get attached.
Former Nagios employee
Re: Check_ms_iis_application_pool: "Cannot bind argument to.
Try this.
You do not have the required permissions to view the files attached to this post.
Re: Check_ms_iis_application_pool: "Cannot bind argument to.
Please edit the script and around line 49 change this code:
To this:
Then run it again with and without the debug and send us the results.
Thank you
Code: Select all
$LocalScriptName = split-path $MyInvocation.PSCommandPath -LeafCode: Select all
$LocalScriptName = "check_ms_iis_application_pool"Thank you
Re: Check_ms_iis_application_pool: "Cannot bind argument to.
It looks like that change fixed it. I am not getting back # of applications, CPU usage, and memory usage from each monitored app pool:
Thank you for your help, everyone!
Code: Select all
OK: Application Pool "AlvaMustShip" with 2 Applications. {CPU: 0 %}{Memory: 199.07 MB}Re: Check_ms_iis_application_pool: "Cannot bind argument to.
From looking at the code, here are the options:
Code: Select all
-A|--ApplicationPool
-WM|--WarningMemory
-CM|--CriticalMemory
-WC|--WarningCpu
-CC|--CriticalCpu
-APOD|--AppPoolOnDemandRe: Check_ms_iis_application_pool: "Cannot bind argument to.
I meant to type "...noW getting back..." instead of "...noT getting back..." but the additional information you provided because of my typo is even better as the last I saw on the check the developer had not included warning/critical options yet!
Where would I put those options in the check to allow for alerting and what should the syntax be?
Where would I put those options in the check to allow for alerting and what should the syntax be?