Platform: Nagios XI 2011R2.2, VMWare Virtual Machine (in ESX), built off of the initial appliance
I am attempting to set up a service using check_nt's COUNTER functionality, for the purpose of checking the number of connections being used in an IIS app pool. I've used this to connect into PerfMon metrics many times before, but this one's a little different because the app pool's name in the background is long and uses characters that Nagios might not like using.
Here's what I have done to test thus far ... the name of the app pool is "Tools", but in the world of Perfmon, the counter for that app pool looks like this:
"\.NET Data Provider for SqlServer(_lm_w3svc_1_root_tools-3-129840746280906503[6656])\NumberOfPooledConnections"
I've attempted to test this in three places, with different results:
1) CentOS root command line - Usually when a command doesn't work in Nagios, I'll resort to checking the command from a shell prompt to make sure that the syntax is correct. To do so, the following command was run:
Code: Select all
[root@199 libexec]# ./check_nt -H 199.231.143.66 -s NScl13nt -p 12489 -v COUNTER -l "\.NET Data Provider for SqlServer(_lm_w3svc_1_root_tools-3-129840746280906503[6656])\NumberOfPooledConnections" -w 75 -c 902) Nagios Service Setup - With that done, I set to enter this information using the Nagios Core Config Manager into a service. However, when I do this, Nagios always responds with 0, no matter what the actual PerfMon result was.
3) Nagios Plugin Tool Wizard - Using the tool @ http://exchange.nagios.org/directory/Ad ... ol/details, I set out to test the command noted in the command line to see if Nagios through the GUI properly recognized the command. When I did this, I get the following feedback:
Code: Select all
The Command argument $ARG1$ you provided contains invalid characters1) I can't change the name of the app pool as Perfmon sees it, so how do I resolve the "invalid characters" issue?
2) If that's not the actual reason it's failing, why would it return a proper number from a shell prompt, but not from within the Nagios GUI interface? Is there another variable I need to edit to ensure a good value is returned?
Thanks for everyone's help!