官术网_书友最值得收藏!

Time for action – creating the poller's cron entry and Cacti's system account

  1. To create a Cacti system user called cactiuser, issue the following command as root:
    adduser cactiuser
    
  2. Navigate to the cacti directory:
    cd /var/www/html/cacti
    
  3. Change the ownership of the rra and log directory to the newly created user:
    chown –R cactiuser rra/ log/
    
  4. Add the poller cron entry. Edit the file cacti in /etc/cron.d:
    vi /etc/cron.d/cacti
    
  5. Add the following line to the file:
    */5 * * * * cactiuser /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1
    
  6. Save the file.

What just happened?

You just created a system user which runs the Cacti poller and scheduled the poller to run every 5 minutes. Five minutes is the default interval, but it can be changed to 1 minute if needed. For more information on how to do so, go the following post in the Cacti forums: http://forums.cacti.net/viewtopic.php?p=116403.

Installing the Spine poller

By default, Cacti comes with a poller written in PHP. For small-to-medium installations, this poller does its job just fine, but for larger installations, an alternative poller, spine, needs to be used. It is written in C and is much faster than the original poller, as it makes use of the multi-tasking capabilities of modern operating systems and hardware.

Here we will deep-dive into installing and configuring the spine poller.

主站蜘蛛池模板: 抚顺市| 内江市| 灌南县| 毕节市| 礼泉县| 合阳县| 酒泉市| 泌阳县| 棋牌| 芒康县| 阿克苏市| 睢宁县| 牡丹江市| 西城区| 怀集县| 鄂尔多斯市| 南皮县| 隆子县| 股票| 桃江县| 读书| 定南县| 沙雅县| 三台县| 吴忠市| 含山县| 普宁市| 新和县| 井陉县| 邳州市| 长葛市| 汉川市| 新巴尔虎左旗| 普定县| 平山县| 屯门区| 临夏县| 安塞县| 苏州市| 神池县| 七台河市|