Configuring automatic updates of OpsCenter definition files

OpsCenter uses definition files to enable support for different versions of DataStax Enterprise, DataStax Community, and Cassandra without the need to upgrade the currently installed version of OpsCenter itself.

OpsCenter ships with a set of files called definition files that can be updated independently of OpsCenter itself. OpsCenter uses definition files to enable support for newer versions of DataStax Enterprise, DataStax Community, and Cassandra without the need to upgrade the currently installed version of OpsCenter itself. Definition files are updated independently of OpsCenter by automatically downloading new definitions at regular intervals from a central server. You can modify the default interval or disable the downloads altogether.

The opscenterd process checks a central server located at opscenter.datastax.com, and pulls down updates as needed to the set of definition files specific to the installed version of OpsCenter. Definition file locations:
  • /etc/opscenter/conf/definitions (Installer-Services or package installations)
  • install_location/conf/definitions (Installer-No Services or tarball installations)

The definition files are updated every hour by default. The default interval can be modified by setting the sleep option in the [definitions] section of opscenterd.conf. The sleep option interval should be specified in seconds.

Setting the update interval to 7200 seconds (every 2 hours):
[definitions]
sleep = 7200

Disabling definition file updates 

The auto-update process can be disabled by setting auto_update to False in the [definitions] section of opscenterd.conf.

opscenterd.conf 

The location of the opscenterd.conf file depends on the type of installation:

  • Installer-Services or package installations: /etc/opscenter/opscenterd.conf
  • Installer-No Services or tarball installations: install_location/conf/opscenterd.conf
  • Windows installations: Program Files (x86)\DataStax Community\opscenter\conf\opscenterd.conf