By default, the Barracuda CloudGen Firewall generates statistics entries for most of the configured services. Each service or module creates its own statistics entries, and the system stores these entries in a database. You can view statistics for your system box and server processes, disk utilization, processor load, and traffic generation on the Statistics page.
The CloudGen Firewall generates two different types of statistics:
- Top Statistics – Connection information. Identified by the suffix 'Top'.
- Time Statistics – Time information. Identified by the suffix 'Time'.
Statistics data are stored in the /var/phion/stat directory. The /var/phion/stat directory is the root directory of the statistics data structure. The data files are BDB files in binary format. You can view these files with the showstat utility (/opt/phion/bin
).
Statistics Services
The statistics package represents an integral part of the CloudGen Firewall box infrastructure and consists of two box services named cstatd and qstatd, along with a utility program named dstats that is regularly invoked by cron. The dstats utility processes and deletes statistical data according to configurable rules.
The following services are responsible for handling statistics data:
Service | Description |
---|---|
cstatd | Collects statistics files. |
qstatd | Handles statistics queries and displays statistics files in the statistics viewer. |
dstats | (statcook daemon) Validates and cooks (or compresses) statistics files. The utility is run by cron as daily job. dstats recognizes corrupted statistics files and prevents them from being collected by cstatd and dstatm. Available on stand-alone systems and the Barracuda Firewall Control Center. |
dstatm | Firewall Control Center service. Collects statistics files from systems that are managed by the Firewall Control Center. |
qstatm | Firewall Control Center service. Handles statistics queries and displays statistics files on the statistics viewer for the Firewall Control Center. |
Box Statistics
You can view the following statistics for the box:
Statistics | Description |
---|---|
cpu(Time) | The CPU load x 100 is displayed in the graphic. The CPU load is an equivalent and has no unit. For example, on a single processor machine CPU load 1 states that a given process utilizes the whole processor. The equivalent on a dual processor machine is CPU load 0.5, which means a given process utilizes half of the available CPUs. |
cputime | The amount of CPU time needed for running or completed processes is displayed. The unit is a millisecond per second. |
disk | Status of available disk space (filling degree) of the single partitions, available in bytes and percentage. |
fdesc | Number of file descriptors per CloudGen Firewall box or server process. |
mem | Main memory capacity in bytes per CloudGen Firewall box or server process. |
net | Net transfer statistic (in/out) per network interface in bytes, packets, and the number of errors in the configured network interface. |
proc | Number of current box and server processes. |
sock | Number of open sockets per box or server process. |
Server Statistics
You can view the following statistics from the server:
Statistics | Description |
---|---|
byte (Time for Dst) | Bytes transferred for a certain destination address. |
byte (Time for Src) | Bytes transferred for a certain source address. |
byte (Time) | Bytes transferred. |
byte (Top Dst) | Bytes transferred for a certain destination address. |
byte (Top Src-Dst / Dst-Src) | Bytes transferred for a certain pair of source and destination addresses. |
byte (Top Src) | Bytes transferred for a certain source address. |
conn (Time for Dst) | Number of connections to a specific destination. |
conn (Time for Src) | Number of connections from a specific source. |
conn (Time) | Number of connections. |
conn (Top for Dst) | Number of connections to a specific destination. |
conn (Top for Src) | Number of connections from a specific source. |
conn (Top for Src-Dst / Dst-Src) | Number of connections for a specific pair of source and destination addresses. |
open-conn (Time) | Number of open connections. |
Configure Statistics
Configure the statistics settings and specify how statistics data are handled, archived, and recorded.
For more information, see How to Configure Statistics.