Installation of cacti under CentOS

Source: Internet
Author: User
Tags rrd rrdtool snmp

Introduced

Cacti is a set of graphical analysis tools for network traffic monitoring based on PHP,MYSQL,SNMP and RRDtool development. Cacti is to get data through Snmpget, using RRDtool to draw graphics. It provides very powerful data and user management functions, can specify each user can view the tree structure, host and any map, also can be combined with LDAP user authentication, but also can add their own templates, the function is very powerful perfect. Friendly interface. Software CACTI Development is based on making RRDTool users more convenient to use the software, in addition to basic SNMP traffic and System information monitoring, CACTI can also plug Scripts and add Templates to make a variety of monitoring charts.

SNMP is related to the collection of data, RRDtool relational data storage and graph generation, SNMP caught data is not stored in MySQL, but exists in the RRDtool generated RRD file (under the Rra folder in the cacti root directory). RRDtool Data Update and storage is the RRD file processing, the RRD file is a fixed size file (Round Robin Archive), it can store the number of data is defined at the time of creation

Preparatory work

http://www.cacti.net/download_cacti.phphttp://www.cacti.net/downloads/cacti-0.8.8b.tar.gzhttp://www.cacti.net/ Downloads/spine/cacti-spine-0.8.8b.tar.gz

Installing RRDtool

getconf LONG_BITRPM-IVH http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/ RPMFORGE-RELEASE-0.5.2-2.EL6.RF.I686.RPMRPM-IVH http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/ Rpmforge-release-0.5.2-2.el6.rf.x86_64.rpmyum Install Rrdtool-y

Install Configure SNMP

Yum install Net-snmp net-snmp-libs net-snmp-utils-ychkconfig snmpd on

SNMP configuration file/etc/snmp/snmpd.conf

Com2sec notconfiguser  127.0.0.1       publicgroup   notconfiggroup v1           notconfigusergroup   Notconfiggroup v2c           notconfiguserview    systemview    included   . 1.3.6.1.2.1view    SystemView    Included   . 1.3.6.1.2.1.25.1.1access  notconfiggroup ""      any       noauth    exact  all None Noneview all    included  . 1                               80syslocation Unknown (edit/etc/snmp/snmpd.conf) syscontact Root <[ Email protected]> (configure/etc/snmp/snmp.local.conf) dontlogtcpwrappersconnects Yes

Start and test

Output Class A bit of information indicates the installation was successful.

snmpv2-mib::sysdescr.0 = String:linux localhost.localdomain 2.6.32-504.16.2.el6.i686 #1 SMP Wed Apr 04:04:03 UTC 2015 i686snmpv2-mib::sysdescr.0 = String:linux localhost.localdomain 2.6.32-504.16.2.el6.i686 #1 SMP Wed Apr 04:04:03 UTC 2 015 i686snmpv2-mib::sysobjectid.0 = Oid:net-snmp-mib::netsnmpagentoids.10disman-event-mib::sysuptimeinstance = Timeticks: (874261) 2:25:42.61snmpv2-mib::syscontact.0 = String:root <[email protected]> (configure/etc/snmp/ snmp.local.conf) snmpv2-mib::sysname.0 = string:localhost.localdomainsnmpv2-mib::syslocation.0 = String:unknown ( edit/etc/snmp/snmpd.conf) snmpv2-mib::sysorlastchange.0 = timeticks: (+) 0:00:00.25snmpv2-mib::sysorid.1 = OID: Snmp-mpd-mib::snmpmpdmibobjects.3.1.1snmpv2-mib::sysorid.2 = Oid:snmp-user-based-sm-mib:: Usmmibcompliancesnmpv2-mib::sysorid.3 = Oid:snmp-framework-mib::snmpframeworkmibcompliance

Installing spine

Net-snmp-develmysqlmysql-developenssl-devel

Installation

Yum-y Install Net-snmp-develcd/usr/local/src/wget http://www.cacti.net/downloads/spine/ CACTI-SPINE-0.8.8B.TAR.GZTAR-ZXF  CACTI-SPINE-0.8.8B.TAR.GZCD Cacti-spine-0.8.8b./configuremake && Make installvim/usr/local/spine/etc/spine.conf//Modify database connection information

Test

/usr/local/spine/bin/spineldd/usr/local/spine/bin/spine

A message appears, which means success.

Linux-gate.so.1 = (0x00896000) libnetsnmp.so.20 =/usr/lib/libnetsnmp.so.20 (0x0094e000) LIBMYSQLCL ient.so.18 =/usr/lib/libmysqlclient.so.18 (0x0037f000) libcrypto.so.10 =/usr/lib/libcrypto.so.10 (0x046a7        Libz.so.1 =/lib/libz.so.1 (0x001ac000) libpthread.so.0 =/lib/libpthread.so.0 (0x001c0000) libm.so.6 =/lib/libm.so.6 (0x001db000) libc.so.6 =/lib/libc.so.6 (0x006b3000) libssl.so.10 =&G T /usr/lib/libssl.so.10 (0x03bb1000) libdl.so.2 =/lib/libdl.so.2 (0x00205000) librt.so.1 =/LIB/LIBRT . So.1 (0x0020a000) libstdc++.so.6 =/usr/lib/libstdc++.so.6 (0x037f4000) libgcc_s.so.1 =/LIB/LIBGCC _s.so.1 (0x00259000)/lib/ld-linux.so.2 (0x0035f000) libgssapi_krb5.so.2 =/lib/libgssapi_krb5.so.2 (0x0 39c2000) libkrb5.so.3 =/lib/libkrb5.so.3 (0x038e3000) libcom_err.so.2 =/lib/libcom_err.so.2 (0x00d f4000) LIBK5CRYpto.so.3 =/lib/libk5crypto.so.3 (0x002fc000) libresolv.so.2 =/lib/libresolv.so.2 (0x00213000) Lib krb5support.so.0 =/lib/libkrb5support.so.0 (0x002ee000) libkeyutils.so.1 =/lib/libkeyutils.so.1 (0x0032f0 XX) libselinux.so.1/lib/libselinux.so.1 (0x0022d000)

Installing cacti

Cd/usr/loca/srcwget Http://www.cacti.net/downloads/cacti-0.8.8b.tar.gztar xzf cacti-0.8.8b.tar.gzmv cacti-0.8.8b/ Data/www/cacticd! $mysql-urott-p-  e ' CREATE database cacti ' mysql-uroot-p cacti < Cacti.sql

Authorized

GRANT all on cacti.* to [email protected] identified by ' Cactipassword ';

Modifying a configuration file include/config.php

Join Cron

echo "*/5 * * * * * cactiuser php/data/www/cacti/poller.php >/dev/null 2>&1" >>/etc/crontab

Access backstage

The above shows the success

After 5 minutes, no accident, you can see the picture of the surveillance

Installation of cacti under CentOS

Related Article

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.