Add error checking and avoid global.
Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]>
---
trunk/monitor-core/libmetrics/aix/metrics.c |8 ++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/trunk/monitor-core/libmetrics/aix/metrics.c
b/trunk/monitor-core/libm
add error checking and a local struct instead of the cpu_total_buffer global
using "unknown" in case of failure to avoid overflow and for consistency
with other platforms
Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]>
---
trunk/monitor-core/libmetrics/aix/metrics.c |9 +---
Use a local perfstat_cpu_total_t instead of the global cpu_total_buffer.
Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]>
---
trunk/monitor-core/libmetrics/aix/metrics.c | 10 +-
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/trunk/monitor-core/libmetrics/ai
Add error checking for the load metrics and adds a header and define which
was probably needed (but wasn't there before).
Someone with access to an AIX system could verify if the is
really needed for SBITS as indicated in the documentation and if running in an
old version of AIX if the #if define
Replace global minfo with local perfstat_memory_total_t structures
Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]>
---
trunk/monitor-core/libmetrics/aix/metrics.c | 62 ++
1 files changed, 33 insertions(+), 29 deletions(-)
diff --git a/trunk/monitor-core/l
Remove global dinfo and use a local perfstat_disk_total_t structure for both
implemented metrics leaving part_max_used without implementation for now.
The first snippet is really part of the first patch
Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]>
---
trunk/monitor-core/libmetri
merging changes to the AIX metrics from the new metrics file filed as part
of BUG146:
http://bugzilla.ganglia.info/cgi-bin/bugzilla/show_bug.cgi?id=146
Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]>
---
trunk/monitor-core/libmetrics/aix/metrics.c |6 +-
1 files changed,
Greetings,
the following patch series modifies all core metrics for AIX using the
proposed changes suggested in BUG146 by Michael Perzl.
PATCH 01/14 : contributor update
PATCH 02/14 : disk metrics
PATCH 03/14 : memory metrics
PATCH 04/14 : load metrics
PATCH 05/14 : cpu speed metric
P