linux cacti
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-04-29
ds from inside cacti’s directory to change the permissions. shell> chown -R cactiuser rra/ log/ (Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.) 7. Add a line to your /etc/crontab file similar to: */5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1 Replace cactiuser with the valid user specified in the previous step. Replace /var/www/html/cacti/ with your full Cacti path. 8. Point your web browser to: http://your-server/cacti/ Log in the with a username/password of admin. You will be required to change this password immediately. Make sure to fill in all of the path variables carefully and correctly on the following screen. 3 Chapter 2. Installing Under Unix 2.7. (Optional) Install and Configure Spine Spine is a very fast poller engine, written in C. It is an optional replacement for cmd.php. If you decide to use it, you will have to install it explicitely. It does not come with cacti itself. The easiest way is to install Spine using rpm or ports. You will find packages for Spine at the main cacti site or from your distribution. To compile Spine, please download it to any location of your liking. Then, please issue from the downloaded directory following commands shell>aclocal shell>libtoolize --force (glibtoolize --force on Max OS) shell>autoheader shell>autoconf shell>automake shell>./configure shell>make shell>make install Assuming, you’ve managed to install Spine correctly, you will have to configure it. The configuration file may be placed in the same directory as Spine itself or at /etc/Spine.conf. DB_Host 127.0.0.1 or hostname (not localhost) DB_Database cacti DB_User cactiuser DB_Password cacti DB_Port 3306 All other pre 0.8.6 settings are obsolete. 2.8. Apply Patches Please visit the Cacti website at http://www.cacti.net/download_patches.php If any patch has been released, you will find installation instructions there. As an example, please find patch installation instructions for cacti 0.8.6j here. Do not apply those patches to recent releases! 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 < ping_php_version4_snmpgetnext.patch patch -p1 -N < tree_console_missing_hosts.patch patch -p1 -N < thumbnail_graphs_not_working.patch patch -p1 -N < graph_debug_lockup_fix.patch patch -p1 -N < snmpwalk_fix.patch You might need to reapply file/folder security on the files patched. Double check they are correct. |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: grub学习笔记二(引导配置篇)下一篇: lighttpd服务下防盗链设置
关于linux cacti的所有评论