Welcome to Pandora FMS Community!

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

  • Apache setup

    Posted by skidmark on September 5, 2007 at 12:50

    Hey folks

    I’m not too experienced with Apache, Perl or even Linux. I work mostly with network design and support. So I wanted to implement some sort of monitoring, and Pandora seemed like an OK choice.

    But I used to think I could follow a manual letter by letter, until now that is…

    Is there alot of configuration required that isn’t covered in the quick installation guide. As in, does it require arbitrary configuration of Apache or anything of the kind?

    I am running on Ubuntu.

    skidmark replied 17 years, 5 months ago 3 Members · 8 Replies
  • 8 Replies
  • Sancho

    Administrator
    September 5, 2007 at 13:25
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hey folks

    I’m not too experienced with Apache, Perl or even Linux. I work mostly with network design and support. So I wanted to implement some sort of monitoring, and Pandora seemed like an OK choice.

    But I used to think I could follow a manual letter by letter, until now that is…

    Is there alot of configuration required that isn’t covered in the quick installation guide. As in, does it require arbitrary configuration of Apache or anything of the kind?

    I am running on Ubuntu.

    If you’re working with ubuntu, you don’t need to “adjust” or configure neither apache or PHP, simple install all dependencies:

    apt-get install apache2 libapache2-mod-php5 php5-mysql mysql-server php-pear php5-gd php5-snmp snmp snmptrapd snmpd

    This should install all server and console dependencies in your system in a Ubuntu server. Perl dependencies are detailed on Quick Install Guide

    (I’ve added this question to our FAQ)

    I hope this helps

    Best regards,

  • skidmark

    Member
    September 5, 2007 at 14:29
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Right, I’m through the quick install guide and everything as far as i know. But I’m unsure about this line to access the web console.

    “h.ttp://://index.php”

    I did it with port 80 and 22 for good measure, but my firefox seems to block the ssh protocol…. And comes up with a 404 when I do it with port 80. Any idea as to what I’ve screwed up?

  • skidmark

    Member
    September 5, 2007 at 14:31
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    By the way, the period in the link was just to break it since my new account won’t let me post links.

  • raul

    Member
    September 5, 2007 at 15:11
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You have to posts several times more before let post links… just to avoid spam 😀

    About the url, where did you installed your pandora_console?

    This is not an Apache forum but Apache2 in Ubuntu is configured in the /etc/apache2/apache2.conf file.

    In the same directory you can see the “sites-enabled” directory, where there is a link (000-default) to the “sites-available/default” file, where you can configure the “Document Root” directive, by default, /var/www.

    On summary (in Ubuntu):

    – Download Pandora_Console tar.gz file.
    – Extract (tar -zxvf ****)
    – COPY the pandora_console directory TO /var/www/
    – Review permissions.

    Then you’ll access the console using:

    http://localhost/pandora_console/index.php

    That’s all.

    Raul

  • skidmark

    Member
    September 5, 2007 at 15:46
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Right, I copied pandora_console to /var/www, but now I get a message saying:

    Fatal error: Call to undefined function mysql_pconnect() in /var/www/pandora_console/include/config.php on line 42

    This is getting more and more fun 😛

  • raul

    Member
    September 5, 2007 at 17:37
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    This function is a PHP one. This should be installed in the php5-mysql package.

    Did you installed that package?
    Remember, as root, from command line (you can also use the package manager from X Windows), install ALL dependencies:
    [code:1]apt-get install apache2 libapache2-mod-php5 php5-mysql mysql-server php-pear php5-gd php5-snmp snmp snmptrapd snmpd

    Any more “Call to undefined function …” are due to dependencies not installed.

    You can also try the new VMWare image, that has all the servers ready and configured, see the News forum.

    Raul

  • Sancho

    Administrator
    September 5, 2007 at 19:17
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Right, I copied pandora_console to /var/www, but now I get a message saying:

    Fatal error: Call to undefined function mysql_pconnect() in /var/www/pandora_console/include/config.php on line 42

    This is getting more and more fun 😛

    Easy!, for that I have a quick solution 🙂

    apt-get install php5-mysql
    /etc/init.d/apache2 stop
    /etc/init.d/apache2 start

    If you have php5 module already installed, be sure to stop and start apache, a simple restart is not enought. If that dont work, check php.ini and be sure that mysql module is loaded.

  • skidmark

    Member
    September 10, 2007 at 14:15
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Fantastic! That made the web console pop up without a hitch. Now on to installing agents. Thanks for the help guys.