2008-03-13 19:33:44 +01:00
|
|
|
Pandora FMS DB Stress
|
|
|
|
=====================
|
2007-06-25 14:05:52 +02:00
|
|
|
|
2009-04-21 16:32:05 +02:00
|
|
|
This is a small tool to test your database performance. It also could be used
|
|
|
|
to "pregenerate" random or periodic data (using trigonometric functions) and
|
|
|
|
populate ficticious modules.
|
2008-03-13 19:33:44 +01:00
|
|
|
|
2009-04-21 16:32:05 +02:00
|
|
|
You must create an agent and assign modules for automated data injection
|
|
|
|
with this tool. You must to name that modules according to this notation:
|
2007-06-25 14:05:52 +02:00
|
|
|
|
2009-04-21 16:32:05 +02:00
|
|
|
* random - to generate "random" data.
|
|
|
|
* curve - to generate a math curve using trigonometric functions, useful to
|
|
|
|
see interpolation working with different intervals, etc.
|
|
|
|
* boolean - to generate "random" boolean data.
|
2007-06-25 14:05:52 +02:00
|
|
|
|
2009-04-21 16:32:05 +02:00
|
|
|
So you can use any name containing the words "random", "curve" or "boolean",
|
|
|
|
for example:
|
2008-03-13 19:33:44 +01:00
|
|
|
|
2009-04-21 16:32:05 +02:00
|
|
|
"random_1" or "curve_other"
|
2008-03-13 19:33:44 +01:00
|
|
|
|
2009-04-21 16:32:05 +02:00
|
|
|
You can only select the "data server" module type.
|
2008-03-13 19:33:44 +01:00
|
|
|
|
|
|
|
Finetuning DB stress tool
|
|
|
|
=========================
|
|
|
|
|
2009-04-21 16:32:05 +02:00
|
|
|
Tool is preconfigured to search in all agents for modules called random, curve
|
|
|
|
or boolean, and to use a interval of 300 and during 30 days.
|
2008-03-13 19:33:44 +01:00
|
|
|
|
2009-04-21 16:32:05 +02:00
|
|
|
If you want to modify this behaviour you should edit pandora_dbstress script
|
|
|
|
and modify some variables at the top of file:
|
2008-03-13 19:33:44 +01:00
|
|
|
|
|
|
|
# Configure here target (AGENT_ID for Stress)
|
|
|
|
my $target_module = -1; # -1 for all modules of that agent
|
|
|
|
my $target_agent = -1;
|
|
|
|
my $target_interval = 300;
|
|
|
|
my $target_days = 30;
|
|
|
|
|
2009-04-21 16:32:05 +02:00
|
|
|
Set there target_module (for a fixed module) or set -1 to process all matching
|
|
|
|
targets.
|
2008-03-13 19:33:44 +01:00
|
|
|
Set there target_agent (for a specific agent).
|
|
|
|
Set target_interval in seconds for default module interval data periodicity.
|
2009-04-21 16:32:05 +02:00
|
|
|
Set target_days, number of days in the past from current timestamp.
|