From c2510c777581dfea040e9e67aee9ed41b7e1309f Mon Sep 17 00:00:00 2001 From: slerena Date: Mon, 24 Nov 2008 15:53:58 +0000 Subject: [PATCH] 2008-11-25 Sancho Lerena * linux/pandora_agent: Fixed problem parsing async_string. * linux/pandora_agent.conf: Sample of async_string module. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1259 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/ChangeLog | 6 ++++++ pandora_agents/linux/pandora_agent | 2 +- pandora_agents/linux/pandora_agent.conf | 8 ++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog index 9ec9eccb42..5ed6e4b9a6 100644 --- a/pandora_agents/ChangeLog +++ b/pandora_agents/ChangeLog @@ -1,3 +1,9 @@ +2008-11-25 Sancho Lerena + + * linux/pandora_agent: Fixed problem parsing async_string. + + * linux/pandora_agent.conf: Sample of async_string module. + 2008-09-04 Evi Vanoost * mac_osx/plugins/XServeRAID: Updated for 2.0 type agents. Added diff --git a/pandora_agents/linux/pandora_agent b/pandora_agents/linux/pandora_agent index feecb3f6f9..8df1124be6 100755 --- a/pandora_agents/linux/pandora_agent +++ b/pandora_agents/linux/pandora_agent @@ -488,7 +488,7 @@ do if [ ! -z "`echo $a | grep -e '^module_type'`" ] then mtype=`echo $a | awk '{ print $2 }' ` - if [ ! -z "`echo $mtype | grep 'generic_data_string'`" ] + if [ ! -z "`echo $mtype | grep 'generic_data_string'`" ] || [ ! -z "`echo $mtype | grep 'async_string'`" ] then flux_string=1 else diff --git a/pandora_agents/linux/pandora_agent.conf b/pandora_agents/linux/pandora_agent.conf index 7252fac2c2..2187f66569 100755 --- a/pandora_agents/linux/pandora_agent.conf +++ b/pandora_agents/linux/pandora_agent.conf @@ -135,6 +135,14 @@ module_type generic_proc module_exec ps -Af | grep sshd | grep -v "grep" | wc -l module_end +# Async data example + +module_begin +module_name LastLogin +module_type async_string +module_exec last | head -1 +module_end + # Plugin example # This parses /var/log/syslog file, under the module name "syslog"