Cacti optimized spine Polling device

Source: Internet
Author: User
Tags snmp

because of the efficiency, when a large amount of data acquisition is required, if the use of the cmd.php poll will be slow, 1 minutes 1 times the acquisition frequency may not complete the polling of all the monitored machines, This may result in the partial monitoring project not showing the graph or the graphics intermittent . In order to solve the efficiency problem, cacti official also launched spine, using multi-threaded way of efficient polling.


1. Solve the dependency relationship
# # dependent on MySQL mysql-devel net-snmp-devel openssl-devel
# # We've installed MySQL mysql-devel when installing cacti so, just install the other 2
# yum-y Install Net-snmp-devel Openssl-devel

2, install spine, download the best version with cacti consistent, spine-0.8.8b
# Tar XF cacti-spine-0.8.8b.tar.gz
# CD CACTI-SPINE-0.8.8B
#./configure
# Make && make install

3. Provide configuration files
# cp/usr/local/spine/etc/spine.conf.dist/etc/spine.conf
# # Edit the configuration file, please modify it according to the actual situation
# vi/etc/spine.conf
Db_host localhost
Db_database CACTIDB
Db_user Cactiuser
Db_pass Cactiuser
Db_port 3306
Db_preg 0

# How did the configuration come about here? Remember, it's cacti/include/config.php.
/* Make sure these values refect your actual Database/host/user/password * *
$database _type = "MySQL";
$database _default = "CACTIDB";
$database _hostname = "localhost";
$database _username = "Cactiuser";
$database _password = "Cactiuser";
$database _port = "3306";
$database _ssl = false;

4. Testing
#/usr/local/spine/bin/spine
spine:using SPINE config file [/etc/spine.conf]
Spine:version 0.8.8b Starting
spine:time:0.1707 s, Threads:5, Hosts:2

5, set the path of the spine
Spine poller File Path, Alternate poller Path, Settings, Configureation, Console
Enter the path to the spine: installed by default in/usr/local/spine/bin/spine

6, modify the cacti default Poller Types
Poller Type, Poller, Cacti Settings, Console
In the drop-down box, select Spine, and then remember "Save"


Note: Spine does not have to add a scheduled task for it, Cacti well spawn Spine every 5 minutes instead of cmd.php
Poller.php needs to define a scheduled task to execute, and then poller.php to dispatch the data collection method.

Cacti optimized spine Polling device

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.