To install the script that reports system usage to Veritone, use the command lines for the aiware-usage.sh.
Before you begin
- If
/usr/local/bin is not in your $PATH, you can add it for convenience. That is where aiWARE downloads and installs the usage-monitoring script. - In order to collect usage information, you must run the script as the root user on the aiWARE node that runs the database (the nodes with
AIWARE_MODE=db).
[Tip] You only need to run the installation command once.
Steps
- Install the reporting script by running the following command:
aiware-usage.sh install
- Verify that everything is set up correctly for the script.
aiware-usage.sh check
If the current host is able to run the usage script, you see this output:
[INFO] This host can be used to report aiWARE usage.
If the current environment isn't appropriate for collecting usage statistics, you see an error explaining why.
Results
aiware-usage.sh sets up a cron job to run every 4 hours and collect usage statistics from aiWARE. If the current environment is not appropriate to run the script, an error is reported.