2008-11-25 Sancho Lerena <slerena@gmail.com>
* 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
This commit is contained in:
parent
652133523f
commit
2868feded9
|
@ -1,3 +1,9 @@
|
|||
2008-11-25 Sancho Lerena <slerena@gmail.com>
|
||||
|
||||
* linux/pandora_agent: Fixed problem parsing async_string.
|
||||
|
||||
* linux/pandora_agent.conf: Sample of async_string module.
|
||||
|
||||
2008-09-04 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||
|
||||
* mac_osx/plugins/XServeRAID: Updated for 2.0 type agents. Added
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue