How to install Cacti on OpenSuse 10.2

1.Download Extract the distribution tarballSuse:/opt # wget # tar zxvf cacti-0.8.6j.tar.gz2.Create the MySQL database:Suse:/opt # mysqladmin –user=root create cacti3.Import the default cacti database:Suse:/opt/cacti-0.8.6j # mysql cacti < user=“root”> GRANT ALL ON cacti._ TO cactiuser@localhost IDENTIFIED BY ‘cacti’;Query OK, 0 rows affected (0.03 sec)mysql> flush privileges;Query OK, 0 rows affected (0.00 sec)mysql> quite5.Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.Suse:/opt/cacti-0.8.6j # vi include/config.php/_ make sure these values refect your actual database/host/user/password /$database_type = “mysql”;$database_default = “cacti”;$database_hostname = “localhost”;$database_username = “cactiuser”;$database_password = “cacti”;$database_port = “3306”;6.Set the appropriate permissions on cacti’s directories for graph/log generation. You should execute these commands from inside cacti’s directory to change the permissions.Suse:/opt # mv cacti-0.8.6j /srv/www/htdocs/cactiSuse:/opt # useradd cactiuser -d /srv/www/htdocs/cacti7.Add a line to your /etc/crontab file similar to:Suse:/srv/www/htdocs/cacti # vi /etc/crontab/5 * * * * cactiuser php /srv/www/htdocs/cacti/poller.php > /dev/null 2>&18.Point your web browser to: cacti patchesAccess to sure that you are in your Cacti directory when you execute these commands.

wget -p1 -N < ping_php_version4_snmpgetnext.patchpatch -p1 -N < tree_console_missing_hosts.patchpatch -p1 -N < thumbnail_graphs_not_working.patchpatch -p1 -N < graph_debug_lockup_fix.patchpatch -p1 -N < snmpwalk_fix.patch10.Install cactidDownload Cacti.tar.gzSuse:/srv/www/htdocs/cacti # wget # tar zxvf cacti-cactid-0.8.6i.tar.gzSuse:/srv/www/htdocs/cacti # cd cacti-cactid-0.8.6i/Suse:/srv/www/htdocs/cacti/cacti-cactid-0.8.6i # ./configureencounter a error:configure: error: cannot find SNMP headers. Use –with-snmp to specify non-default path.It seems OpenSuse does not have SNMP headers within installtation DVD. Install cactid latter.This article is referring Installation Guide for Unix/Linux from

署名-非商业性使用-禁止演绎 3.0 未本地化版本 (CC BY-NC-ND 3.0)
comments powered by Disqus
本博客始于 2007 年
Built with Hugo
Theme Stack designed by Jimmy