popladark.blogg.se

How to install cacti on centos 7
How to install cacti on centos 7









how to install cacti on centos 7
  1. #How to install cacti on centos 7 how to
  2. #How to install cacti on centos 7 password

In order for Cacti to log its results, we’ll need to create an empty cacti.log. */5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1

how to install cacti on centos 7

Mysql -u cactiuser -p cactidb /dev/null 2>&1 This command loads the cacti.sql dump into the database we created previously. Now we’ll actually import the schema we’ve just found. We need to find where it was stored in order to perform the import. It is finally time to install Cacti itself.Ĭacti ships with a cacti.sql database dump that should be imported into MySQL. MariaDB> GRANT ALL PRIVILEGES ON cactidb.* TO FLUSH PRIVILEGES MariaDB> CREATE USER IDENTIFIED BY 'cactipassword' We’ll also create a cacti user and grant it all database privileges.

#How to install cacti on centos 7 password

This next step adds password authentication for Cacti.Ĭacti needs a database, which will now be created. Leaving monitoring solutions open to public viewing is a security risk. Here we configure these components to launch when the server starts. We’ll begin by launching Apache, MariaDB and SNMP.Īll of these should be configured to start at boot. Let’s start bringing up the various components Cacti needs. Yum install php-snmp net-snmp-utils net-snmp-libs rrdtool -y We’ll install net-snmp, the php-snmp module so PHP can retrieve SNMP data, and finally rrdtool. Yum install nano httpd httpd-devel mariadb-server php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli -y Not only does this apply any known security fixes, but it also resolves issues in the base CentOS system.Ĭacti depends on Apache, PHP, the MariaDB MySQL fork, and the associated modules needed to make PHP and Apache work together.

#How to install cacti on centos 7 how to

While good for learning how to set up Cacti on CentOS, it is better to install Cacti on a running server once you are familiar with the process, as monitoring is crucial for production-facing assets. To complete this guide, you will need the following: This guide sets up a Cacti installation on a CentOS 7 server. Cacti provides user management, as well as acquisition of data from multiple sources in an easy-to-use interface. It works on systems ranging from simple LAN installations, to multi data center LANs.

how to install cacti on centos 7

Any help would be appreciated.Cacti is a configurable, scalable network and resource monitoring system based on the RRDTool suite. lib64/libdl.so.2: could not read symbols: Invalid operation bin/ld: /usr/lib64/libmysqlclient.a(client_plugin.c.o): undefined reference to symbol ' note: ' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line Libtool: link: gcc -I/usr/include/mysql -g -O2 -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -L/usr/lib64 -lssl -lnetsnmp -lmysqlclient -lcrypto -lz -lpthread -lm libtool -tag=CC -mode=link gcc -I/usr/include/mysql -g -O2 -L/usr/lib64 -lpthread -lssl -lm -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -lnetsnmp -lmysqlclient -lcrypto -lz -lpthread -lm I./config -I/usr/include/mysql -g -O2 -MT error.o -MD -MP -MF.

how to install cacti on centos 7

OS is Centos 7 and running mariadb(mysql) 10.2.x.Ĭode: Select all gcc -DHAVE_CONFIG_H -I. I have used various posts and believe all necessary prerequisites(libraries) are installed but may be I'm missing something. Libtool: link: gcc -I/usr/include/mysql -g -O2 -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -L/usr/lib64 -lssl -lmysqlclient -lcrypto -lz -lpthread -lmĬollect2: error: ld returned 1 exit status libtool -tag=CC -mode=link gcc -I/usr/include/mysql -g -O2 -L/usr/lib64 -lpthread -lssl -lm -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -lmysqlclient -lcrypto -lz -lpthread -lm When running the make command I keep getting this error: I have been able to install Cacti 1.1.7 with no problems but cannot get spine to install. I'm a bit of a novice when it comes to linux but learning as I go.











How to install cacti on centos 7