mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
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
fda8a3ce84
commit
c2510c7775
@ -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>
|
2008-09-04 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||||
|
|
||||||
* mac_osx/plugins/XServeRAID: Updated for 2.0 type agents. Added
|
* mac_osx/plugins/XServeRAID: Updated for 2.0 type agents. Added
|
||||||
|
@ -488,7 +488,7 @@ do
|
|||||||
if [ ! -z "`echo $a | grep -e '^module_type'`" ]
|
if [ ! -z "`echo $a | grep -e '^module_type'`" ]
|
||||||
then
|
then
|
||||||
mtype=`echo $a | awk '{ print $2 }' `
|
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
|
then
|
||||||
flux_string=1
|
flux_string=1
|
||||||
else
|
else
|
||||||
|
@ -135,6 +135,14 @@ module_type generic_proc
|
|||||||
module_exec ps -Af | grep sshd | grep -v "grep" | wc -l
|
module_exec ps -Af | grep sshd | grep -v "grep" | wc -l
|
||||||
module_end
|
module_end
|
||||||
|
|
||||||
|
# Async data example
|
||||||
|
|
||||||
|
module_begin
|
||||||
|
module_name LastLogin
|
||||||
|
module_type async_string
|
||||||
|
module_exec last | head -1
|
||||||
|
module_end
|
||||||
|
|
||||||
# Plugin example
|
# Plugin example
|
||||||
|
|
||||||
# This parses /var/log/syslog file, under the module name "syslog"
|
# This parses /var/log/syslog file, under the module name "syslog"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user