[Nagiosplug-devel] [ nagiosplug-Patches-1847879 ] check_ram plugin (based on check_swap)

Andreas Ericsson ae at op5.se
Mon Dec 10 15:35:47 CET 2007

SourceForge.net wrote:
> Patches item #1847879, was opened at 2007-12-10 14:59 Message
> generated for change (Tracker Item Submitted) made by Item Submitter 
> You can respond by visiting: 
> https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1847879&group_id=29880
> Please note that this message will contain a full copy of the comment
> thread, including the initial issue submission, for this request, not
> just the latest update. Category: Enhancement Group: None Status:
> Open Resolution: None Priority: 5 Private: No Submitted By: Christian
> Heim (g_phreak) Assigned to: Nobody/Anonymous (nobody) Summary:
> check_ram plugin (based on check_swap)
> Initial Comment: Find attached a C-based version of the check_ram
> plugin. The code is based upon the check_swap plugin minus the
> BSD/AIX (and others) code.

Why not just use sysconf(_SC_PHYS_PAGES) - sysconf(_SC_AV_PHYS_PAGES) ?

Fiddling with /proc/meminfo isn't very portable.

Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

More information about the Devel mailing list