参考 https://documentation.centreon.com/docs/centreon/en/2.7.x/faq/performance.html
修改rrdcached配置
vim /etc/sysconfig/rrdcached
# Settings for rrdcached
OPTIONS="-m 664 -l unix:/var/rrdtool/rrdcached/rrdcached.sock -s rrdcached -b /var/rrdtool/rrdcached -w 3600 -z 3600 -f 7200"
RRDC_USER=rrdcach
变更属组
usermod -a -G rrdcached centreon-broker
usermod -a -G rrdcached apache
usermod -a -G centreon rrdcached
usermod -a -G centreon-broker rrdcached
重启服务
/etc/init.d/httpd restart
/etc/init.d/rrdcached restart && chkconfig rrdcached on
查看rrdcached进程
ps aux|grep rrdcached
/usr/bin/rrdcached -p /var/rrdtool/rrdcached/rrdcached.pid -m 664 -l unix:/var/rrdtool/rrdcached/rrdcached.sock -s rrdcached -b /var/rrdtool/rrdcached -w 3600 -z 3600 -f 7200
变更centreon web UI配置,重启centreon服务
Administration -> Options -> RRDTool, Enable RRDCached 'yes', UNIX Socket path '/var/rrdtool/rrdcached/rrdcached.sock'
重启cbd服务
/etc/init.d/cbd restart