ubuntu系统安装cacti

acti is a complete network graphing solution designed to harness the power of RRDTool’s data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.

 

 

Cacti Features

If you want to know more about cacti check here

Install cacti in Ubuntu 8.10 (Intrepid Ibex) Server

Preparing Your system

First you need to make sure you have install Ubuntu 8.10 LAMP server and then you need to install the following packages

sudo apt-get install php5 php5-gd php5-mysql

Install accti using the following command

sudo apt-get install cacti-cactid

This will start installing cacti and prompt for some questions.

Configuring libphp-adodb option select ok Enter to Continue.

Select your webserver in this example we are using apache2 select ok Enter to Continue

Cacti spine option select ok Enter to Continue

Configure database for cacti select yes Enter to Continue

Enter the root password for your mysql server select ok Enter to Continue

Enter the password (cacti) for the cacti database,select ok Enter to Continue

Re-enter the password (cacti) for the cacti database,select ok Enter to Continue

This will complete the cacti installation.

Configuring Cacti

Now you need to point your browser http://serverip/cacti press enter.You should see similar to the following screen Click Next to Continue.

You need to select the type of installation as New Installation and click next to Continue.

Now it will check all the required paths are correct or not you can see this in the following screen here click
on Finish

Now you should see the Cacti Login screen as follows

Here you need to enter username and password as admin/admin and click login

First time it will prompt you to change cacti admin user password for security reasons and click save

You should see the following screen like below once you logged.

In the above screen Click settings--->Click settings.Make sure in the “Spine Poller File Path”, you have
“/usr/sbin/spine”

Now you need to click on Poller Select “spine” in the “Poller Type”,click on Save.

Now you need to wait for 15 min to see your server graphs starts appearing in cacti graphs.Now your Cacti Monitoring Server is Ready and if you want to know how use cacti graphs and templates check here

If you want complete list of cacti templates check here

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
你可以按照以下步骤在 Ubuntu 18.04 上安装 Cacti: 1. 更新系统软件包: ``` sudo apt update sudo apt upgrade ``` 2. 安装必需的软件包: ``` sudo apt install lamp-server^ snmp php-xml php-mbstring php-gd php7.2-snmp ``` 3. 配置 MySQL 数据库: ``` sudo mysql_secure_installation ``` 4. 创建 Cacti 数据库: ``` sudo mysql -u root -p CREATE DATABASE cacti; GRANT ALL PRIVILEGES ON cacti.* TO 'cactiuser'@'localhost' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; quit; ``` 5. 导入 Cacti 数据库模板: ``` sudo mysql -u cactiuser -p cacti < /usr/share/doc/cacti/cacti.sql ``` 6. 配置 Cacti: ``` sudo nano /etc/cacti/debian.php ``` 找到以下行并修改数据库信息: ``` $database_type = 'mysql'; $database_default = 'cacti'; $database_hostname = 'localhost'; $database_username = 'cactiuser'; $database_password = 'password'; $database_port = '3306'; $database_ssl = false; ``` 7. 配置 Apache2 Web 服务器: ``` sudo nano /etc/apache2/sites-available/cacti.conf ``` 添加以下内容: ``` Alias /cacti /usr/share/cacti/site <Directory /usr/share/cacti/site> Options +FollowSymLinks AllowOverride None Order deny,allow Deny from all # 添加以下行 Allow from localhost </Directory> ``` 8. 启用 Cacti 配置文件和 Apache2 配置文件: ``` sudo ln -s /etc/cacti/apache.conf /etc/apache2/conf-available/cacti.conf sudo a2enconf cacti sudo systemctl reload apache2 ``` 9. 创建 Cron 作业: ``` sudo nano /etc/cron.d/cacti 添加以下行: */5 * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null 2>&1 ``` 10. 配置 SNMP: ``` sudo nano /etc/snmp/snmpd.conf ``` 找到以下行并取消注释: ``` agentAddress udp:161 ``` 11. 重启 SNMP 和 Apache2 服务: ``` sudo systemctl restart snmpd sudo systemctl restart apache2 ``` 现在你可以通过访问 `http://your-ip-address/cacti` 来打开 Cacti 网页界面,并按照安装向导进行配置。默认用户名为 `admin`,默认密码为空。 希望这能帮助到你成功安装 Cacti!如有任何问题,请随时向我提问。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值