Overview
VISULOX usage stats are generated via rrd tool and can be seen in VISULOX Cockpit / Cluster status.
With the stats service it is possible to trigger a script each time a new entry is written into the rrd.
An example script is available: /opt/visulox/tools/stats.sh.template. This script has to be renamed to stats.sh and the file permissions must be vlx/vlxgroup/0550.
Usage
Example of a simple dump script for testing:
#!/bin/bash
dump () {
(
echo "---------------------------------------------"
date
env | lsort | egrep -e ^VLX[A-Z]
) >> $1
# generated file must have group write permissions for other vlxusers
chmod -f g+w $1
}
dump /tmp/stats.visulox
exit 0
Environment variables
The following environment variables are available:
|
Variable |
Description |
|---|---|
|
VLXUSAGE_SESSIONS |
Current running sessions |
|
VLXUSAGE_COMMANDCONNECTS |
Current running Command Connects |
|
VLXUSAGE_USERS |
Current working users |
|
VLXUSAGE_RECORDERS |
Current running recorders |
|
VLXUSAGE_TIME |
Usage time |