<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=305330607-24082004><FONT face=Arial color=#0000ff size=2>Sorry,
forgot to mention that we ALWAYS give credit. The specific checkin would have
your name next to it (<A
href="http://cvs.sourceforge.net/viewcvs.py/nagiosplug/nagiosplug/plugins/check_nt.c?rev=1.24&sortby=date&view=log">http://cvs.sourceforge.net/viewcvs.py/nagiosplug/nagiosplug/plugins/check_nt.c?rev=1.24&sortby=date&view=log</A>)
and we credit you in the THANKS file (generated from AUTHORS - <A
href="http://cvs.sourceforge.net/viewcvs.py/nagiosplug/nagiosplug/AUTHORS?rev=1.37&view=auto">http://cvs.sourceforge.net/viewcvs.py/nagiosplug/nagiosplug/AUTHORS?rev=1.37&view=auto</A>).
</FONT></SPAN></DIV>
<DIV><SPAN class=305330607-24082004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=305330607-24082004><FONT face=Arial color=#0000ff size=2>We
appreciate everyone's involvement.</FONT></SPAN><SPAN
class=305330607-24082004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Paulo Afonso
Graner Fessel [mailto:paulo.fessel@primesys.com.br] <BR><B>Sent:</B> 23 August
2004 23:09<BR><B>To:</B> Ton Voon; Garry Cook<BR><B>Cc:</B>
nagiosplug-devel@lists.sourceforge.net<BR><B>Subject:</B> RES:
[Nagiosplug-devel] Patch for completeness on check_nt
plugin<BR><BR></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=546590422-23082004><FONT face=Arial
color=#0000ff size=2>Ton,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=546590422-23082004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=546590422-23082004><FONT face=Arial
color=#0000ff size=2>No problems with the remotion of the Copyright. Just
provide credit of the changes I've made, ok?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=546590422-23082004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=546590422-23082004><FONT face=Arial
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=546590422-23082004><FONT face=Arial
color=#0000ff size=2>Paulo</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV align=left><FONT face=v size=2><STRONG>Paulo Afonso Graner
Fessel</STRONG></FONT></DIV>
<DIV align=left><EM><FONT size=1>Administrador de Ambiente e Sistemas
UNIX</FONT></EM></DIV>
<DIV align=left><FONT size=1>
<DIV align=left><FONT size=1><A
href="mailto:paulo.fessel@primesys.com.br">paulo.fessel@primesys.com.br</A></FONT></DIV>OWT</FONT></DIV>
<DIV align=left><FONT size=1>Fone: +55 (11) 3038-6464</FONT></DIV>
<DIV align=left><FONT size=1>Fax: +55 (11) 3038-6508</FONT></DIV>
<DIV align=left><FONT size=1><A
href="http://www.primesys.com.br/">http://www.primesys.com.br</A></FONT></DIV>
<DIV align=left> </DIV>
<DIV align=left><IMG id=_x0000_i1025 height=67
src="cid:305330607@24082004-2225" width=110 border=0></DIV>
<DIV align=left> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=pt-br dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> Ton Voon [mailto:tonvoon@mac.com]
<BR><B>Enviada em:</B> segunda-feira, 23 de agosto de 2004
19:07<BR><B>Para:</B> Paulo Afonso Graner Fessel; Garry Cook<BR><B>Cc:</B>
nagiosplug-devel@lists.sourceforge.net<BR><B>Assunto:</B> Re:
[Nagiosplug-devel] Patch for completeness on check_nt
plugin<BR></FONT><BR></DIV>
<DIV></DIV>
<P>Paulo, Garry, </P><BR>
<P>This has now been applied to CVS. I wouldn't worry about the
technicalities of which is the "correct" value - this is what the discussion
list is for! </P><BR>
<P>Paulo, Thanks for the patch. I've committed it almost verbatim. I've only
made a slight change to the comments (we are trying to avoid using // and
use /* */ instead - see the development guidelines at
http://nagiosplug.sourceforge.net/developer-guidelines.html). I've also
removed your copyright line from the CHECK_COUNTER code (the developer
guidelines has a section on the reasons). If you are uncomfortable with
this, then I can reverse the change. </P><BR>
<P>Ton </P><BR>
<P>On 20 Aug 2004, at 13:28, Paulo Afonso Graner Fessel wrote: </P><BR>
<P><FONT face=Arial size=2>I've looked at code of check_nt.c and there's
this remark:</FONT> </P>
<P><FONT size=2></FONT></P>
<P><FONT face=Arial size=2>// Changed divisor in following line from v
to 3044515 to accurately reflect memory size</FONT> </P>
<P><FONT size=2></FONT></P>
<P><FONT face=Arial size=2>This is incorrect. The memory size that check_nt
reports is a sum of RAM and pagefile sizes, as defined here:</FONT> </P>
<P><FONT size=2></FONT></P>
<P><FONT face=Arial size=2>"Commit Charge: In the Windows operating system,
the name for the amount of physical memory (RAM) and virtual memory that is
allocated to all running programs, or applications, and the operating system
itself.</FONT> </P>
<P><FONT size=2></FONT></P>
<P><FONT face=Arial size=2>"Windows Task Manager displays the commit charge
in its Performance tab. There are three memory readings, measured in
kilobytes:</FONT> </P>
<P><FONT size=2></FONT></P>
<P><FONT face=Arial size=2>* Total: refers to the total amount of physical
and virtual memory the computer is using at that moment.</FONT> </P>
<P><FONT face=Arial size=2>* Limit: refers to the combined limit of both the
physical memory and the allocated virtual memory.</FONT> </P>
<P><FONT face=Arial size=2>* Peak: refers to the highest total system memory
usage during the session in which you are using the computer.</FONT> </P>
<P><FONT size=2></FONT></P>
<P><FONT face=Arial size=2>"The commit charge will increase when
applications are opened and used and decrease when applications are
closed."</FONT> </P>
<P><FONT size=2></FONT></P>
<P><FONT face=Arial size=2>So, dividing the memory collected by 3044515
is confusing, to say the least, as what is shown by MEMUSE is actually
the Commit Charge. Dividing it by 3044515 assumes that we're using
paging space that is two times the size of Physical RAM - this
was exactly the reasoning used by a friend of mine, a Windows
specialist. But he corrected himself quickly and went to check the
paging file size. It was 1.5x the size of physical RAM and could grow up to
2x physical RAM, when neccessary. But even this behavior may be
changed by the user - specifying a paging space that it's 3x the
physical RAM, for exemple - thus making the plugin
output useless.</FONT> </P>
<P><FONT size=2></FONT></P>
<P><FONT face=Arial size=2>Another problem with this change is that the
values returned by the plugin are different that those shown on field
"Commit Charge" on Windows Task Manager, and this may confuse Windows
SA's.</FONT> </P>
<P><FONT size=2></FONT></P>
<P><FONT face=Arial size=2>Also, the original patch made by Gary Cook seems
not to have implemented warning and critical levels for performance
counters. I have an alternative implementation that does it, along with some
sanity checking of the parameters needed to use -v COUNTER.</FONT> </P>
<P><FONT size=2></FONT></P>
<P><FONT face=Arial size=2>The patch I'm sending solve both issues: it
restores the divisor to 1 MB and implements warning and critical levels for
performance counters. Please evaluate.</FONT> </P>
<P><FONT size=2></FONT></P>
<P><FONT face=Arial size=2>[]'s</FONT> </P>
<P><FONT face=Arial size=2>Paulo</FONT> </P>
<P></P>
<P><B><FONT size=2>Paulo Afonso Graner Fessel</FONT></B><B></B> </P>
<P><I><FONT size=2>Administrador de Ambiente e Sistemas
UNIX</FONT></I><I></I></P><BR>
<P><FONT color=#000ee0 size=2>paulo.fessel@primesys.com.br</FONT></P><BR>
<P><FONT size=2>OWT</FONT></P><BR>
<P><FONT size=2>Fone: +55 (11) 3038-6464</FONT></P><BR>
<P><FONT size=2>Fax: +55 (11) 3038-6508</FONT></P><BR>
<P><FONT color=#000ee0 size=2>http://www.primesys.com.br</FONT></P><BR>
<P></P>
<P><image.tiff> </P>
<P></P>
<P><LogoPrimesys.gif><check_nt.perfdata.newpatch></P></BLOCKQUOTE></BLOCKQUOTE><CODE><FONT SIZE=3><BR>
<BR>
This private and confidential e-mail has been sent to you by Egg.<BR>
The Egg group of companies includes Egg Banking plc<BR>
(registered no. 2999842), Egg Financial Products Ltd (registered<BR>
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which<BR>
is authorised and regulated by the Financial Services Authority. Egg<BR>
Investments Ltd. is entered in the FSA register under number 190518. <BR>
<BR>
Registered in England and Wales. Registered offices: 1 Waterhouse<BR>
Square, 138-142 Holborn, London EC1N 2NA.<BR>
<BR>
If you are not the intended recipient of this e-mail and have received<BR>
it in error, please notify the sender by replying with 'received in<BR>
error' as the subject and then delete it from your mailbox.<BR>
</FONT></CODE>
</BODY></HTML>