Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support installing pandora on freebsd

  • installing pandora on freebsd

    Posted by Anonymous on June 30, 2006 at 12:38

    Hi,

    I want to know if is possible to install Pandora on Freebsd ?
    Has some body installed it, and there is a manual for the installation.

    Thanks a lot,

    Anonymous replied 18 years, 2 months ago 1 Member · 11 Replies
  • 11 Replies
  • Sancho

    Administrator
    July 1, 2006 at 01:18
    2212 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    No, it’s the first time anybody plan to install it in a FreeBSD machine. I think this would be easy because all needed PERL modules are available in FreeBSD, and all the PHP and PHP modules. So… why not?, officially Pandora’s Plattform is only Linux, because is the system where all the people is actually running it, and because is the development plattform, but one of our developers (RaulM) has a “un-official” way to make Pandora fully operational in a Win2K/XP enviroment.

    If you made it and need some help, please write on this forum. And of course, if you want to write a “Guide to Pandora install in FreeBSD”, you’re welcome :-))

  • Anonymous

    Guest
    July 5, 2006 at 15:47
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thank’s for the replay.

    The problem is in pandora_server (pandora_console Iinstalled adnd it works perfectly)
    I installed all the perl modules required and that OK. But wheni try to start up the server it gave me this error

    Pandora Server 1.2beta Build PS060103 Copyright (c) 2004-2006
    You can download latest versions and documentation in http://pandora.sf.net

    [ERROR] This isn’t Linux. Pandora Server its only OFFICIALLY supported in Linux
    Contact us if you require assistance running Pandora Server over other OS

    Cannot start Pandora Data Server. Aborted

    What can do??

    Thank’s a lot.

  • Sancho

    Administrator
    July 5, 2006 at 16:07
    2212 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Two hints:

    a) Try to set the maximun debug level on pandora_server.conf and look the logs
    b) Try to start the perl script manually to see the console errors:

    cd $PANDORAHOME/bin
    perl pandora_server.pl $PANDORAHOME

    I think the most probably cause will be that incoming_dir doest exists, cannot write to logs or database could not be reached. Its usual, we are working on a “install” script who makes the basic directory structure, checks database, module compatibility, etc. Please write on your ideas and problems installing pandora 🙂

  • Anonymous

    Guest
    July 5, 2006 at 17:09
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    I resove the problem above,
    (I comment the line
    # Check we are running Linux
    ## die “[ERROR] This isn’t Linux. Pandora Server its only OFFICIALLY supported in Linux
    Contact us if you require assistance running Pandora Server over other OS

    ” unless ($^O =~ m/linux/i);

    but I have another problem. When i run pandora server as pandora user:

    pandora # pandora_server start
    Pandora Server 1.2beta Build PS060103 Copyright (c) 2004-2006
    You can download latest versions and documentation in http://pandora.sf.net

  • You are running Pandora Data Server
  • MD5 Security enabled
  • This server is in MASTER mode
  • This server is running in DAEMON mode
  • [E] Error connecting database in init Phase. Aborting startup

    Cannot start Pandora Data Server. Aborted

    ???

    thank’s

    P.S I am going to write a manual how to install pandora on FreeBSD .

  • Anonymous

    Guest
    July 5, 2006 at 17:14
    Like it
    Up
    0
    Down
    Drop it
    ::

    this is the output of log file on “/opt/pandora_server/log/pandora_server.log”

    2006/07/05 15:09:45 Launching Pandora Data Server 1.2beta PS060103
    2006/07/05 15:09:45 [V2] Config options: Logfile at /opt/pandora_server/log/pandora_server.log, Basepath is /opt/pandora_server, Checksum is 1, Master is 1, SNMP Console is 1, Server Threshold at 1 sec, verbosity at 10, Alert Threshold at 60
    2006/07/05 15:09:45 Error connecting database in init Phase. Aborting startup

    :rolleyes:

  • Sancho

    Administrator
    July 5, 2006 at 17:53
    2212 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    2006/07/05 15:09:45 Error connecting database in init Phase. Aborting startup

    For this problem I have an answer :), check your database settings and permissions in .conf file, test manually with a mysqlclient and run it again. It should work.

  • Anonymous

    Guest
    July 5, 2006 at 18:28
    Like it
    Up
    0
    Down
    Drop it
    ::

    the permissions of pandora_server.conf ??
    they have 777 .

    database setings are right
    what dou you mean with “check your database settings and permissions in .conf file” ??

    a questios: the file under /opt/pandora_server/bin/ *.pm and .pl were I am going to put?? under /usr/local/lib/perl5
    or were they are?

    I have two hosts apart
    1) pandora server (192.168.0.1)
    2) mysql (192.168.0.2)

    It simes that can not contact mysql.

  • Sancho

    Administrator
    July 6, 2006 at 02:57
    2212 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Let’s see your /opt/pandora_server/conf/pandora_server.conf

    # incomingdir: Defines directory where incoming data packets are stored
    incomingdir /opt/pandora_server/data_in

    It is very important that: exists and be writable by pandora user.

    # dbuser: Database user name (pandora by default)
    dbuser pandora

    Database user, could be any user you had defined in your MySQL database

    # dbpass: Database password
    dbpass pandora

    Database pass, could be any user you had defined in your MySQL database. You must define this user/pass/host in mysql using the command “grant all privileges on pandora.* to [email protected].0.1 identified by “password”. For more information please read the docs about this, settings the remote hostname it’s not easy because sometimes setting simple hostname doesnt work, you could need to setup the numeric ip address.

    # dbhost: Database hostname or IP address
    dbhost localhost

    In your case, 192.168.0.2

    About location of *.pm and *.pl, the whole package (including the startup scripts) are made for running in /opt/pandora_server, but of course, you can change the pathnames, but also need to change the startup process.
    We are working on a possible cmake syntax configure/setup system or a single perl setup system to customize the path or set in a more “standard” path.

    I hope this helps.

  • Anonymous

    Guest
    July 6, 2006 at 12:18
    Like it
    Up
    0
    Down
    Drop it
    ::

    I think that i found the problem.
    is missing a perl module “p5-DBD-Mysql” i have non installed.
    So it can not make the conections whith the database.

    The file pandora_server.conf its OK

    i will write when I am done

    Thank’s,

  • Anonymous

    Guest
    July 6, 2006 at 16:29
    Like it
    Up
    0
    Down
    Drop it
    ::

    I did it 🙂 .

    I installed the module ‘p5-DBD-Mysql’ and it works.

    Now I’m going to write all the steps for the installation . Is no’t difficult but under BSD you have to install all perl modules one by one from the ports source.

    Thank you again.

  • Anonymous

    Guest
    July 11, 2006 at 13:48
    Like it
    Up
    0
    Down
    Drop it
    ::

    I have installed pandoraon FreeBSD 🙂 .

    As soon as possible i will put the documentatio for the installations. it’s verry easy 🙂

    bye,
    doku