From 8984a28aa9f393136b03b42b8b467b9876131702 Mon Sep 17 00:00:00 2001 From: slerena Date: Wed, 17 Feb 2010 02:16:03 +0000 Subject: [PATCH] 2010-02-18 Sancho Lerena * unix/Linux/pandora_agent.conf, linux/pandora_agent.conf: Modified way to get loadaverage, taken from Enriquegm from the forums. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2372 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/ChangeLog | 6 ++++++ pandora_agents/linux/pandora_agent.conf | 2 +- pandora_agents/unix/Linux/pandora_agent.conf | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog index a9909e9420..07c62ecd5d 100644 --- a/pandora_agents/ChangeLog +++ b/pandora_agents/ChangeLog @@ -1,3 +1,9 @@ +2010-02-18 Sancho Lerena + + * unix/Linux/pandora_agent.conf, + linux/pandora_agent.conf: Modified way to get loadaverage, taken from + Enriquegm from the forums. + 2010-02-16 Pablo de la ConcepciĆ³n Updated tentacle from the tentacle repository and generated diff --git a/pandora_agents/linux/pandora_agent.conf b/pandora_agents/linux/pandora_agent.conf index 78b76d6d3b..0628c6bbdb 100755 --- a/pandora_agents/linux/pandora_agent.conf +++ b/pandora_agents/linux/pandora_agent.conf @@ -103,7 +103,7 @@ module_end module_begin module_name Load Average module_type generic_data -module_exec uptime | awk '{ print $10 }' | cut -f 1 -d "," +module_exec cat /proc/loadavg |awk '{print $1}' module_description Average process in CPU (Last minute) module_end diff --git a/pandora_agents/unix/Linux/pandora_agent.conf b/pandora_agents/unix/Linux/pandora_agent.conf index 1139530b66..82f02cbd25 100755 --- a/pandora_agents/unix/Linux/pandora_agent.conf +++ b/pandora_agents/unix/Linux/pandora_agent.conf @@ -116,7 +116,7 @@ module_end module_begin module_name Load Average module_type generic_data -module_exec uptime | awk '{ print $10 }' | cut -f 1 -d "," +module_exec cat /proc/loadavg |awk '{print $1}' module_description Average process in CPU (Last minute) module_end