---
title: 'lfd:statistics'
url: 'https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-statistics'
markdown: 'https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-statistics.md'
date: '2026-09-24'
description: 'Configure server statistics gathering. juggernaut --task=lfd:statistics Option Value Default Description --ST_ENABLE <1|0> 1 Enable statistical data gathering. --ST_IPTABLES 100 The number of iptables log lines to store for reports. --ST_LOOKUP 0 Enable whether reverse DNS a…'
taxonomy:
  category:
    - docs
  tag:
    - monitoring
---

[](#)  [ Basics ](https://docs.danami.com/juggernaut/)     [ Command Line Interface ](https://docs.danami.com/juggernaut/command-line-interface)      Lfd       lfd:statistics    

# 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` |  | 100 | The number of iptables log lines to store for reports. |
| `--ST_LOOKUP` |  | 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` |  | 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
```

## Related Pages

- [Directory Watching](https://docs.danami.com/juggernaut/user-guide/directory-watching "Directory Watching")
- [Logging Settings](https://docs.danami.com/juggernaut/settings/firewall/logging-settings "Logging Settings")
- [Directory Watching](https://docs.danami.com/juggernaut/settings/login-failure-daemon/directory-watching "Directory Watching")
- [Statistics Settings](https://docs.danami.com/juggernaut/settings/login-failure-daemon/statistics-settings "Statistics Settings")

 [ ](https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-directorywatching-paths) [](https://docs.danami.com/juggernaut/settings/firewall/logging-settings)

---

## Navigation

- Previous: [lfd:reporting](https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-reporting.md)
- Next: [lfd:tracking:account](https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-tracking-account.md)
