2013-05-20 13:20:39 +02:00
|
|
|
# Sample configuration file for pandora_xmlstress
|
2012-03-07 21:00:56 +01:00
|
|
|
# (c) 2012, http://pandorafms.org
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
# Maximum number of threads, by default 5
|
|
|
|
max_threads 5
|
2011-08-25 20:27:47 +02:00
|
|
|
|
|
|
|
# File containing a list of agent names (one per line).
|
2012-04-19 20:47:57 +02:00
|
|
|
agent_file /usr/share/pandora_server/util/pandora_xml_stress.agents
|
2011-08-25 20:27:47 +02:00
|
|
|
|
|
|
|
# Directory where XML data files will be placed, by default /tmp.
|
2011-11-16 13:21:47 +01:00
|
|
|
# When sending files to a local Tentacle server make sure this directory
|
|
|
|
# and Pandora FMS Server's incomingdir are different.
|
2013-06-19 10:53:56 +02:00
|
|
|
temporal /tmp
|
2011-08-25 20:27:47 +02:00
|
|
|
|
|
|
|
# Pandora FMS XML Stress log file, logs to stdout by default.
|
|
|
|
log_file pandora_xml_stress.log
|
|
|
|
|
|
|
|
# XML version, by default 1.0.
|
|
|
|
xml_version 1.0
|
|
|
|
|
2012-06-21 13:47:23 +02:00
|
|
|
# XML encoding, by default UTF-8.
|
|
|
|
encoding UTF-8
|
2011-08-25 20:27:47 +02:00
|
|
|
|
|
|
|
# Operating system (shared by all agents), by default Linux.
|
|
|
|
os_name Linux
|
|
|
|
|
|
|
|
# Operating system version (shared by all agents), by default 2.6.
|
|
|
|
os_version 2.6
|
|
|
|
|
2013-01-22 09:59:53 +01:00
|
|
|
# Agent group, by default Servers.
|
|
|
|
#group Servers
|
|
|
|
|
2011-08-25 20:27:47 +02:00
|
|
|
# Agent interval, by default 300.
|
2013-03-11 18:23:19 +01:00
|
|
|
agent_interval 300
|
2011-08-25 20:27:47 +02:00
|
|
|
|
|
|
|
# Data file generation start date, by default now.
|
2013-03-11 18:23:19 +01:00
|
|
|
#time_from 2013-03-11 00:00:00
|
2011-08-25 20:27:47 +02:00
|
|
|
|
|
|
|
# Data file generation end date, by default now.
|
2013-03-11 18:23:19 +01:00
|
|
|
#time_to 2013-03-21 00:00:00
|
2011-08-25 20:27:47 +02:00
|
|
|
|
|
|
|
# Get conf from Pandora Server
|
2012-03-07 21:00:56 +01:00
|
|
|
get_and_send_agent_conf 0
|
2011-08-25 20:27:47 +02:00
|
|
|
|
2013-09-02 09:20:10 +02:00
|
|
|
# The directory to store the files conf agent (not in the server).
|
|
|
|
# directory_confs .
|
|
|
|
|
|
|
|
# The directory to generate the next files conf agent for to send.
|
|
|
|
#directory_temp /tmp
|
|
|
|
|
2011-08-25 20:27:47 +02:00
|
|
|
# Delay after generating the first data file for each agent to avoid
|
|
|
|
# race conditions when auto-creating the agent, by default 2.
|
2012-03-07 21:00:56 +01:00
|
|
|
startup_delay 1
|
2011-08-25 20:27:47 +02:00
|
|
|
|
|
|
|
# Timezone offset: Difference with the server timezone
|
|
|
|
timezone_offset 0
|
|
|
|
|
|
|
|
# Timezone offset range (to set a randomnuber of hours of difference with the
|
|
|
|
# server so timezone_offset can go from timezone_offset-timezone_offset_range
|
|
|
|
# to timezone_offset+timezone_offset_range
|
|
|
|
timezone_offset_range 0
|
|
|
|
|
|
|
|
# Agent position paramters
|
|
|
|
# Those parameters define the center and the zone where the agents will be
|
|
|
|
# randomly located.
|
|
|
|
# The base parameters define the central point of the sistem and the radius
|
|
|
|
# defines how far from that point the agents will be placed in any direction
|
|
|
|
|
|
|
|
# Base latitude reference for all agents
|
|
|
|
latitude_base 40.42056
|
|
|
|
# Base longitude reference for all agents
|
|
|
|
longitude_base -3.708187
|
|
|
|
# Base altitude reference for all agents
|
|
|
|
altitude_base 0
|
|
|
|
# This amount divided by 100 defines how far from each reference coordinate
|
|
|
|
# the agents will go
|
|
|
|
position_radius 10
|
|
|
|
|
|
|
|
# Address of the Tentacle server where XML files will be sent (optional).
|
2013-06-19 10:53:56 +02:00
|
|
|
server_ip 127.0.0.1
|
|
|
|
|
|
|
|
# Local copy XML files, by default 0
|
|
|
|
local_copy 1
|
|
|
|
|
|
|
|
# Local dir for to copy XML files in local send method, by defaul /var/spool/pandora/data_in
|
|
|
|
#local_dir /var/spool/pandora/data_in
|
2011-08-25 20:27:47 +02:00
|
|
|
|
|
|
|
# Port of the Tentacle server, by default 41121.
|
|
|
|
# server_port 41121
|
|
|
|
|
|
|
|
# Module definitions. Similar to pandora_agent.conf.
|
|
|
|
|
|
|
|
module_begin
|
2012-03-07 21:00:56 +01:00
|
|
|
module_name Connections opened
|
|
|
|
module_type generic_data
|
|
|
|
module_description Network connections used in this machine
|
|
|
|
module_exec type=RANDOM;variation=20;min=50;max=500
|
|
|
|
module_unit conns
|
2013-03-11 18:23:19 +01:00
|
|
|
module_min_critical 450
|
|
|
|
module_min_warning 400
|
2013-05-20 13:20:39 +02:00
|
|
|
module_attenuation 0.33
|
|
|
|
module_attenuation_wdays 0 6
|
2012-03-07 21:00:56 +01:00
|
|
|
module_end
|
|
|
|
|
2012-03-12 20:04:49 +01:00
|
|
|
module_begin
|
|
|
|
module_name Dropped Bits of nothing
|
|
|
|
module_type generic_data
|
|
|
|
module_description Simulation of big number with absolute nosense, real like life itself.
|
|
|
|
module_exec type=RANDOM;variation=5;min=-5000;max=500000000
|
|
|
|
module_unit gamusins
|
|
|
|
module_end
|
|
|
|
|
2012-03-07 21:00:56 +01:00
|
|
|
module_begin
|
|
|
|
module_name Network Traffic (Incoming)
|
2011-08-25 20:27:47 +02:00
|
|
|
module_type generic_data
|
2012-03-07 21:00:56 +01:00
|
|
|
module_description Network throughtput for incoming data
|
2012-03-12 20:04:49 +01:00
|
|
|
module_exec type=RANDOM;variation=50;min=0;max=1000000
|
2012-03-07 21:00:56 +01:00
|
|
|
module_unit kbit/sec
|
2013-03-11 18:23:19 +01:00
|
|
|
module_min_critical 900000
|
2013-05-20 13:20:39 +02:00
|
|
|
module_attenuation 0.5
|
|
|
|
module_attenuation_wdays 0 6
|
2011-08-25 20:27:47 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2012-03-07 21:00:56 +01:00
|
|
|
module_name Network Traffic (Outgoing)
|
2011-08-25 20:27:47 +02:00
|
|
|
module_type generic_data
|
2012-03-07 21:00:56 +01:00
|
|
|
module_description Network throughtput for Outgoing data
|
2012-03-12 20:04:49 +01:00
|
|
|
module_exec type=RANDOM;variation=50;min=0;max=1000000
|
2012-03-07 21:00:56 +01:00
|
|
|
module_unit kbit/sec
|
2013-03-11 18:23:19 +01:00
|
|
|
module_min_critical 900000
|
2013-05-20 13:20:39 +02:00
|
|
|
module_attenuation 0.1
|
|
|
|
module_attenuation_wdays 0 6
|
2011-08-25 20:27:47 +02:00
|
|
|
module_end
|
|
|
|
|
2012-03-07 21:00:56 +01:00
|
|
|
module_begin
|
2013-03-11 19:46:46 +01:00
|
|
|
module_name Server Status A
|
2012-03-07 21:00:56 +01:00
|
|
|
module_type generic_proc
|
|
|
|
module_description Status of my super-important daemon / service / process
|
2013-03-11 19:46:46 +01:00
|
|
|
module_exec type=RANDOM;variation=1;min=0;max=100
|
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
|
|
|
module_name Server Status B
|
|
|
|
module_type generic_proc
|
|
|
|
module_description Status of my super-important daemon / service / process
|
|
|
|
module_exec type=RANDOM;variation=1;min=0;max=100
|
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
|
|
|
module_name Server Status C
|
|
|
|
module_type generic_proc
|
|
|
|
module_description Status of my super-important daemon / service / process
|
|
|
|
module_exec type=RANDOM;variation=1;min=0;max=100
|
2012-03-07 21:00:56 +01:00
|
|
|
module_end
|
2011-08-25 20:27:47 +02:00
|
|
|
|
|
|
|
module_begin
|
2012-03-07 21:00:56 +01:00
|
|
|
module_name CPU Usage
|
2011-08-25 20:27:47 +02:00
|
|
|
module_type generic_data
|
2012-03-07 21:00:56 +01:00
|
|
|
module_description % of CPU usage in this machine
|
|
|
|
module_unit %
|
|
|
|
module_exec type=SCATTER;prob=5;avg=10;min=0;max=80
|
2013-03-11 18:23:19 +01:00
|
|
|
module_min_critical 90
|
|
|
|
module_min_warning 60
|
2012-03-07 21:00:56 +01:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
|
|
|
module_name Disk_Free
|
|
|
|
module_type generic_data
|
|
|
|
module_description Disk space available in MB.
|
|
|
|
module_unit MB
|
2011-08-25 20:27:47 +02:00
|
|
|
module_exec type=CURVE;min=20;max=80;time_wave_length=3600;time_offset=0
|
2013-03-11 18:23:19 +01:00
|
|
|
module_min_critical 0
|
|
|
|
module_max_critical 10
|
|
|
|
module_max_warning 20
|
|
|
|
module_min_warning 10
|
2011-08-25 20:27:47 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2012-03-07 21:00:56 +01:00
|
|
|
module_name Memory_free
|
|
|
|
module_type generic_data
|
|
|
|
module_unit MB
|
|
|
|
module_exec type=CURVE;min=5;max=8000;time_wave_length=360000;time_offset=0
|
2013-03-11 18:23:19 +01:00
|
|
|
module_min_critical 0
|
|
|
|
module_max_critical 50
|
2012-03-07 21:00:56 +01:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
|
|
|
module_name System Log File
|
2011-08-25 20:27:47 +02:00
|
|
|
module_type generic_data_string
|
2012-03-07 21:00:56 +01:00
|
|
|
module_description Messages from the system in logfile format
|
|
|
|
module_exec type=RANDOM;variation=60;min=40;max=40
|
2011-08-25 20:27:47 +02:00
|
|
|
module_end
|
2012-09-28 13:52:50 +02:00
|
|
|
|
2013-03-11 18:23:19 +01:00
|
|
|
#module_begin
|
|
|
|
#module_name Module source
|
|
|
|
#module_type generic_data
|
|
|
|
#module_description Module data generated from source
|
|
|
|
#module_exec type=SOURCE;src=/usr/share/pandora_server/util/pandora_xml_stress_module_source.txt
|
|
|
|
#module_end
|