pandorafms/pandora_agents/embedded/pandora_agent.conf
javilanz 6d10cb1cc4 2011-02-03 Javier Lanz <javier.lanz@artica.es>
* pandora_agent.c: Solved some leaks
	* pandora_agent.conf: Added some example modules
	* pandora_config.c: Added parse_config, fill module & fill setup functions
	* pandora_config.h: Fixed function prototypes
	* pandora_util.c: Added xml writer & trim functions
	* pandora_util.h: Added trim functions prototype 
	* pandora_type.h: Added pointer for the link list


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3799 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-03 17:25:38 +00:00

61 lines
1.8 KiB
Plaintext

# --------------------------------------------------------------------------
# Pandora FMS Embedded Agent configuration file
# (c) Sancho Lerena 2011
# Licensed under GPLv2 terms. Please visit http://www.gnu.org/licenses
# --------------------------------------------------------------------------
# drone mode: Use this agent as Tentacle proxy for other agents
# (NOT IMPLEMENTED YET)
#drone_mode 1
# incomingdir: Defines directory where incoming data packets are placed (Tentacle, Drone mode)
# (NOT IMPLEMENTED YET)
#incoming_dir /var/spool/pandora/data_in/
# log_file: Main logfile for pandora_agent log, usually dev/null
logfile /dev/null
#logfile /tmp/pandora_agent.log
# server_ip: Server hostname or IP address
server_ip 192.168.5.50
# debug mode: If enabled doesn't copy XML and abort after first execution
debug 0
# temporal: Temporal path: use sdcard if available, for example or ram disk
temporal /tmp
# Interval: In seconds
interval 300
# Agent name: if not provided, takes the host name
agent_name AT91SAM9261
# Autotime: If set to 1, pandora will ignore timestamp of XML generated by this agent
autotime 1
# Tentacle server port, 41121 by default
server_port 41121
# -------------------------------------------------------------------------------
# Module definition BEGINS here
# -------------------------------------------------------------------------------
#
module_begin
module_name memfree
module_type generic_data
module_exec cat /proc/meminfo | grep MemFree | awk '{ print $2 }'
module_end
module_begin
module_name Load Average
module_type generic_data
module_exec cat /proc/loadavg | cut -d' ' -f1
module_description Average process in CPU (Last minute)
module_end
#module_plugin /etc/pandora/plugins/pandora_df
module_plugin /etc/pandora/plugins/pandora_df