lfd:statistics

Configure server statistics gathering.

juggernaut --task=lfd:statistics
Option
Value Default Description
--ST_ENABLE <1|0> 1 Enable statistical data gathering.
--ST_IPTABLES <10-1000> 100 The number of iptables log lines to store for reports.
--ST_LOOKUP <7-366> 0 Enable whether reverse DNS and country code lookups are performed at the time the log line is recorded.
--ST_SYSTEM <1|0> 1 Enable the gathering of basic system statistics.
--ST_SYSTEM_MAXDAYS <string> 30 The maximum number of days to collect system statistics for.
--ST_MYSQL <string> 0 If ST_SYSTEM is enabled, then these options can collect MySQL statistical data. The perl modules DBI and DBD::mysql are required. To disable this option set to 0.
--ST_MYSQL_USER <string> admin The MySQL username. Any MySQL user account can be used.
--ST_MYSQL_PASS <string> The MySQL password. If the password is left blank and the user set to root then the procedure will look for authentication data in /root/.my.cnf.
--ST_MYSQL_HOST <string> localhost The MySQL Hostname.
--ST_APACHE <1|0> 0 If ST_SYSTEM is enabled, then this option can collect Apache statistical data The value for PT_APACHESTATUS must be correctly set.
--ST_DISKW <1|0> 0 Enable the measure of disk write performance using dd.
--ST_DISKW_FREQ <1-1440> 5 The number of minutes that elapse between disk write tests.
--default <yes> Reset all settings to their default values.
--default_option <option> Reset a specific setting to its default value.
--restart <yes> Restart the service after saving settings.

Examples

// enable statistics gathering
juggernaut --task=lfd:statistics --ST_ENABLE=1 --restart=yes

// reset ST_IPTABLES back to default
juggernaut --task=lfd:statistics --default_option=ST_IPTABLES --restart=yes

// reset all settings back to default
juggernaut --task=lfd:statistics --default=yes --restart=yes