11.1.1. SimpleStats¶
The SimpleStats task module is a task module for Periodic Tasks that collects some basic statistics
from the token database and writes them to the time series database table MonitoringStats.
11.1.1.1. Options¶
The SimpleStats task module provides the following boolean options:
total_tokens
If activated, the total number of tokens in the token database will be monitored.
hardware_tokens
If activated, the total number of hardware tokens in the token database will be monitored.
software_tokens
If activated, the total number of software tokens in the token database will be monitored.
unassigned_hardware_tokens
If activated, the number of hardware tokens in the token database which are not assigned to a user will be monitored.
assigned_tokens
If activated, the number of tokens in the token database which are assigned to users will be monitored.
user_with_token
If activated, the number of users who have at least one enabled token will be monitored. Users whose tokens are all disabled are not counted.
Note
The statistics key, with which the time series is identified in the
MonitoringStats table, is the same as the option name.
Using a statistic with the same key in a different module, which writes to the
MonitoringStats table, will corrupt the data.
Note
For each of these basic statistic values the token database will be
queried. To avoid excessive load on the database, the SimpleStats task
should not be executed too often.