>>> On 8/20/2007 at 6:47 AM, in message <[EMAIL PROTECTED]>,
"Periyasamy Palanisamy" <[EMAIL PROTECTED]> wrote:
> Hi
> I need some clarification on the metric_cleanup() method in python metric 
> code.
> 1. what should be there in cleanup code?
> 2. Do we need to make dictionary list (it is initialized in the 
> metric_init()) to be null?
>  

   What you do in your metric_cleanup() code is up to you and your module.  The 
metric_cleanup() is simply provided so that your module has an opportunity to 
clean up after itself before gmond shuts down.  For example, if you had to 
start up or initialize some external system in your init() callback in order 
for your module to work properly and that system requires de-initialization, 
the metric_cleanup() callback gives you that opportunity.

Brad


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to