centos部署cacti 1.X
来源:互联网 发布:淘宝电商怎么注册 编辑:程序博客网 时间:2024/05/17 07:45
- cacti dependence
- php
- mysql
- cacti configure
- know errors
cacti dependence
php
#/etc/php.inisafe_mode = Offdate.timezone = "Asia/Shanghai"
mysql
[mysqld]basedir = /opt/mysql_cacti/datadir = /opt/mysql_cacti/databind-address= 0.0.0.0port = 3333user=mysql# server_id = .....socket = /opt/mysql_cacti/mysql.sockmax_heap_table_size=1567Mmax_allowed_packet=16777216join_buffer_size=64Mtmp_table_size=64Minnodb_buffer_pool_size=7835Minnodb_doublewrite=0innodb_additional_mem_pool_size=80Minnodb_flush_log_at_timeout=3innodb_read_io_threads=32innodb_write_io_threads=16
shell> yum install net-snmp net-snmp-libs net-snmp-utils rrdtool perl-devel perl-CPAN perl-YAML#安装依赖shell> wget http://www.cacti.net/downloads/cacti-1.1.3.tar.gzshell> tar xzf cacti-1.1.3.tar.gz -C /www/shell> ln -s /www/cacti-1.1.3/ /www/cactishell> cd /www/cacti/shell> mysql -root -pmysql> create database cacti;Query OK, 1 row affected (0.00 sec)mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || cacti || mysql || performance_schema |+--------------------+4 rows in set (0.00 sec)#创建数据库mysql> source cacti.sql#导入数据mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';mysql> flush privileges;mysql> exit#创建cacti帐号,赋予权限shell> chown -R cactiuser rra/ log/#/etc/crontab*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1#将每5分钟执行一次的数据获取脚本加入crontab
cacti configure
Edit “include/config.php” and specify the database type, name, host,user and password for your Cacti configuration.
$database_type = "mysql";$database_default = "cacti";$database_hostname = "127.0.0.1";$database_username = "cactiuser";$database_password = "cacti";$database_port = '3333';#修改数据库连接配置/* load up old style plugins here */$plugins = array();//$plugins[] = 'thold';/* Edit this to point to the default URL of your Cacti install ex: if your cacti install as at http://serverip/cacti/ this would be set to /cacti/*/$url_path = "/cacti/";/* Default session name - Session name must contain alpha characters */#$cacti_session_name = "Cacti";
重启nginx php mysql
访问 http://localhost/cacti
无错误即可,到此安装完毕
#更多内容详见官方手册
http://docs.cacti.net/manual
know errors
1.
ERROR:Your Cacti database login account does not have access to the
MySQL TimeZone database. Please provide the Cacti database account
“select” access to the “time_zone_name” table in the “mysql” database,
and populate MySQL’s TimeZone information before proceeding.
mysql> GRANT SELECT ON mysql.time_zone_name TO cactiuser@localhost IDENTIFIED BY 'cacti'
2.
ERROR: Your MySQL TimeZone database is not populated. Please populate
this database before proceeding.
mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -u root -p mysql
1 0
- centos部署cacti 1.X
- Cacti on CentOS 4.x
- centOS 5.4 快速部署cacti监控
- cacti 部署
- Centos 6.x部署FreeSWITCH
- Cacti的安装部署
- Cacti部署文档
- nagios+cacti部署安装
- Cacti部署(一)
- Cacti部署过程
- Cacti简介及部署
- Cacti监控平台部署
- CentOS CACTI,RRDTool安装
- CentOS+Cacti安装配置
- CentOS+Cacti安装配置
- CentOS 安装Cacti
- centos yum cacti
- CentOS下CACTI安装
- 实体类
- ES6的全局对象属性
- 导弹发射-河南省第九届省赛D题
- c++练习 日期的顺延显示
- 小清新加载等待控件
- centos部署cacti 1.X
- linux文件系统的运作以及挂载点的意义
- ios h5 用kepup事件验证获取数据问题
- 关于安装MYSQL不知道密码的问题
- 简明Python教程之编写一个Pyhton脚本
- 常见编程错误
- 平方末尾题目
- string转换为int型。
- Golang 学习之路六:函数