Skip to main content
Skip table of contents

Interface for current usage - stats.sh

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:

Dump

CODE
#!/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:

VariableDescription
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


How to send VISULOX Events to external services

Monitoring VISULOX

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.