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 Advanced troubleshooting Problem after installing .deb packs

  • Problem after installing .deb packs

    Posted by andres on May 21, 2009 at 08:03

    Hello, I’ve been trying to install Pandora since Monday, at first from source and yesterday with the .deb packs. The packs are really useful since they save great amounts of time and makes things waay easier.

    Anyway, after dpkg all the packs; i edited the pandora_server.conf file and then went to the terminal to start the server. I typed /etc/init.d/pandora_server start and got the following

    # /etc/init.d/pandora_server start
    
    Pandora FMS Data Server 2.1.1 Build PS090430 Copyright (c) 2004-2009 ArticaST
    This program is OpenSource, licensed under the terms of GPL License version 2.
    You can download latest versions and documentation at http://www.pandorafms.org 
    
     
  • Server basepath is /etc/pandora/pandora_server.conf
  • External ICMP is 0
  • Server logfile at /var/log/pandora/pandora_server.log
  • Server errorlogfile at /var/log/pandora/pandora_server.error
  • Server incoming directory at /var/spool/pandora/data_in
  • Server keepalive 45
  • Server threshold 5
  • You are running Pandora FMS Data Server.
  • This server is running in MASTER mode.
  • ERROR: Date::Manip unable to determine Time Zone. at /usr/local/share/perl/5.8.8/Date/Manip.pm line 3666 Date::Manip::Date_TimeZone() called at /usr/local/share/perl/5.8.8/Date/Manip.pm line 693 Date::Manip::Date_Init() called at /usr/local/share/perl/5.8.8/Date/Manip.pm line 816 Date::Manip::ParseDateString('today') called at /usr/local/share/perl/5.8.8/Date/Manip.pm line 1809 Date::Manip::UnixDate('today', '%Y/%m/%d %H:%M:%S') called at /usr/share/perl5/PandoraFMS/Tools.pm line 278 PandoraFMS::Tools::logger('HASH(0x88097a4)', 'Launching Pandora FMS Data Server 2.1.1 PS090430', 0) called at /usr/share/perl5/PandoraFMS/Config.pm line 520 PandoraFMS::Config::pandora_loadconfig('HASH(0x88097a4)', 0) called at /usr/bin/pandora_server line 61 Cannot start Pandora FMS Data Server. Aborted.

    I am running this command as root and on Ubuntu 8.04 LTS

    Is there enything else I need to do before I try running this? like change something else in pandora_server.conf or somewhere else?

    Any help is greatly appreciated! Thank you!

    andres replied 15 years, 7 months ago 2 Members · 4 Replies
  • 4 Replies
  • raul

    Member
    May 21, 2009 at 12:10
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Set your TimeZone as a shell variable, as an example, if your TimeZone is CET:

    $ export TZ=CET

    From Date::Manip documentation:

    Date::Manip must be able to determine the timezone the user is in. It does this by looking in the following places:
           $Date::Manip::TZ (set with Date_Init or in Manip.pm)
           $ENV{TZ}
           the unix `date` command (if available)
           $main::TZ
           /etc/TIMEZONE
           /etc/timezone
    

    Other timezones: http://search.cpan.org/~sbeck/Date-Manip-5.54/lib/Date/Manip.pod#TIME_ZONES

    Raúl

  • andres

    Member
    May 21, 2009 at 12:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thank you!!!

    ive been waitin for an answer allll morning!!! 😀

    now i have one last question…my path to index.php is /usr/share/pandora-console/index.php

    so, wat would be the correct URL to start the console?? is it: http://localhost/usr/share/pandora-console/index.php

    Thanx again!!

  • raul

    Member
    May 21, 2009 at 12:35
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    No, this is an Apache issue, but I’m trying to explain:

    Your Apache Server has to reach the pandora_console directory. As you’re using Ubuntu, go to /etc/apache2/sites-available directory and create a new file pandora_console, containing, for example, and following that you have it at /usr/share/pandora-console/ something like this:

     Alias /pandora_console "/usr/share/pandora_console"
     
     Options MultiViews FollowSymLinks
     AllowOverride None
     Order allow,deny
     allow from all
     
    

    (You can also add logging if you put in a VirtualHost:

    ErrorLog /var/log/apache2/pandora_console_error.log
    LogLevel warn
    CustomLog /var/log/apache2/pandora_console_access.log combined
    )

    Then, go to /etc/apache2/sites_enabled and link pandora_console:

    root@triste:/etc/apache2/sites-enabled# ln -s ../sites-available/pandora_console pandora_console

    Then you’ll see the link:

    root@triste:/etc/apache2/sites-enabled# ls -la
    total 7
    drwxr-xr-x 2 root root 4096 2009-05-21 19:34 .
    drwxr-xr-x 7 root root 4096 2009-04-30 11:57 ..
    lrwxrwxrwx 1 root root 24 2008-11-06 19:13 alias -> ../sites-available/alias
    lrwxrwxrwx 1 root root 26 2009-02-02 17:15 charles -> ../sites-available/charles
    lrwxrwxrwx 1 root root 27 2009-02-24 13:26 integria -> ../sites-available/integria
    lrwxrwxrwx 1 root root 26 2008-11-06 19:13 pandora_console -> ../sites-available/pandora_console
    lrwxrwxrwx 1 root root 29 2008-11-06 19:13 phpmyadmin -> ../sites-available/phpmyadmin
    lrwxrwxrwx 1 root root 30 2008-11-06 19:14 sqldesigner -> ../sites-available/sqldesigner
    lrwxrwxrwx 1 root root 23 2008-11-06 19:14 wiki -> ../sites-available/wiki
    lrwxrwxrwx 1 root root 24 2008-11-06 19:14 yixue -> ../sites-available/yixue

    Next, restart apache and access Pandora Console using http://localhost/pandora_console

    Hope it helps.

    Raúl

  • andres

    Member
    May 21, 2009 at 13:54
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    OMG! THANX SOOO MUCH!!

    this is the first time i could actually get to the web console!!! I can’t thank you enough!!

    and i managed to log in!! thank you!!!