How to install cacti With Nginx

转载于:https://github.com/blackyboy/Ubuntu-Linux-Stuffs/blob/master/How-to-install-Cacti-Monitoring-Server-With-Nginx.md

Cacti provides an exceptionally easy to use system monitoring solution. Essential graphs are included by default, such as load average and memory usage.

Wee Need to install MYSQL and Nginx For Cacti Monitoring tool

  1. Installing Nginx

# sudo apt-get install nginx

1

1.Install SNMPD Service


# sudo apt-get install snmpd


2.Configure SNMPD


# vim /etc/default/snmpd


2

Relace the Line #export MIBS=/usr/share/mibs/netsnmp/ With


# export MIBS=ALL

4

Then add the Following Line to the ACCESS CONTROL Area of /etc/snmp/snmpd.conf

5


# rocommunity public localhost       #  Full access from localhost


6

Download Non-free MIB Files


# sudo apt-get install snmp-mibs-downloader
# sudo service snmpd restart  

7

And Restart the Service

8

Install Cacti And Spine


# sudo apt-get install cacti cacti-spine


9

During the installation of Cacti, you will be asked if you’d like dbconfig-common to setup MySQL for Cacti automatically. This creates a user and database for Cacti, and then imports the necessary data.

10

11

12

Add a Symbolic Link to Cacti's Web Interface

Here i have choosed the location in /var/www/


# cd /var/www/


13

Create a Symbolic link from /usr/share/cacti/site to www


# ln -s /usr/share/cacti/site cacti


14

If we choose other folder cacti to RUN for ex: /var/cacti

We Need to Chown the folder as www-data, But here i used /var/www already Setted as a www-data

If u use /var/cacti chown it using command


# sudo chown -R www-data:www-data /var/cacti

3 Step we need to Do Here is


Change directory to the root of our site
Create a symbolic link to Cacti’s web interface named cacti
Optional Change owner and group of Cacti’s web interface to www-data


Fireup the Browser and Navigate to install cacti from ip were we installed



# http://192.168.122.3/cacti/


15

16


User Name : admin
Password  : admin

17

While Login in it as u to change the password at first Login Choose Your New Password

18

20

Default Username and Password is


User Name : admin
Password  : admin

转载于:https://www.cnblogs.com/zl0372/p/cacti.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值