Chinaunix

标题: redhat as部署cacti的脚本 [打印本页]

作者: 苏恒    时间: 2009-03-24 14:08
标题: redhat as部署cacti的脚本

#!/bin/bash
#    这是一个基于redhat rrdtool,snmp,cacti监控平台的初始化脚本
#this is a redhat as5 cacti server build script
#
#
tar xvf cactipack.tar.gz
yum -y install net-snmp net-snmp-utils php php-mysql php-snmp mysql-server cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel
/etc/init.d/httpd restart
/etc/init.d/mysqld start
mysql -u root -p   /dev/null 2>&1" > /var/spool/cron/apache
#now you can logon
http://localhost/cacti
username:admin  password:admin
echo "now you can logon
http://localhost/cacti
username:admin  password:admin"
echo "job finish!"





压缩包内含有
cactipack.tar.gz\cactipack - TAR 压缩文件, 解包大小为 17,773,110 字节
cacti
rrdtool-1.2.30

tips:
配合我们的redhat as yum 服务器实现了自动解决软件依赖性问题


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/15520/showart_1877838.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2