<div>You can also use NC_Net to access this performance counters.</div>
<div>Or you can retrieve the value through WMI using NC_NEt</div>
<div>Current version on sourceforge:</div>
<div><a href="http://sourceforge.net/projects/nc-net">http://sourceforge.net/projects/nc-net</a><br> </div>
<div> </div>
<div>TOny</div>
<div><br> </div>
<div><span class="gmail_quote">On 7/28/06, <b class="gmail_sendername">Phil Costelloe</b> <<a href="mailto:philc@foundation-it.com">philc@foundation-it.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Frost, Mark {PBG} wrote:<br>> We have a need on a Windows 2003 box to check the number of page<br>> faults a particular process has incurred.  I'm not really aware of
<br>> how I could do this.<br>><br>> We are running Nagios 2.4 and use the standard plugins with check_nrpe<br>> 0.8 to monitor CPU, memory and disk space.<br>><br>> Does anyone know if there's some way to get a plugin to report a
<br>> process' page faults?<br><br>You can access any of the Windows performance counters using nsclient<br>(and presumably nsclient++).<br><br>The particular counter in this case, given a process called foobar,<br>would be \\Process(foobar)\\Page Faults/Sec and the check command and
<br>service entries would be something like:<br><br>define command {<br>   command_name    check_nt_pagefaults<br>   command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p $ARG1$ -v<br>COUNTER -l "\\Process($ARG5$)\\Page Faults/Sec","Page faults per second
<br>are %.2f %%" -w $ARG2$ -c $ARG3$ -s $ARG4$<br>}<br><br>define service {<br>   use    generic-service<br>   host_name    windows_host<br>   service_description    Page Faults<br>   contact_groups    amber-admins<br>
   check_command    check_nt_pagefaults!1248!3!5!password!foobar<br>etc etc<br>}<br><br>Untested but should just about work.<br><br>Phil<br><br>--------------------------------------------------------<br><br>Phil Costelloe
<br>Technical Consultant<br><br><br><a href="mailto:philc@foundation-it.com">philc@foundation-it.com</a><br><a href="http://www.foundation-it.com">http://www.foundation-it.com</a><br>Foundation IT<br>Foundation Court<br>Old Street
<br>Oare<br>Hermitage Berkshire RG18 9SE<br>Switch: +44 (0) 1635 203700<br>Helpdesk: +44 (0) 800 0121099<br>DDI: +44 (0) 1635 203719<br>Fax: +44 (0) 8700 543537<br>Mobile: +44 (0) 7884 236299<br><br><br><br>--------------------------------------------------------
<br>This message contains confidential information and is intended only for <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>. If you are not <a href="mailto:nagios-users@lists.sourceforge.net">
nagios-users@lists.sourceforge.net</a> you should not disseminate, distribute or copy this e-mail. Please notify Foundation IT immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Foundation IT therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
<br>--------------------------------------------------------<br><br>-------------------------------------------------------------------------<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><a href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a><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
<br></blockquote></div><br>