cacti监控

本文详细介绍了如何在CentOS系统上配置Cacti监控,包括使用RPM包安装Apache、MariaDB,安装SNMP和RRDTool工具,部署Cacti英文版和中文版,并连接到MariaDB数据库。同时,还涵盖了配置Cacti监控Linux本地及Cisco网络设备的步骤。
摘要由CSDN通过智能技术生成

cacti监控

一、 使用RPM包配置LANP
1、 安装并配置apache、mariadb
1)
安装apache和mariadb数据库

[root@centos01 ~]# rm -rf /etc/yum.repos.d/CentOS-*
[root@centos01 ~]# mount /dev/cdrom /mnt/
mount: /dev/sr0 写保护,将以只读方式挂载
[root@centos01 ~]# yum -y install httpd mariadb mariadb-server
2)
安装php依赖工具

[root@centos01 ~]# yum -y install zlib freetype libjpeg fontconfig gd libxml2-devel php-gd
3)
安装php

[root@centos01 ~]# yum -y install php php-mysql
4)
修改php主配置文件

[root@centos01 ~]# vim /etc/php.ini
879 date.timezone = Asia/Shanghai
5)
创建php测试文件

[root@centos01 ~]# vim /var/www/html/index.php

<?php phpinfo(); ?>

6)
修改apache配置文件

[root@centos01 ~]# vim /etc/httpd/conf/httpd.conf
163
164 DirectoryIndex index.html index.php
165
7)
启动apache服务

[root@centos01 ~]# systemctl start httpd
[root@centos01 ~]# systemctl enable httpd
8)
启动mariadb服务

[root@centos01 ~]# systemctl start mariadb
[root@centos01 ~]# systemctl enable mariadb
9)
Mariadb数据库设置密码

[root@centos01 ~]# mysqladmin -uroot password
New password:
Confirm new password:
10)
客户端访问

在这里插入图片描述
2、 安装snmp和rrdtool工具
1)
安装snmp

[root@centos01 ~]# yum -y install net-snmp-utils net-snmp
2)
设置开机自动启动

[root@centos01 ~]# systemctl enable snmpd
3)
安装rrdtoo依赖工具

[root@centos01 ~]# yum -y install cairo-devel zlib-devel libxml2 libxml2-devel glib2 glib2-devel libpng libpng-devel freetype freetype-devel libart_lgpl pango pango-devel perl-CPAN
4)
安装rrdtool工具

在这里插入图片描述
[root@centos01 ~]# tar zxvf rrdtool-1.7.2.tar.gz -C /usr/src/
[r

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值