Windows Performance Counters - Best Practices for Nagios?
Posted: Wed Feb 23, 2011 11:00 am
Is there a special document or helpfile on gathering Windows server performance counters? I notice there are few templates, and when I try to use the ones in the Windows Server Wizard as templates, I always fail. Right now I have a specific need to monitor the transaction log of a database on a MSSQL server?
I am running Nagios XI version 1.3G under CentOS. My remote Windows Servers all have NSCLient++ - 0.3.8.75 2010-05-27. It seems to do the job for most other things.
This is the specific performance counter I want to gather and alert on:

Here is the configuration screen for the service:

The command line I use above is cut off, so here is the full thing:
-l "\\SQLServer:Databases(BPM_Engine_PRD)\\Log File(s) Size (KB) %.f","BPM Production Transaction Log Size in KB is %.f" -w 1000 -c 3000
I notice in my NSCLIENT logs on the Windows server the following errors:
--
2011-01-27 11:23:47: error:modules\CheckSystem\CheckSystem.cpp
ERROR: Counter not found: \SQLServer:Databases\BPM_Engine_PRD\Log File(s) Size (KB): The specified instance is not present. (800007D1)
2011-01-27 11:23:47: error:modules\CheckSystem\CheckSystem.cpp
ERROR: \SQLServer:Databases\BPM_Engine_PRD\Log File(s) Size (KB): PdhAddCounter failed: Unable to parse the counter path. Check the format and syntax of the specified path. (C0000BC0) (\SQLServer:Databases\BPM_Engine_PRD\Log File(s) Size (KB)|\SQLServer:Databases\BPM_Engine_PRD\Log File(s) Size (KB))
2011-01-27 11:33:07: error:modules\CheckSystem\CheckSystem.cpp
ERROR: Counter not found: \SQLServer:Databases\BPM_Engine_PRD\Log File(s) Size (KB): The specified instance is not present.
--
Can someone walk me step by step what I am doing wrong? This would clear up alot of issues for us and allow me to move forward with alot of other performance counters.
I have tried posting this on the general forum but I was not able to get it working.
Thanks in advance!
-Jack
I am running Nagios XI version 1.3G under CentOS. My remote Windows Servers all have NSCLient++ - 0.3.8.75 2010-05-27. It seems to do the job for most other things.
This is the specific performance counter I want to gather and alert on:

Here is the configuration screen for the service:

The command line I use above is cut off, so here is the full thing:
-l "\\SQLServer:Databases(BPM_Engine_PRD)\\Log File(s) Size (KB) %.f","BPM Production Transaction Log Size in KB is %.f" -w 1000 -c 3000
I notice in my NSCLIENT logs on the Windows server the following errors:
--
2011-01-27 11:23:47: error:modules\CheckSystem\CheckSystem.cpp
2011-01-27 11:23:47: error:modules\CheckSystem\CheckSystem.cpp
2011-01-27 11:33:07: error:modules\CheckSystem\CheckSystem.cpp
--
Can someone walk me step by step what I am doing wrong? This would clear up alot of issues for us and allow me to move forward with alot of other performance counters.
I have tried posting this on the general forum but I was not able to get it working.
Thanks in advance!
-Jack
