{"id":11501,"date":"2019-03-14T09:38:24","date_gmt":"2019-03-14T09:38:24","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=11501"},"modified":"2019-03-14T09:38:24","modified_gmt":"2019-03-14T09:38:24","slug":"how-to-install-cacti-with-cacti-spine-in-debian-and-ubuntu","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/14\/how-to-install-cacti-with-cacti-spine-in-debian-and-ubuntu\/","title":{"rendered":"How to Install Cacti with Cacti-Spine in Debian and Ubuntu"},"content":{"rendered":"<p>In this tutorial we\u2019ll learn how to install and configure Cacti network monitoring tool in the latest version of\u00a0<strong>Debian<\/strong>\u00a0and\u00a0<strong>Ubuntu 16.04 LTS<\/strong>. Cacti will be build and installed from source files during this guide.<\/p>\n<p><strong>Cacti<\/strong>\u00a0is an open source monitoring tool created for monitoring networks, especially network devices, such as switches, routers, servers via SNMP protocol. Cacti interacts with end-users and can be administered via a web tool interface.<\/p>\n<h4>Requirements<\/h4>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/install-lamp-linux-apache-mariadb-mysql-php-on-debian-9\/\" target=\"_blank\" rel=\"noopener\">LAMP Stack Installed in Debian 9<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/install-lamp-on-ubuntu-16-10\/\" target=\"_blank\" rel=\"noopener\">LAMP Stack Installed in Ubuntu 16.04 LTS<\/a><\/li>\n<\/ol>\n<h3>Step 1: Install and Configure Prerequisites for Cacti<\/h3>\n<p><strong>1.<\/strong>\u00a0In\u00a0<strong>Debian 9<\/strong>, open sources list file for editing and add the\u00a0<strong>contrib<\/strong>\u00a0and\u00a0<strong>non-free<\/strong>\u00a0repositories to the file by changing the following lines:<\/p>\n<pre># nano \/etc\/apt\/sources.list\r\n<\/pre>\n<p>Add following lines to\u00a0<strong>sources.list<\/strong>\u00a0file.<\/p>\n<pre>deb http:\/\/ftp.ro.debian.org\/debian\/ stretch main <strong>contrib non-free<\/strong>\r\ndeb-src http:\/\/ftp.ro.debian.org\/debian\/ stretch main\r\n\r\ndeb http:\/\/security.debian.org\/debian-security stretch\/updates main <strong>contrib non-free<\/strong>\r\ndeb-src http:\/\/security.debian.org\/debian-security stretch\/updates main\r\n<\/pre>\n<div id=\"attachment_27764\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Add-Repositories-to-Debian.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27764\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Add-Repositories-to-Debian.png\" alt=\"Add Repositories to Debian\" width=\"720\" height=\"284\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Add Repositories to Debian<\/p>\n<p><strong>2.<\/strong>\u00a0Afterwards, make sure to update the system by issuing the below command.<\/p>\n<pre># apt update\r\n# apt upgrade\r\n<\/pre>\n<p><strong>3.<\/strong>\u00a0In your LAMP stack make sure the following PHP extensions are present in the system.<\/p>\n<pre># apt install php7.0-snmp php7.0-xml php7.0-mbstring php7.0-json php7.0-gd php7.0-gmp php7.0-zip php7.0-ldap php7.0-mcrypt\r\n<\/pre>\n<p><strong>4.<\/strong>\u00a0Next, edit PHP configuration file and change the time zone setting to match your server\u2019s physical location, by issuing the below command.<\/p>\n<pre># echo \"date.timezone = <strong>Europe\/Bucharest<\/strong>\" &gt;&gt; \/etc\/php\/7.0\/apache2\/php.ini \r\n<\/pre>\n<p><strong>5.<\/strong>\u00a0Next, log in to\u00a0<strong>MariaDB<\/strong>\u00a0or\u00a0<strong>MySQL<\/strong>\u00a0database from your LAMP stack installation and create a database for installing\u00a0<strong>Cacti<\/strong>\u00a0by issuing the following commands.<\/p>\n<p>Replace cacti database name, user and password to match your own configurations and choose a strong password for cacti database.<\/p>\n<pre># mysql -u root -p\r\nmysql&gt; create database cacti;\r\nmysql&gt; grant all on cacti.* to 'cactiuser'@'localhost' identified by 'password1';\r\nmysql&gt; flush privileges;\r\nmysql&gt; exit\r\n<\/pre>\n<div id=\"attachment_27765\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Create-Cacti-Database.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27765\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Create-Cacti-Database.png\" alt=\"Create Cacti Database\" width=\"766\" height=\"507\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Create Cacti Database<\/p>\n<\/div>\n<p><strong>6.<\/strong>\u00a0Also, issue the below commands to allow cacti user select permissions to MySQL\u00a0<strong>data.timezone<\/strong>\u00a0setting by issuing the below commands.<\/p>\n<pre># mysql -u root -p mysql &lt; \/usr\/share\/mysql\/mysql_test_data_timezone.sql \r\n# mysql -u root -p -e 'grant select on mysql.time_zone_name to cactiuser@localhost'\r\n<\/pre>\n<p><strong>7.<\/strong>\u00a0Next, open MySQL server configuration file and add the following lines at the end of the file.<\/p>\n<pre># nano \/etc\/mysql\/mariadb.conf.d\/50-server.cnf [For MariaDB]\r\n# nano \/etc\/mysql\/mysql.conf.d\/mysqld.cnf      [For MySQL] \r\n<\/pre>\n<p>Add the following lines to the end of the\u00a0<strong>50-server.cnf<\/strong>\u00a0or\u00a0<strong>mysqld.cnf<\/strong>\u00a0file.<\/p>\n<pre>max_heap_table_size\t\t= 98M\r\ntmp_table_size\t\t\t= 64M\r\njoin_buffer_size\t\t= 64M\r\ninnodb_buffer_pool_size\t= 485M\r\ninnodb_doublewrite\t\t= off\r\ninnodb_flush_log_at_timeout\t= 3\r\ninnodb_read_io_threads\t= 32\r\ninnodb_write_io_threads\t= 16\r\n<\/pre>\n<p>For MariaDB database also add the following line to the end of the\u00a0<strong>50-server.cnf<\/strong>\u00a0file:<\/p>\n<pre>innodb_additional_mem_pool_size\t= 80M\r\n<\/pre>\n<div id=\"attachment_27766\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Configure-MySQL-for-Cacti.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27766\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Configure-MySQL-for-Cacti.png\" alt=\"Configure MySQL for Cacti\" width=\"712\" height=\"546\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Configure MySQL for Cacti<\/p>\n<\/div>\n<p><strong>8.<\/strong>\u00a0Finally, restart\u00a0<strong>MySQL<\/strong>\u00a0and\u00a0<strong>Apache<\/strong>\u00a0services to apply all settings and verify both services status by issuing the following commands.<\/p>\n<pre># systemctl restart mysql apache2\r\n# systemctl status mysql apache2\r\n<\/pre>\n<h3>Step 2: Download and Prepare Cacti Installation<\/h3>\n<p><strong>9.<\/strong>\u00a0Start install Cacti from sources by downloading and extracting the latest version of Cacti archive and copy all the extract files to Apache web document root, by issuing the following commands.<\/p>\n<pre># wget https:\/\/www.cacti.net\/downloads\/cacti-latest.tar.gz\r\n# tar xfz cacti-latest.tar.gz \r\n# cp -rf cacti-1.1.27\/* \/var\/www\/html\/\r\n<\/pre>\n<p><strong>10.<\/strong>\u00a0Remove\u00a0<strong>index.html<\/strong>\u00a0file from\u00a0<strong>\/var\/www\/html<\/strong>\u00a0directory, create the Cacti log file and grant Apache with write permissions to web root path.<\/p>\n<pre># rm \/var\/www\/html\/index.html\r\n# touch \/var\/www\/html\/log\/cacti.log\r\n# chown -R www-data:www-data \/var\/www\/html\/\r\n<\/pre>\n<p><strong>11.<\/strong>\u00a0Next, edit cacti configuration file and modify the following lines as shown in the below example.<\/p>\n<pre># nano \/var\/www\/html\/include\/config.php\r\n<\/pre>\n<p>Cacti\u00a0<strong>config.php<\/strong>\u00a0file sample. Replace cacti database name, user and password accordingly.<\/p>\n<pre>$database_type     = 'mysql';\r\n$database_default  = 'cacti';\r\n$database_hostname = 'localhost';\r\n$database_username = 'cactiuser';\r\n$database_password = 'password1;\r\n$database_port     = '3306';\r\n$database_ssl      = false;\r\n$url_path = '\/';\r\n<\/pre>\n<div id=\"attachment_27767\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Configuration-Settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27767\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Configuration-Settings.png\" alt=\"Cacti Configuration Settings\" width=\"763\" height=\"546\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Configuration Settings<\/p>\n<\/div>\n<p><strong>12.<\/strong>\u00a0Next, populate cacti database with the\u00a0<strong>cacti.sql<\/strong>\u00a0script from\u00a0<strong>\/var\/www\/html\/<\/strong>\u00a0directory by issuing the below command.<\/p>\n<pre># mysql -u cactiuser cacti -p &lt; \/var\/www\/html\/cacti.sql \r\n<\/pre>\n<p><strong>13.<\/strong>\u00a0Now install some additional resources, as Cacti engine collects devices data via the SNMP protocol and displays graphics by using RRDtool. Install all of them by issuing following command.<\/p>\n<pre># apt install snmp snmpd snmp-mibs-downloader rrdtool\r\n<\/pre>\n<p><strong>14.<\/strong>\u00a0Verify if SNMP service is up and running by restarting\u00a0<strong>snmpd<\/strong>\u00a0daemon by issuing the below command. Also check the snmpd daemon status and its open ports.<\/p>\n<pre># systemctl restart snmpd.service \r\n# systemctl status snmpd.service\r\n# ss -tulpn| grep snmp\r\n<\/pre>\n<h3>Step 3: Download and Install Cacti-Spine<\/h3>\n<p><strong>15.<\/strong>\u00a0<strong>Cacti-Spine<\/strong>\u00a0is a C written replacement for the default\u00a0<strong>cmd.php<\/strong>\u00a0poller. Cacti-Spine provides a faster execution time. To compile Cacti-Spine pooler from sources install the below required dependencies in your system.<\/p>\n<pre><strong>---------------- On Debian 9 ----------------<\/strong> \r\n# apt install build-essential dos2unix dh-autoreconf help2man libssl-dev libmysql++-dev librrds-perl libsnmp-dev libmariadb-dev libmariadbclient-dev\r\n\r\n<strong>---------------- On Ubuntu ----------------<\/strong> \r\n# apt install build-essential dos2unix dh-autoreconf help2man libssl-dev libmysql++-dev  librrds-perl libsnmp-dev libmysqlclient-dev libmysqld-dev  \r\n<\/pre>\n<p><strong>16.<\/strong>\u00a0After you\u2019ve installed the above dependencies, download the latest version of\u00a0<strong>Cacti-Spine<\/strong>\u00a0archive, extract the tarball and compile cacti-spine by issuing the following series of commands.<\/p>\n<pre># wget https:\/\/www.cacti.net\/downloads\/spine\/cacti-spine-latest.tar.gz\r\n# tar xfz cacti-spine-latest.tar.gz \r\n# cd cacti-spine-1.1.27\/\r\n<\/pre>\n<p><strong>17.<\/strong>\u00a0Compile and install Cacti-Spine from sources by issuing the following commands.<\/p>\n<pre># .\/bootstrap \r\n# .\/configure \r\n# make\r\n# make install\r\n<\/pre>\n<p><strong>18.<\/strong>\u00a0Next, make sure spine binary is owned by root account and set the suid bit for the spine utility by running the following commands.<\/p>\n<pre># chown root:root \/usr\/local\/spine\/bin\/spine \r\n# chmod +s \/usr\/local\/spine\/bin\/spine\r\n<\/pre>\n<p><strong>19.<\/strong>\u00a0Now, edit Cacti Spine configuration file and add the cacti database name, user and password to the Spine conf file as illustrated in the below example.<\/p>\n<pre># nano \/usr\/local\/spine\/etc\/spine.conf\r\n<\/pre>\n<p>Add following configuration to spine.conf file.<\/p>\n<pre>DB_Host localhost\r\nDB_Database cacti\r\nDB_User cactiuser\r\nDB_Pass password1\r\nDB_Port 3306\r\nDB_PreG 0\r\n<\/pre>\n<h3>Step 4: Cacti Installation Wizard Setup<\/h3>\n<p><strong>20.<\/strong>\u00a0To install Cacti, open a browser and navigate to your system IP address or domain name at the following URL.<\/p>\n<pre>http:\/\/your_IP\/install\r\n<\/pre>\n<p>First, check\u00a0<strong>Acept License Agreement<\/strong>\u00a0and hit on the\u00a0<strong>Next<\/strong>\u00a0button to continue.<\/p>\n<div id=\"attachment_27768\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-License-Agreement.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27768\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-License-Agreement.png\" alt=\"Cacti License Agreement\" width=\"723\" height=\"501\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti License Agreement<\/p>\n<\/div>\n<p><strong>21.<\/strong>\u00a0Next, check if system requirements and hit\u00a0<strong>Next<\/strong>\u00a0button to continue.<\/p>\n<div id=\"attachment_27769\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Pre-Installation-Checks.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27769\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Pre-Installation-Checks.png\" sizes=\"auto, (max-width: 851px) 100vw, 851px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Pre-Installation-Checks.png 851w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Pre-Installation-Checks-768x792.png 768w\" alt=\"Cacti Pre-Installation Checks\" width=\"851\" height=\"878\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Pre-Installation Checks<\/p>\n<\/div>\n<p><strong>22.<\/strong>\u00a0In the next window, select\u00a0<strong>New Primary Server<\/strong>\u00a0and hit on\u00a0<strong>Next<\/strong>\u00a0button to continue.<\/p>\n<div id=\"attachment_27771\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Select-Cacti-Installation-Type.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27771\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Select-Cacti-Installation-Type.png\" sizes=\"auto, (max-width: 893px) 100vw, 893px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Select-Cacti-Installation-Type.png 893w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Select-Cacti-Installation-Type-768x463.png 768w\" alt=\"Select Cacti Installation Type\" width=\"893\" height=\"538\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Select Cacti Installation Type<\/p>\n<\/div>\n<p><strong>23.<\/strong>\u00a0Next, verify critical binary locations and versions and change Spine binary path to\u00a0<strong>\/usr\/local\/spine\/bin\/spine<\/strong>. When you finish, hit\u00a0<strong>Next<\/strong>\u00a0button to continue.<\/p>\n<div id=\"attachment_27772\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Verify-Cacit-Binary-Locations.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27772\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Verify-Cacit-Binary-Locations.png\" sizes=\"auto, (max-width: 883px) 100vw, 883px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Verify-Cacit-Binary-Locations.png 883w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Verify-Cacit-Binary-Locations-768x756.png 768w\" alt=\"Verify Cacit Binary Locations\" width=\"883\" height=\"869\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Verify Cacit Binary Locations<\/p>\n<\/div>\n<p><strong>24.<\/strong>\u00a0Next, check if all web server directory permissions are in place (write permissions are set) and hit on\u00a0<strong>Next<\/strong>button to continue.<\/p>\n<div id=\"attachment_27773\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Directory-Permission-Checks.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27773\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Directory-Permission-Checks.png\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Directory-Permission-Checks.png 891w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Directory-Permission-Checks-768x604.png 768w\" alt=\"Cacti Directory Permission Checks\" width=\"891\" height=\"701\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Directory Permission Checks<\/p>\n<\/div>\n<p><strong>25.<\/strong>\u00a0On the next step check all the templates and hit on\u00a0<strong>Finish<\/strong>\u00a0button in order to finish the installation process.<\/p>\n<div id=\"attachment_27774\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Template-Setup.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27774\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Template-Setup.png\" sizes=\"auto, (max-width: 884px) 100vw, 884px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Template-Setup.png 884w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Template-Setup-768x515.png 768w\" alt=\"Cacti Template Setup\" width=\"884\" height=\"593\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Template Setup<\/p>\n<\/div>\n<p><strong>26.<\/strong>\u00a0Log in to Cacti web interface with the default credentials shown below and change the admin password, as illustrated in the following screenshots.<\/p>\n<pre>Username: admin\r\nPassword: admin\r\n<\/pre>\n<div id=\"attachment_27775\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Admin-Login.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27775\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Admin-Login.png\" sizes=\"auto, (max-width: 872px) 100vw, 872px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Admin-Login.png 872w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Admin-Login-768x579.png 768w\" alt=\"Cacti Admin Login\" width=\"872\" height=\"657\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Admin Login<\/p>\n<\/div>\n<div id=\"attachment_27776\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Change-Cacti-Admin-Password.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27776\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Change-Cacti-Admin-Password.png\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Change-Cacti-Admin-Password.png 845w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Change-Cacti-Admin-Password-768x606.png 768w\" alt=\"Change Cacti Admin Password\" width=\"845\" height=\"667\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Change Cacti Admin Password<\/p>\n<\/div>\n<p><strong>27.<\/strong>\u00a0Next, go to\u00a0<strong>Console -&gt; Configuration -&gt; Settings -&gt; Poller<\/strong>\u00a0and change the\u00a0<strong>Poller Type<\/strong>\u00a0from\u00a0<strong>cmd.php<\/strong>\u00a0to\u00a0<strong>Spine<\/strong>binary and scroll down to\u00a0<strong>Save<\/strong>\u00a0button to save the configuration.<\/p>\n<div id=\"attachment_27777\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Poller-Settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27777\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Poller-Settings.png\" sizes=\"auto, (max-width: 1030px) 100vw, 1030px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Poller-Settings.png 1030w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Poller-Settings-768x498.png 768w\" alt=\"Cacti Poller Settings\" width=\"1030\" height=\"668\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Poller Settings<\/p>\n<\/div>\n<p><strong>28.<\/strong>\u00a0Then, go to\u00a0<strong>Console -&gt; Configuration -&gt; Settings -&gt; Paths<\/strong>\u00a0and add the following path to\u00a0<strong>Cacti-Spine<\/strong>configuration file:<\/p>\n<pre>\/usr\/local\/spine\/etc\/spine.conf \r\n<\/pre>\n<p>Hit on\u00a0<strong>Save<\/strong>\u00a0button to apply configuration.<\/p>\n<div id=\"attachment_27778\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Add-Cacti-Spine-Configuration.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27778\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Add-Cacti-Spine-Configuration.png\" sizes=\"auto, (max-width: 925px) 100vw, 925px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Add-Cacti-Spine-Configuration.png 925w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Add-Cacti-Spine-Configuration-768x379.png 768w\" alt=\"Add Cacti Spine Configuration\" width=\"925\" height=\"457\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Add Cacti Spine Configuration<\/p>\n<\/div>\n<p><strong>29.<\/strong>\u00a0The final setup which enables Cacti poller to start collecting data from monitored devices is to add a new crontab task in order to query each device via SNMP every\u00a0<strong>5<\/strong>\u00a0minutes.<\/p>\n<p>The crontab job must be owned by\u00a0<strong>www-data<\/strong>\u00a0account.<\/p>\n<pre># crontab -u www-data -e\r\n<\/pre>\n<p>Add Cron file entry:<\/p>\n<pre>*\/5 * * * * \/usr\/bin\/php \/var\/www\/html\/poller.php\r\n<\/pre>\n<p><strong>30.<\/strong>\u00a0Wait a few minutes for Cacti to collect data and go to the\u00a0<strong>Graphs -&gt; Default Tree<\/strong>\u00a0and you should see the graphs collected for your monitored devices.<\/p>\n<div id=\"attachment_27779\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Monitoring-Graphs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27779\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Monitoring-Graphs.png\" sizes=\"auto, (max-width: 1151px) 100vw, 1151px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Monitoring-Graphs.png 1151w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/11\/Cacti-Monitoring-Graphs-768x512.png 768w\" alt=\"Cacti Monitoring Graphs\" width=\"1151\" height=\"768\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Monitoring Graphs<\/p>\n<\/div>\n<p>That\u2019s all! You have successfully installed and configured\u00a0<strong>Cacti<\/strong>\u00a0with\u00a0<strong>Cacti-Spine<\/strong>\u00a0pooler, from sources, in the latest release of\u00a0<strong>Debian 9<\/strong>\u00a0and\u00a0<strong>Ubuntu 16.04 LTS<\/strong>\u00a0server.<\/p>\n<p><a style=\"font-size: 1rem;\" href=\"https:\/\/www.tecmint.com\/install-cacti-with-cacti-spine-in-debian-and-ubuntu\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we\u2019ll learn how to install and configure Cacti network monitoring tool in the latest version of\u00a0Debian\u00a0and\u00a0Ubuntu 16.04 LTS. Cacti will be build and installed from source files during this guide. Cacti\u00a0is an open source monitoring tool created for monitoring networks, especially network devices, such as switches, routers, servers via SNMP protocol. Cacti &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/14\/how-to-install-cacti-with-cacti-spine-in-debian-and-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install Cacti with Cacti-Spine in Debian and Ubuntu&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11501","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=11501"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11501\/revisions"}],"predecessor-version":[{"id":11502,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11501\/revisions\/11502"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=11501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=11501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=11501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}