RFC Proof of concept patch: Restarting embedded Perl Nagios.

Andreas Ericsson ae at op5.se
Tue Oct 26 10:51:31 CEST 2004


Stanley Hopcroft wrote:
> Dear Sir,
> 
> I am writing to thank you for your letter and say,
> 
> On Wed, Oct 20, 2004 at 09:01:28PM -0500, Ethan Galstad wrote:
> 
>>Following up on an old post that needs addressing...
>>
>>The info from the Perl docs you provided earlier state that lost 
>>memory can only be freed by stopping the process. 
> 
> 
> Agreed.
> 
> 
>>Rather than 
>>including this functionality in Nagios (which would be a bit kludgy), 
>>I would recommend another approach (which is still hackish, but 
>>better IMO)...
>>
> 
> 
>         
> 
>>Use cron to periodically run a script that calls the check_vsz plugin 
>>to determine the memory usage of the Nagios daemon.  If the plugin 
>>returns a critical state, restart Nagios using the init script.  
>>Simple, but effective.
>>
>>
> 
> 
> Yes, this is a much better way (even periodic restarts from cron without
> checking mem use would be sufficient).
> 

Umm.. How about the old-fashioned and cleaner way, using vfork(2) and 
execve(2)?

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl




More information about the Developers mailing list