免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1188 | 回复: 0
打印 上一主题 下一主题

How to install Cacti on OpenSuse 10.2 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-23 17:39 |只看该作者 |倒序浏览

转自:

http://blog.chinaunix.net/u1/55845/showart_435367.html


How to install Cacti on OpenSuse 10.2
1.
Download Extract the distribution tarball
Suse:/opt # wget http://www.cacti.net/downloads/cacti-0.8.6j.tar.gz
Suse:/opt # tar zxvf cacti-0.8.6j.tar.gz
2.
Create the MySQL database:
Suse:/opt # mysqladmin --user=root create cacti
3.
Import the default cacti database:
Suse:/opt/cacti-0.8.6j # mysql cacti  GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cacti';
Query OK, 0 rows affected (0.03 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quite
5.
Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.
Suse:/opt/cacti-0.8.6j # vi include/config.php
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";
$database_port = "3306";
6.
Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.
Suse:/opt # mv cacti-0.8.6j /srv/www/htdocs/cacti
Suse:/opt # useradd cactiuser -d /srv/www/htdocs/cacti
7.
Add a line to your /etc/crontab file similar to:
Suse:/srv/www/htdocs/cacti # vi /etc/crontab
*/5 * * * * cactiuser php /srv/www/htdocs/cacti/poller.php > /dev/null 2>&1
8.
Point your web browser to:
http://10.100.113.138/cacti/index.php
9.
Install cacti patches
Access to http://www.cacti.net/download_patches.php
Be sure that you are in your Cacti directory when you execute these commands.
wget http://www.cacti.net/downloads/patches/0.8.6j/ping_php_version4_snmpgetnext.patch
wget http://www.cacti.net/downloads/patches/0.8.6j/tree_console_missing_hosts.patch
wget http://www.cacti.net/downloads/patches/0.8.6j/thumbnail_graphs_not_working.patch
wget http://www.cacti.net/downloads/patches/0.8.6j/graph_debug_lockup_fix.patch
wget http://www.cacti.net/downloads/patches/0.8.6j/snmpwalk_fix.patch
patch -p1 -N
10.
Install cactid
Download Cacti.tar.gz
Suse:/srv/www/htdocs/cacti # wget http://www.cacti.net/downloads/cactid/cacti-cactid-0.8.6i.tar.gz
Suse:/srv/www/htdocs/cacti # tar zxvf cacti-cactid-0.8.6i.tar.gz
Suse:/srv/www/htdocs/cacti # cd cacti-cactid-0.8.6i/
Suse:/srv/www/htdocs/cacti/cacti-cactid-0.8.6i # ./configure
encounter a error:
configure: error: cannot find SNMP headers. Use --with-snmp to specify non-default path.
It seems OpenSuse does not have SNMP headers within installtation DVD. Install cactid latter.
This article is referring
Installation Guide for Unix/Linux
from cacti.net



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/60264/showart_470085.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP