Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2737152
  • 博文数量: 423
  • 博客积分: 7770
  • 博客等级: 少将
  • 技术积分: 4766
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-09 11:58
个人简介

Oracle/DB2/Postgresql/Mysql/Hadoop/Greenplum/Postgres-xl/Mongodb

文章分类

全部博文(423)

文章存档

2019年(3)

2018年(6)

2017年(27)

2016年(23)

2015年(30)

2014年(16)

2013年(31)

2012年(73)

2011年(45)

2010年(14)

2009年(30)

2008年(30)

2007年(63)

2006年(32)

分类: 系统运维

2013-11-15 12:07:46

1、安装LAMPP注意版本及操作系统如果是centos需要修改如下:


vi /opt/lampp/lampp

osguess() {
 if test -f /etc/redhat-release
 then
  if egrep "9 " /etc/redhat-release > /dev/null
  then
   echo "rh9"
   return 0
  else

修改成:   

osguess() {
 if test -f /etc/redhat-release
 then
  if egrep "Red" /etc/redhat-release > /dev/null
  then
   echo "rh9"
   return 0
  else
          echo "linux"
   return 0
  fi
 elif test "$(uname)" = "Darwin"
 then
  echo "macosx"
  return 0


2、如果LAMPP需要使用其它端启动如:81端口
修改成: 修改成: 修改成: vi /opt/lampp/lampp
   vi /opt/lampp/lampp  

 if testport 81
 then
  $GETTEXT -s "fail."
  echo "XAMPP: " $($GETTEXT 'Another web server is already running.')
  return 1
 fi

3、修改httpd.conf配置
# vi /opt/lampp/etc/httpd.conf
Listen 81

4、注意CACTI服务器时间及物理时间是否同步,设定时区
# vi  d
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "123456";
$database_port = "3308";
$database_ssl = false;
date_default_timezone_set('Asia/shanghai');

5、设置定时捕捉数据,注意建议不要修改捕捉数据时间:
# crontab -l# crontab -e

*/5  * * * *  /opt/lampp/bin/php /opt/lampp/htdocs/cacti/poller.php > /dev/null 2>&1
 
6、安 装net-snmp
#yum install net-snmp
7 、修改snmpd.conf文件
#       sec.name  source          community
#com2sec notConfigUser  default       public
com2sec notConfigUser  172.40.8.117       public

####
# Finally, grant the group read-only access to the systemview view.

#       group          context sec.model sec.level prefix read   write  notif
access  notConfigGroup ""      any       noauth    exact  all none none


##           incl/excl subtree                          mask
view all    included  .1                               80

阅读(4219) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~