Pages: [1]   Go Down
Author Topic: Problem after installing .deb packs  (Read 694 times)
0 Members and 2 Guests are viewing this topic.
andres
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile
« on: May 21, 2009, 05:03:20 AM »

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

Code:
# /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!
Logged

raul
Administrator
Expert member
*****

Karma: 1
Offline Offline

Posts: 576



View Profile
« Reply #1 on: May 21, 2009, 09:10:55 AM »

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

$ export TZ=CET

From Date::Manip documentation:
Code:
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
« Last Edit: May 21, 2009, 09:11:32 AM by raul » Logged

andres
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile
« Reply #2 on: May 21, 2009, 09:21:03 AM »

Thank you!!!

ive been waitin for an answer allll morning!!! :D

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!!
Logged

raul
Administrator
Expert member
*****

Karma: 1
Offline Offline

Posts: 576



View Profile
« Reply #3 on: May 21, 2009, 09:35:42 AM »

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:

Code:
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
« Last Edit: May 21, 2009, 09:37:59 AM by raul » Logged

andres
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile
« Reply #4 on: May 21, 2009, 10:54:25 AM »

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!!!
« Last Edit: May 21, 2009, 10:55:29 AM by andres » Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST