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

MySQL large capacity database backup method

It can be used on VPS and virtual hosts that supp...

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

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

DeployNode: $11/year/1GB memory/35GB space/1TB traffic/OpenVZ/France

DeployNode, an Indian hosting provider, was estab...

TerraHost: $24/month/i5-2400/8G memory/500GB hard drive/5TB traffic/Norway

TerraHost, a long-established Norwegian hosting p...

[INFINITIE.net] 85% off on virtual hosting

It’s very cost-effective. I strongly recommend us...