2011-01-22 04:53:56 +01:00
|
|
|
# --------------------------------------------------------------------------
|
|
|
|
# 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
|
2011-01-22 21:29:06 +01:00
|
|
|
logfile /dev/null
|
|
|
|
#logfile /tmp/pandora_agent.log
|
2011-01-22 04:53:56 +01:00
|
|
|
|
|
|
|
# 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
|
2011-01-22 21:29:06 +01:00
|
|
|
debug 0
|
2011-01-22 04:53:56 +01:00
|
|
|
|
|
|
|
# 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
|
2011-01-22 21:29:06 +01:00
|
|
|
agent_name AT91SAM9261
|
2011-01-22 04:53:56 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
# -------------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
|
2011-02-03 18:25:38 +01:00
|
|
|
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
|
2011-01-22 04:53:56 +01:00
|
|
|
module_plugin /etc/pandora/plugins/pandora_df
|
|
|
|
|