免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: rhci
打印 上一主题 下一主题

CactiEZ中文版横空出世 下载在三楼 支持电信和网通下载 [复制链接]

论坛徽章:
0
31 [报告]
发表于 2008-08-29 08:15 |只看该作者
网通地址有防火墙, 只有网通的网段才能访问.

论坛徽章:
0
32 [报告]
发表于 2008-08-29 08:16 |只看该作者
我白天会挂着迅雷, 白天有备用资源.

论坛徽章:
0
33 [报告]
发表于 2008-08-29 08:27 |只看该作者
呵呵,lz是好人。300m啊,太大了,晕。我的redhat 4u6也应该可以装把

论坛徽章:
0
34 [报告]
发表于 2008-08-29 08:30 |只看该作者
CactiEZ 是用CentOS 4.6系统加Cacti还有一些插件组成的..
我做的这个是一个ISO光盘镜像.包括了系统.

你只需要刻成光盘, 然后装到机器里就行了..Cacti和Mysql什么的都已经搞好了....

注意: 装的时候会自动清除硬盘上所有数据.

如果你没有真机可用, 或是不想清除硬盘上的数据, 你可以装一个VMware, 然后在VMware里装这个系统, 刻光盘都省了...

论坛徽章:
0
35 [报告]
发表于 2008-08-29 08:32 |只看该作者
原帖由 timdcn 于 2008-8-29 08:27 发表
呵呵,lz是好人。300m啊,太大了,晕。我的redhat 4u6也应该可以装把



Red Hat Enterprise Linux 不能随便用....要给钱钱的...

论坛徽章:
0
36 [报告]
发表于 2008-08-29 10:11 |只看该作者
lz你确定那是网通线路,我这边2m独享网通,下载速度才8k。redhat企业版使用不收钱,服务才收费!

论坛徽章:
0
37 [报告]
发表于 2008-08-29 10:13 |只看该作者
没有下线啊.服务器上甚么都没有跑
就安了个这个ftp服务器
前天默认的是10个用户并发
我改过了.
这个ftp服务器软件不太好.
好久换成FileZilla Server就快了.
这个ftp server有问题

刚才我都下载了.我这里重庆电信出口到这个服务器很快.这个服务器放绵阳科技城机房的

[ 本帖最后由 zhengwei_zw 于 2008-8-29 10:15 编辑 ]

f.PNG (40.15 KB, 下载次数: 38)

f.PNG

论坛徽章:
0
38 [报告]
发表于 2008-08-29 10:30 |只看该作者
我要安装在bsd服务器上我看你tar包里面没sql啊
好晕....

  1. # Install CentOS instead of Upgrade
  2. install
  3. text

  4. #Install from CD-ROM
  5. cdrom

  6. # Use English Language
  7. lang en_US.UTF-8
  8. langsupport --default=en_US.UTF-8 en_US.UTF-8
  9. keyboard us
  10. timezone Asia/ShangHai

  11. # Skip the X Configuration
  12. skipx

  13. # Setup for DHCP
  14. network --device eth0 --bootproto dhcp

  15. # Set root password
  16. rootpw --iscrypted $1$Q4l1mgtz$v56eZQW5RCdT.HefhNkv9/

  17. # Setup the firewall with SSH, HTTP/S, Syslog, Webmin, NTop, and Netflow enabled
  18. firewall --enabled --port=22:tcp --port=80:tcp --port=443:tcp

  19. # Disable SELinux
  20. selinux --disabled

  21. # System authorization information
  22. authconfig --enableshadow --enablemd5

  23. # Clear the Bootloader and load it to the Master Boot Record
  24. bootloader --location=mbr
  25. zerombr yes

  26. # Set the Mouse
  27. mouse generic3ps/2

  28. # The following is the partition information you requested
  29. # Note that any partitions you deleted are not expressed
  30. # here so unless you clear all partitions first, this is
  31. # not guaranteed to work

  32. clearpart --all --initlabel
  33. part /boot --fstype ext3 --size=100
  34. part / --fstype ext3 --size=1024 --grow
  35. part swap --size=256 --grow --maxsize=768

  36. %packages --resolvedeps --excludedocs
  37. kernel
  38. grub
  39. e2fsprogs
  40. lvm2
  41. httpd
  42. mod_ssl
  43. mysql-server
  44. mysql
  45. mysql-devel
  46. php
  47. php-mysql
  48. php-gd
  49. php-snmp
  50. php-pear
  51. php-ldap
  52. php-eaccelerator
  53. net-snmp
  54. net-snmp-devel
  55. net-snmp-utils
  56. net-snmp-libs
  57. net-snmp-utils
  58. net-snmp-perl
  59. ntp
  60. #ntop
  61. rrdtool
  62. patch
  63. gettext
  64. syslog-ng
  65. #webmin
  66. graphviz
  67. flow-tools
  68. mailx
  69. #nagios
  70. #nagios-devel
  71. #nagios-plugins
  72. #nagios-nsca
  73. perl-Net-SSLeay
  74. wireshark

  75. #
  76. #   ------- Begin Cacti Install ---------
  77. #

  78. %post --nochroot

  79. # Mount CDROM
  80. mkdir -p /mnt/cdrom
  81. mount -r -t iso9660 /tmp/cdrom /mnt/cdrom


  82. # Remove the old files
  83. rm -fr /mnt/sysimage/var/www/html/*.*  > /dev/null


  84. # Copy our tar file and extract it
  85. cp /mnt/cdrom/CentOS/cactiez.tar.gz /mnt/sysimage/tmp/cactiez.tar.gz > /dev/null
  86. cd /mnt/sysimage/tmp/
  87. tar -zxvf cactiez.tar.gz > /dev/null


  88. # Move the contents of the tar into their new locations
  89. cp -R /mnt/sysimage/tmp/cacti/* /mnt/sysimage/var/www/html/ > /dev/null 2>/dev/null

  90. cp -R /mnt/sysimage/tmp/etc/* /mnt/sysimage/etc/ > /dev/null 2>/dev/null
  91. cp -R /mnt/sysimage/tmp/usr/* /mnt/sysimage/usr/ > /dev/null 2>/dev/null
  92. cp -R /mnt/sysimage/tmp/var/* /mnt/sysimage/var/ > /dev/null 2>/dev/null
  93. cp -R /mnt/sysimage/tmp/boot/* /mnt/sysimage/boot/ > /dev/null 2>/dev/null
  94. cp -R /mnt/sysimage/tmp/sbin/* /mnt/sysimage/sbin/ > /dev/null 2>/dev/null
  95. cp -R /mnt/sysimage/tmp/spine /mnt/sysimage/usr/local/ > /dev/null 2>/dev/null

  96. # Clean up the mess we made
  97. rm -fr /mnt/sysimage/tmp/* > /dev/null 2>/dev/null

  98. # Unmount CDROM
  99. umount /mnt/cdrom


  100. %post


  101. # Creates the library links we need (mainly mysql), this normally isn't necessary except we are going to start MySQL now
  102. ln -s /usr/lib/libgd.so.2 /usr/lib/libgd.so
  103. ln -s /usr/bin/dot /usr/local/bin/dot
  104. ldconfig


  105. # Setup the MYSQL Databases and Import the tables
  106. service mysqld start
  107. /usr/bin/mysqladmin --user=root create cacti
  108. /usr/bin/mysqladmin --user=root create syslog
  109. mysql -e "GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'CactiMadeEZ'"
  110. mysql -e "GRANT ALL ON syslog.* TO cactiuser@localhost IDENTIFIED BY 'CactiMadeEZ'"

  111. mysql cacti < /var/www/html/cacti.sql
  112. mysql cacti < /var/www/html/pa.sql
  113. mysql cacti < /var/www/html/cacti-changes.sql
  114. mysql cacti < /var/www/html/plugins/thold/thold.sql
  115. #mysql cacti < /var/www/html/plugins/discovery/discover.sql
  116. #mysql cacti < /var/www/html/plugins/mactrack/mactrack.sql
  117. #mysql cacti < /var/www/html/plugins/flowview/flowview.sql
  118. #mysql cacti < /var/www/html/plugins/update/update.sql
  119. #mysql cacti < /var/www/html/plugins/boost/boost_sql_memory.sql
  120. mysql cacti < /var/www/html/plugins/aggregate/aggregate.sql
  121. mysql cacti < /var/www/html/plugins/monitor/monitor.sql
  122. #mysql cacti < /var/www/html/plugins/reports/reports.sql




  123. mysql syslog < /var/www/html/plugins/syslog/syslog.sql
  124. mv /var/www/html/cacti.sql /var/www/cacti.sql
  125. mv /var/www/html/cacti-changes.sql /var/www/cacti-changes.sql
  126. service mysqld stop


  127. # Fix the directory permissions
  128. mkdir -p /var/www/html/rra
  129. mkdir -p /var/www/html/log
  130. mkdir -p /var/backups/rrds
  131. mkdir -p /var/backups/cacti
  132. mkdir -p /var/ntop/rrd/graphics
  133. mkdir -p /var/ntop/rrd/flows
  134. mkdir -p /var/ntop/rrd/interfaces
  135. mkdir -p /var/netflow/flows/completed

  136. chmod -R 755 /var/backups
  137. chmod -R 777 /var/www/html/log/
  138. chmod -R 7755 /var/www/html/rra/
  139. chmod -R 755 /var/www/html/scripts/
  140. chmod -R 755 /usr/local/spine/spine
  141. chmod -R 755 /var/ntop/rrd/
  142. chmod 755 /etc/rc.d/init.d/flow-capture
  143. chmod 755 /etc/rc.d/init.d/cacti_rrdsvc
  144. chmod -R 755 /var/netflow/
  145. chmod -R 755 /var/www/html/plugins/weathermap/configs
  146. chmod -R 755 /var/www/html/plugins/weathermap/output
  147. chmod -R 755 /var/www/html/plugins/boost/cache
  148. chmod 755 /var/www/html/plugins/boost/boost_server.php
  149. chmod +x /var/www/backup.sh
  150. chmod +x /sbin/syslogtomysql

  151. chown -R apache:apache /var/www/html/
  152. chown -R apache:apache /var/backups
  153. chown -R apache:apache /usr/local/spine/
  154. chown -R ntop:ntop /var/ntop/


  155. # Install the crontabs
  156. echo '*/10 * * * * ntpdate 0.rhel.pool.ntp.org' > /tmp/crontab2.tmp
  157. echo '*/1 * * * * php /var/www/html/poller.php > /dev/null 2>&1' >> /tmp/crontab2.tmp
  158. #echo '*/1 * * * * php /var/www/html/plugins/monitor/fast_poller.php > /dev/null 2>&1' >> /tmp/crontab.tmp
  159. echo '* * * * * /var/netflow/flow.pl > /dev/null 2>&1' >> /tmp/crontab2.tmp
  160. echo '1 1 * * * find /var/netflow/flows/completed/* -type d -mtime +5 -exec rm -fr {} \; > /dev/null 2>&1' >> /tmp/crontab2.tmp
  161. echo '0 1 * * * /var/www/backup.sh' >> /tmp/crontab2.tmp
  162. #crontab -u apache /tmp/crontab.tmp
  163. crontab /tmp/crontab2.tmp
  164. #rm /tmp/crontab.tmp
  165. rm /tmp/crontab2.tmp


  166. # Attempt to get Net Time working properly
  167. #echo "driftfile /var/lib/ntp/drift" > /etc/ntp.conf
  168. #echo "server pool.ntp.org" >> /etc/ntp.conf
  169. #echo "server 127.127.1.0" >> /etc/ntp.conf
  170. #echo "fudge 127.127.1.0 stratum 10" >> /etc/ntp.conf


  171. # Disable IPv6 until Cacti at least supports it
  172. echo "alias ipv6 off" >> /etc/modprobe.conf
  173. echo "alias net-pf-10 off" >> /etc/modprobe.conf


  174. # Remove the ISO File translation files
  175. find / -name TRANS.TBL -exec rm {} \; /dev/null 2>/dev/null


  176. # Remove some unneeded services
  177. for service in cpuspeed gpm haldaemon microcode_ctl messagebus netfs rawdevices smartd xfs ntpd
  178. do
  179.   chkconfig --del $service
  180. done


  181. # Stop services we don't want just yet
  182. for service in irqbalance lm_sensors xinetd
  183. do
  184.   chkconfig $service off
  185. done

  186. # Start the services we do want
  187. for service in cacti_rrdsvc flow-capture httpd mysqld snmpd syslog-ng
  188. do
  189.   chkconfig --level 235 $service on
  190. done


  191. # Set MySQL to start before the syslog daemon, since we log to MySQL
  192. mv /etc/rc.d/rc3.d/S64mysqld /etc/rc.d/rc3.d/S11mysqld
  193. mv /etc/rc.d/rc0.d/K36mysqld /etc/rc.d/rc0.d/K91mysqld
  194. mv /etc/rc.d/rc1.d/K36mysqld /etc/rc.d/rc1.d/K91mysqld
  195. mv /etc/rc.d/rc6.d/K36mysqld /etc/rc.d/rc6.d/K91mysqld


  196. # Configure NTOP so that it doesn't puke on us
  197. #ntop --set-admin-password=CactiEZ --skip-version-check


  198. # Import the CentOS Keys for Yum to work properly
  199. rpm --import /usr/share/rhn/RPM-GPG-KEY
  200. rpm --import /usr/share/rhn/RPM-GPG-KEY-centos4
  201. rpm --import /usr/share/rhn/RPM-GPG-KEY-centos4
  202. rpm --import /usr/share/rhn/RPM-GPG-KEY-Fedora-Extras


  203. # Remove the webmin modules that we can't use
  204. #for directory in adsl-client bind8 burner caldera cfengine cluster-copy cluster-cron cluster-passwd cluster-shell cluster-software cluster-useradmin cluster-usermin cluster-webmin dhcpd dovecot exports fetchmail frox heartbeat idmapd ipsec jabber ldap-client ldap-useradmin lpadmin majordomo mon mscstyle3 nis openslp pap postfix postgresql ppp-client pptp-client pptp-server proftpd procmail pserver qmailadmin quota samba sarg sentry shorewall spam squid stunnel usermin vgetty webalizer wuftpd
  205. #do
  206. #  rm -fr /usr/libexec/webmin/$directory
  207. #done


复制代码

论坛徽章:
0
39 [报告]
发表于 2008-08-29 10:40 |只看该作者
这是啥东西,先下载再研究
我这里用迅雷没有资源

论坛徽章:
0
40 [报告]
发表于 2008-08-29 10:43 |只看该作者
电信的可以下载 好像限速了,不到150k每秒
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP