NSClient++ WMI Counters Check Commands ??

Kevin Keane subscription at kkeane.com
Thu Jul 30 04:49:26 CEST 2009


I would actually use performance counters (via NSClient++ and check_nt 
or my Windows port, check_nt_win) rather than WMI, simply because it 
already exists. WMI really just provides you with a wrapper around 
performance counters anyway.

You can very easily find out ALL counters that are available. Simply 
start the Windows performance monitor (perfmon). Click on the + icon to 
add a counter. The Performance Objects are the first part in the string, 
the counters are the second. For instance, the string you gave means 
Performance Object "SQLServer:General Statistics" and Counter "User 
Connections". By the way, remember to use double backslashes every time 
you need just one.

As for the Blackberry BES: I'm working on a plugin for it right now, and 
would very much appreciate input on what specific counters etc. you 
would like to see monitored. Actually, I was tentatively planning to use 
SNMP, but can easily switch to WMI.

Mirza Dedic wrote:
>
> Hello,
>
> I am very inexperienced with using NSClient++ to query WMI Counters, 
> but I want to tap into the resource as it has much information…
>
> Does anyone have WMI Counter Check CMDs for any of the following:
>
> SQL Server 2005
>
> ISA 2003
>
> OS Communicator
>
> Blackberry BES
>
> This would be greatly appreciated…
>
> I have found a few good sources online, but what better than to ask 
> the Nagios list itself J
>
> Even better.. anyone able to shed some light on how to write WMI 
> Counter check CMDs for NSClient++?
>
> Below is an example of a command I am using that I have found..
>
> command_line $USER1$/check_nt -H $HOSTADDRESS$ -p SOMEPORT -s PWD -v 
> COUNTER -l "\SQLServer:General Statistics\User Connections","User 
> Connections %.2f" -w $ARG1$ -c $ARG2$
>
> How does one see what other counters there are in SQLServer:General 
> Statistics??
>
> Thanks.
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null


-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list