容量规划中的工具

简单记录使用的工具,对于使用哪个工具的批判标准是:
[color=red]只要符合你的某个程度上的需要,就是说只要满足你需要的批判标准,获取到对应的数据,就不必再纠结于使用什么样的工具了[/color].

Cacti
sudo apt-get install cacti
中间会下载mysql,tomcat,apache等辅助的软件,下吧.不过貌似这些工具都是这样的.
cacti使用的画图工具时rrdtools.

安装过程中会让你输入mysql数据库中的root的密码,还会让你输入administrator的密码等.设置的合理一点是常用的密码****gamma.

最后是:
http://10.13.8.27/cacti

可以通过这个地址访问对应的cacti安装程序,这个是一个apache的内容.
查看监听的地址:
hibernatesone@hibernatesone-laptop:/etc/apache2/conf.d$ netstat -lt --numeric-host
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:sunrpc 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:www 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:ftp 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:ipp 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:12865 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:mysql 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN
tcp6 0 0 :::http-alt :::* LISTEN
tcp6 0 0 :::ssh :::* LISTEN
tcp6 0 0 ::1:ipp :::* LISTEN
tcp6 0 0 127.0.0.1:8005 :::* LISTEN
hibernatesone@hibernatesone-laptop:/etc/apache2/conf.d$ netstat -lt --numeric-ports
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:12865 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN
tcp6 0 0 :::8080 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
tcp6 0 0 127.0.0.1:8005 :::* LISTEN
hibernatesone@hibernatesone-laptop:/etc/apache2/conf.d$

80的是一个apache的启动内容,而8080是一个tomcat的启动程序.

再看看apache的启动内容:
hibernatesone@hibernatesone-laptop:/etc/apache2/conf.d$ ps -aef | grep apache
tomcat6 937 1 0 19:22 ? 00:00:05 /usr/lib/jvm/java-6-openjdk/bin/java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start
root 3147 1 0 19:28 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 3955 3147 0 19:30 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 3956 3147 0 19:30 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 3958 3147 0 19:30 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4089 3147 0 19:37 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4117 3147 0 19:38 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4119 3147 0 19:38 ? 00:00:01 /usr/sbin/apache2 -k start
www-data 4120 3147 0 19:38 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4121 3147 0 19:38 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4221 3147 0 19:40 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4254 3147 0 19:41 ? 00:00:00 /usr/sbin/apache2 -k start

其中一个是tomcat6的,另一个是apache2的.

hibernatesone@hibernatesone-laptop:/etc/apache2$ whereis apache2
apache2: /usr/sbin/apache2 /etc/apache2 /usr/lib/apache2 /usr/share/apache2 /usr/share/man/man8/apache2.8.gz
apache2的配置文件一般在/etc/apache2中.
进入详细的看看.

发现还有一个conf.d目录,其中内容如下:
/etc/apache2/conf.d

hibernatesone@hibernatesone-laptop:/etc/apache2$ ls conf.d/
cacti.conf charset localized-error-pages security

发现了cacti.conf文件内容了...

Alias /cacti /usr/share/cacti/site


Options +FollowSymLinks
AllowOverride None
order allow,deny
allow from all

AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag short_open_tag On
php_flag register_globals Off
php_flag register_argc_argv On
php_flag track_vars On
# this setting is necessary for some locales
php_value mbstring.func_overload 0
php_value include_path .

DirectoryIndex index.php


cacti的内容配置是:
Alias /cacti /usr/share/cacti/site
这个说明了为什么能够使用上面的url进行访问了,这里定义了apache的/cacti 的别名.OK.

看看site中的内容:

hibernatesone@hibernatesone-laptop:/usr/share/cacti/site$ ls
about.php data_queries.php graph_settings.php graph_view.php install rra.php user_admin.php
auth_changepassword.php data_sources.php graphs_items.php graph_xport.php lib scripts utilities.php
auth_login.php data_templates.php graphs_new.php host.php logout.php script_server.php
cdef.php docs graphs.php host_templates.php poller_commands.php settings.php
cmd.php gprint_presets.php graph_templates_inputs.php images poller_export.php templates_export.php
color.php graph_image.php graph_templates_items.php include poller.php templates_import.php
data_input.php graph.php graph_templates.php index.php resource tree.php

基本上就确认了cacti是用的内容了.

看看cacti中阐述的:
Cacti requires MySQL, PHP, RRDTool, net-snmp, and a webserver that supports PHP such as Apache or IIS. Please see the requirements section of the manual for information on how to fulfill these requirements under certain operating systems. Please use the install guide for either Unix or Windows for information about installing Cacti.

对于tomcat6,先不用管它....apt-get install也是一个不爽的事情,动不动就给你启动...一时还没去想好方法...

使用http://10.13.8.27/cacti能够直接定位到install步骤,会让你输入一些密码的,简单的来,以后可以修改的....
cacti的默认登录账号是:
admin
admin

千万别设置的连你自己都会忘记的密码.

好了.
http://10.13.8.27/cacti/index.php

已经能够访问了...
http://10.13.8.27/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=7&select_first=true


[img]http://dl.iteye.com/upload/attachment/361237/f17f872a-63cb-327e-913a-ec1721f1634b.png[/img]


2.对于Munin,可以参考这个:
http://www.iteye.com/topic/539319

http://munin-monitoring.org/wiki/LinuxInstallation
http://munin-monitoring.org/wiki
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值