[Nagiosplug-devel] Patch for completeness on check_nt plugin

Voon, Ton Ton.Voon at egg.com
Tue Aug 24 00:09:18 CEST 2004


Sorry, forgot to mention that we ALWAYS give credit. The specific checkin
would have your name next to it
(http://cvs.sourceforge.net/viewcvs.py/nagiosplug/nagiosplug/plugins/check_n
t.c?rev=1.24
<http://cvs.sourceforge.net/viewcvs.py/nagiosplug/nagiosplug/plugins/check_n
t.c?rev=1.24&sortby=date&view=log> &sortby=date&view=log) and we credit you
in the THANKS file (generated from AUTHORS -
http://cvs.sourceforge.net/viewcvs.py/nagiosplug/nagiosplug/AUTHORS?rev=1.37
<http://cvs.sourceforge.net/viewcvs.py/nagiosplug/nagiosplug/AUTHORS?rev=1.3
7&view=auto> &view=auto). 
 
We appreciate everyone's involvement.

-----Original Message-----
From: Paulo Afonso Graner Fessel [mailto:paulo.fessel at primesys.com.br] 
Sent: 23 August 2004 23:09
To: Ton Voon; Garry Cook
Cc: nagiosplug-devel at lists.sourceforge.net
Subject: RES: [Nagiosplug-devel] Patch for completeness on check_nt plugin


Ton,
 
No problems with the remotion of the Copyright. Just provide credit of the
changes I've made, ok?
 
Thanks,
Paulo
 
Paulo Afonso Graner Fessel
Administrador de Ambiente e Sistemas UNIX

paulo.fessel at primesys.com.br <mailto:paulo.fessel at primesys.com.br> 
OWT
Fone: +55 (11) 3038-6464
Fax: +55 (11) 3038-6508
http://www.primesys.com.br <http://www.primesys.com.br/> 
 

 
 


  _____  

De: Ton Voon [mailto:tonvoon at mac.com] 
Enviada em: segunda-feira, 23 de agosto de 2004 19:07
Para: Paulo Afonso Graner Fessel; Garry Cook
Cc: nagiosplug-devel at lists.sourceforge.net
Assunto: Re: [Nagiosplug-devel] Patch for completeness on check_nt plugin



Paulo, Garry, 


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! 


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. 


Ton 


On 20 Aug 2004, at 13:28, Paulo Afonso Graner Fessel wrote: 


I've looked at code of check_nt.c and there's this remark: 



// Changed divisor in following line from v to 3044515 to accurately reflect
memory size 



This is incorrect. The memory size that check_nt reports is a sum of RAM and
pagefile sizes, as defined here: 



"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. 



"Windows Task Manager displays the commit charge in its Performance tab.
There are three memory readings, measured in kilobytes: 



* Total: refers to the total amount of physical and virtual memory the
computer is using at that moment. 

* Limit: refers to the combined limit of both the physical memory and the
allocated virtual memory. 

* Peak: refers to the highest total system memory usage during the session
in which you are using the computer. 



"The commit charge will increase when applications are opened and used and
decrease when applications are closed." 



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. 



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. 



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. 



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. 



[]'s 

Paulo 



Paulo Afonso Graner Fessel 

Administrador de Ambiente e Sistemas UNIX


paulo.fessel at primesys.com.br


OWT


Fone: +55 (11) 3038-6464


Fax: +55 (11) 3038-6508


http://www.primesys.com.br




<image.tiff>  



<LogoPrimesys.gif><check_nt.perfdata.newpatch>



This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
is authorised and regulated by the Financial Services Authority. Egg
Investments Ltd. is entered in the FSA register under number 190518. 

Registered in England and Wales. Registered offices: 1 Waterhouse
Square, 138-142 Holborn, London EC1N 2NA.

If you are not the intended recipient of this e-mail and have received
it in error, please notify the sender by replying with 'received in
error' as the subject and then delete it from your mailbox.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20040824/07ba3297/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LogoPrimesys.gif
Type: image/gif
Size: 2173 bytes
Desc: not available
URL: <http://nagios-plugins.org/archive/devel/attachments/20040824/07ba3297/attachment.gif>


More information about the Devel mailing list