Using cacti to monitor traffic on the server

Using cacti to monitor traffic on the server

1. RRDTool is mainly used for drawing

 yum -y install rrdtool

2. net-snmp is mainly used to collect and transmit server statistics

 yum -y install net-snmp net-snmp-libs net-snmp-utils

3. Configure net-snmp

 vim /etc/snmp/snmpd.conf

Change line 55
view systemview included .1.3.6.1.2.1.1
Change to
view systemview included .1.3.6.1.2.1
4. Start net-snmp

 service snmpd start

5. Test net-snmp

 snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.1.1.0

If the display is similar to: SNMPv2-MIB::sysDescr.0 = STRING: Linux zzs 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64, it means that net-snmp is working properly.

6. Install lnmp

7. Create a new website, then:
wget http://www.cacti.net/downloads/cacti-0.8.8f.tar.gz
tar zxf cacti-0.8.8f.tar.gz
Configure database information in include/config.php.

It is not recommended to modify the directory.

8. Add scheduled tasks

 echo "*/5 * * * * cactiuser php /data/wwwroot/cacti/poller.php > /dev/null 2>&1">>/etc/crontab service crond restart

/data/wwwroot/cacti/poller.php is modified to your own directory.

9. Initialize and install cacti
Type in your browser: http://www.yourdomain.com/cacti
Next step, the default initial username and password are: admin

10. Log in to cacti, click "Devices", and then click "Add" to create a device
Select "Generic SNMP-enabled Host" for Host Template, and "Version 2" for SNMP Version (of course, it depends on how you configure SNMP)

<<:  HostDare 2GB RAM OpenVZ VPS Los Angeles/Asia optimized line simple review

>>:  Install Git on Linux VPS/Server

Recommend

[Benefit] CloudCone: Free 10GB domain name mailbox

CloudCone provides a domain name email with 10GB ...

Free and stable DNS resolution——Sitelutions DNS

Sitelutions DNS has been providing domain name re...

VeeroTech: $4.95/month/1GB RAM/30GB SSD space/2TB bandwidth/KVM/DDOS/New York

VeeroTech, an American merchant, was founded in 2...

AlphaRacks: $15/year/1GB/15GB space/1.5TB traffic/1 IP/OpenVZ/Los Angeles

AlphaRacks, which I have introduced several times...

VIRPUS Xen VPS Christmas 50% off

Coupon code: YEND2013 (only applicable to annual ...

LiCloud 768MB RAM 100Mbps Bandwidth Hong Kong CMI KVM VPS Review

Details : LiCloud: $16.99/year/756MB memory/10GB ...

Hostodo: $12.99/year/3GB memory/50GB space/2TB traffic/OpenVZ/Los Angeles

Hostodo, which has been introduced many times, no...

Arch Hosting: $30/year/1GB RAM/25GB SSD space/1TB bandwidth/KVM/Los Angeles

Arch Hosting, an American hosting provider, has b...

OneIndex: Use Microsoft Cloud Drive to create your own public cloud drive

Reference: GDList: Use Google Drive to create you...

BudgetNode: $24/year/1GB memory/40GB space/1TB traffic/KVM/Los Angeles

BudgetNode, a US hosting provider, is a formally ...