Ralf S. Engelschall wrote:
On Sun, Jan 13, 2008, Victor G. Bolshakov wrote:


P.S. can you help me with packaging Spine
(http://www.cacti.net/spine_info.php,
http://www.cacti.net/downloads/spine/cacti-spine-0.8.7a.tar.gz) - external
binary poller for Cacti? A'm not so good with RPM.

There is now a "cacti-spine" package. But I guess we have to
pre-configure its spine.conf a little bit and link it into Cacti
(instead of cmd.php), right? Can you tell me details?

Ok.
Cacti config is /openpkg/share/cacti/include/config.php

Significant lines is:
        $database_type = "mysql";
        $database_default = "cacti";
        $database_hostname = "localhost";
        $database_username = "cacti";
        $database_password = "cacti";
        $database_port = "3306";

Spine config is "spine.conf" (near spine binary by default, i think it 
correcteble only in sources for right location)

Significant lines is:
        DB_Host         localhost
        DB_Database     cacti
        DB_User         cacti
        DB_Pass         cacti
        DB_Port         3306

Parameters matching very easy. Only one thing "$database_type" my be unresolved problem - Spine works only with MySQL but Cacti can work with postgresql (not by default, and not very stable) - i think that if $database_type != "mysql" no autoconfigure of Spine can be done.
______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to