# Config file for /etc/init.d/rrdcached # Run rrdcached as non-privilege user # You can run rrdcached as "root". But there is no sanity checking. The daemon will # blindly write to any file it gets told. #user=rrdcached #group=rrdcached # Define all valid commands ALL_VALID_COMMANDS="FLUSH,FLUSHALL,PENDING,FORGET,QUEUE,STATS,UPDATE,WROTE,BATCH" # Data is written to disk every timeout seconds #write_timeout=300 # If specified, rrdcached will delay writing of each RRD for a random number of # seconds in the range [0,delay). #write_delay= # Every timeout seconds the entire cache is searched for old values which are # written to disk. This only concerns files to which updates have stopped, so # setting this to a high value, such as 3600 seconds, is acceptable in most cases. #flush_timeout=3600 # Specifies the number of threads used for writing RRD files. #write_threads=4 # Write updates to a journal in dir. In the event of a program or system crash, # this will allow the daemon to write any updates that were pending at the time of # the crash. Please man rrdcached for more detail. #journal_dir="/var/lib/rrdcached/journal" # ALWAYS flush all updates to the RRD data files when the daemon is shut down, # regardless of journal setting. #flush_when_shutdown="yes" # The daemon will change into a specific directory at startup. All files passed to the # daemon, that are specified by a relative path, will be interpreted to be relative to # this directory. #output_dir="/var/lib/rrdcached/db" # Only permit writes into the output_dir directory #restrict_to_output_dir="no" # Tells the daemon to bind to address and accept incoming connections on that socket. # Accepted format: # unix: # / # # []: # : address0="unix:/run/rrdcached/rrdcached.sock" # Set the group permissions of a UNIX domain socket. # The option accepts either a numeric group id or group name. That group will then # have both read and write permissions (the socket will have file permissions 0750) # for the socket gid0="rrdcached" # Set the file permissions of a UNIX domain socket. mode0="660" # Specifies the commands accepted via a network socket. commands0="FLUSH,QUEUE,STATS" # rrdcached can bind multiple sockets which have their own gid/mode/commands #address1="unix:/run/rrdcached/collectd.sock" #gid1="collectd" #mode1="660" #commands1=${ALL_VALID_COMMANDS} other_rrdcached_args=""