-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-a $ARG$ doesnt recognize whitespaces #11
Comments
I also tried doing it this way but no avail. |
Hi, Do you have an update for this? |
Is the author still managing this project? I having same problem as well. There is no Help document in this Git Hub project. External Help link (https://outsideit.net/monitoring-iis-application-pools/) are not helping as well as the document are no longer exist. Argument from Nagios server are not working. It will come back with Critical alert (CRITICAL: Application Pool "" does not exist.) no matter how you specify the App Pool. Here is the check commands that i tried in Nagios server. Non of them is working. end up i have to hard coded the check command in nsclient++ NSC.ini config file to make it works. This is not convenience if you are managing in large infrastructure environment. Commands that i tired in Nagios server are as below. Non of them is working. |
I've just come across this same issue in using ncpa Running it in Verbose Mode: shows that the issue for me is with the ncpa_check.py (python script) as it calls: This shows the 'slash' (/) between -A and Poolname rather than the 'expected' whitespace. Using the browser version the suggested call is actually: Whilst this doesn't solve the nrpe issue - i hope it helps, as it does show that the plugin does work fine, and supports the whitespace. it may be more of an issue as to how the command is passing the arguments through to the check_iis_pool |
Got this working for an application pool with space in name, by making slight change to the code(near line #225) as below: switch -regex -casesensitive ($CurrentArg) {
and while passing the argument -A "pool name" double quotes need to be used for pool name. I hope this helps. |
Hi,
Thanks for this wonderful plug in. I'm just wondering on how to pass the arguments with white spaces.
Command:
./check_nrpe -H 10.0.1.3 -p 5666 -c check_ms_iis_application_pool -a '-A .NET v2.0 Classic' -APOD 1
Error:
CRITICAL: Argument:
v2.0
Value: Classic Error:Illegal arguments detected: v2.0
It seems that it is not liking the "second" space on the argument.
Best Regards,
SA
The text was updated successfully, but these errors were encountered: