<br><font size=2 face="sans-serif">Hi all,</font>
<br>
<br><font size=2 face="sans-serif">If you're using NSClient++, you can
check all the WMI-Counters with the following command:<br>
<i>./check_nt -H 127.0.0.1 -p 1234  -v COUNTER -l '\\Terminaldienste\\Sitzungen
Insgesamt'</i></font>
<br>
<br><font size=2 face="sans-serif"><i>(You have to search the correct Counter
with the Windows Performance Monitor)</i></font>
<br><font size=2 face="sans-serif"><br>
Mit freundlichen Grüßen / best regards<br>
<br>
      Carsten Koop</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"James Whittington"
<James.Whittington@vc3.com></b> </font>
<br><font size=1 face="sans-serif">Gesendet von: nagios-users-bounces@lists.sourceforge.net</font>
<p><font size=1 face="sans-serif">14.02.2007 17:00</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">An</font></div>
<td><font size=1 face="sans-serif">"Robert Wolfe" <rwolfe@shatterit.com>,
<Nagios-users@lists.sourceforge.net></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Kopie</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Thema</font></div>
<td><font size=1 face="sans-serif">Re: [Nagios-users] Checking Windows
counter via nagios, nsclient++,        and
nrpe</font><font size=2 face="sans-serif"> </font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3 color=#1f497d face="sans-serif">checkCounter can check
any performance counter object in windows as far as I know.</font>
<br><font size=3 color=#1f497d face="sans-serif"> </font>
<br><font size=3 color=#1f497d face="sans-serif">I found out if you are
using nsclient++ the command “nsclient++ CheckSystem listpdh” would dump
all the counters it found.</font>
<br><font size=3 color=#1f497d face="sans-serif">I looked for the process
I was wanting to watch to find the right syntax for the process and instance.</font>
<br><font size=3 color=#1f497d face="sans-serif"> </font>
<br><font size=3 color=#1f497d face="sans-serif">James Whittington</font>
<br><font size=3 color=#1f497d face="sans-serif">Systems Engineer</font>
<br><font size=3 color=#1f497d face="sans-serif">VC3, Inc.</font>
<br><font size=3 color=#1f497d face="sans-serif"> </font>
<br><font size=3 color=#1f497d face="sans-serif">803-978-2723 direct</font>
<br><font size=3 color=#1f497d face="sans-serif">800-787-1160 main</font>
<br><font size=3 color=#1f497d face="sans-serif"> </font>
<br><font size=3 face="Tahoma"><b>From:</b> Robert Wolfe [mailto:rwolfe@shatterit.com]
<b><br>
Sent:</b> Wednesday, February 14, 2007 10:34 AM<b><br>
To:</b> James Whittington; Nagios-users@lists.sourceforge.net<b><br>
Subject:</b> RE: [Nagios-users] Checking Windows counter via nagios, nsclient++,and
nrpe</font>
<br><font size=3 face="sans-serif"> </font>
<br><font size=3 color=#000080 face="Arial">Can this also be used to monitor
memory use by a process/program as well?</font>
<br><font size=3 color=#000080 face="Arial"> </font>
<div align=center>
<br>
<hr></div>
<br><font size=3 face="Tahoma"><b>From:</b> nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <b>On Behalf Of </b>James
Whittington<b><br>
Sent:</b> Wednesday, February 14, 2007 10:30 AM<b><br>
To:</b> Nagios-users@lists.sourceforge.net<b><br>
Subject:</b> [Nagios-users] Checking Windows counter via nagios, nsclient++,and
nrpe</font>
<br><font size=3 face="sans-serif"> </font>
<br><font size=3 face="sans-serif">Hello all,</font>
<br><font size=3 face="sans-serif"> </font>
<br><font size=3 face="sans-serif">I have a Nagios 2 system used in monitoring
several application environments and I’m looking for the best way to monitor
a Windows 2003 process.</font>
<br><font size=3 face="sans-serif">I already have nsclient++ in place,
and I’m using the  checkCounter command in nrpe.</font>
<br><font size=3 face="sans-serif">The main issue at this point is the
counter in question returns a value in scientific notation, which isn’t
very readable for non-scientists.</font>
<br><font size=3 face="sans-serif"> </font>
<br><font size=3 face="sans-serif">Here’s the command and response:</font>
<br><font size=3 face="sans-serif">./check_nrpe -H 192.168.197.183 -p 5666
-c checkCounter -a "Counter:PrivBytes=\\Process(ProductATasksService)\\Private
Bytes"  ShowAll</font>
<br><font size=3 face="sans-serif">OK: PrivBytes: 2.38641e+08</font>
<br><font size=3 face="sans-serif"> </font>
<br><font size=3 face="sans-serif">Is there an option to convert the format
to human readable?</font>
<br><font size=3 face="sans-serif">If not I might have to write something
to convert it which might be a bad idea anyway, since I don’t see performance
data coming from the plugin either and I write the performance data to
a sql backend.</font>
<br><font size=3 face="sans-serif"> </font>
<br><font size=3 face="sans-serif">I figured I would toss the question
out to the list to see if others had run into this before.</font>
<br><font size=3 face="sans-serif">Thanks,</font>
<br><font size=3 face="sans-serif"> </font>
<br><font size=3 face="sans-serif">James Whittington</font><tt><font size=2>-------------------------------------------------------------------------<br>
Take Surveys. Earn Cash. Influence the Future of IT<br>
Join SourceForge.net's Techsay panel and you'll get the chance to share
your<br>
opinions on IT & business topics through brief surveys-and earn cash<br>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________<br>
Nagios-users mailing list<br>
Nagios-users@lists.sourceforge.net<br>
https://lists.sourceforge.net/lists/listinfo/nagios-users<br>
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. <br>
::: Messages without supporting info will risk being sent to /dev/null</font></tt>
<br>