Установка Cacti на FreeBSD
Автор: Раздел: Как настроить FreeBSD
Как установить Cacti на FreeBSD
Вот решился опробовать, что это за зверь - cacti. Поточнее, наверно цветочек нежели зверь, ну посмотрим что да как. Установливаю на FreeBSD из портов. Заранее обновляю порты csup-ом. Ставлю cacti: # cd /usr/ports/net-mgmt/cacti # make install clean ![]() Дальше идет процесс установки. Около минуток 20-ти идет по времени – чашечку кофе хлебнуть поспел. Цивилизованный такой кактус, по завершению установки написал что ему необходимо: *********************************************************** The following line has been added to your /usr/local/etc/php/extensions.ini configuration file to automatically load the installed extension: extension=snmp.so ********************************************************* ===> Returning to build of cacti-0.8.7g ===> cacti-0.8.7g depends on file: /usr/local/lib/php/20060613/xml.so – found Added group «cacti». Added user «cacti». ===> Generating temporary packing list ===> Checking if net-mgmt/cacti already installed ======================================================== Cacti is now installed. If you intall it for the first time, you may have to follow this steps to make it work correctly: 1. Create the MySQL database: # mysqladmin –user=root create cacti 2. Create a mysql user/password for cacti: (change user and/or password if required) # echo «GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ‘cactiuser’; FLUSH PRIVILEGES;» | mysql 3. Import the default cacti database: # mysql cacti < /usr/local/share/cacti/cacti.sql 4. Edit /usr/local/share/cacti/include/config.php. 5. Add the line to cron jobs with the command: # crontab -u cacti -e */5 * * * * /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1 6. Add alias in apache config for the cacti dir: Alias /cacti «/usr/local/share/cacti/» 7. Be sure apache gives an access to the directory (‘Allow from’ keywords). 8. Open a cacti login page in your web browser and login with admin/admin. If you update cacti, open a login page, an updating process will start automatically. ========================================================== ===> Registering installation for cacti-0.8.7g ===> Cleaning for php52-sockets-5.2.17_1 ===> Cleaning for php52-snmp-5.2.17_1 ===> Cleaning for net-snmp-5.5_4 ===> Cleaning for cacti-0.8.7g web1# Создаем базу, импортируем в нее данные: /usr/local/share/cacti/cacti.sql Прописываем базу (логин и пароль) в конфиге cacti: /usr/local/share/cacti/include/config.php Создаём "алиас" в Apache: /usr/local/etc/apache22/Includes/alias.conf Alias /cacti/ «/usr/local/share/cacti/» Options Indexes FollowSymlinks MultiViews AllowOverride AuthConfig Order deny,allow Allow from all Далее заходим в нашем браузере: vash_ip/cacti/ И настраиваем. Пока еще не отыскал как подключить русский язык в админке. |