Welcome to Pandora FMS Community!

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

  • Pandora_server error

    Posted by Chris on July 3, 2007 at 00:30

    Hello,
    I’m trying to get Pandora 1.3 B1 to work on a Fedora Core5 freshly installed. I’ve solved all the dependencies but when I try to run pandora_server it gives the following output:
    ======================
    service pandora_server start
    Can’t locate Time/Format.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8 .8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-mult i /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_per l/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread -multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/sit e_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/ lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_per l/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thr ead-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl 5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i38 6-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /u sr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_per l/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/l ib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendo r_perl/5.8.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-m ulti /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/PandoraFMS/DB.pm line 2 2.
    BEGIN failed–compilation aborted at /usr/lib/perl5/site_perl/PandoraFMS/DB.pm l ine 22.
    Compilation failed in require at /usr/lib/perl5/site_perl/PandoraFMS/Config.pm l ine 24.
    BEGIN failed–compilation aborted at /usr/lib/perl5/site_perl/PandoraFMS/Config. pm line 24.
    Compilation failed in require at ./pandora_server.pl line 34.
    BEGIN failed–compilation aborted at ./pandora_server.pl line 34.
    Cannot start Pandora FMS Data Server. Aborted
    =========================
    It’s strange because I’ve installed with yum all the perl modules it required and it installed perfectly after that from the rpm package.
    Please advise since I’m not too good at perl. I’ve tried to search for that error at the beggining but no luck.
    Thank you!
    Chris V

    manu replied 17 years, 7 months ago 2 Members · 21 Replies
  • 21 Replies
  • manu

    Member
    July 3, 2007 at 02:55
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Yep, that’s quite common well known error in Fedora Core 5, I’m afraid.
    Go to /usr/lib/perl5/5.XXXXX/ where the XXX is your perl version
    And then, there, create the dir Time/ (maybe it’s already created) and placed there your Format.pm (use locate Format.pm to see where do you have it now, but I guess you don’t have it actually)
    Just in case you don’t have Format.pm take this one: http://search.cpan.org/src/GBARR/TimeDate-1.16/lib/Date/Format.pm

    Cheers

  • Chris

    Member
    July 3, 2007 at 03:46
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi manu,
    I will be gone for 2 days but I’ll test this as soon as I get back and let you know how it went. At a first look it appears that it will solve the problem.
    Thanks!
    Chris

    PS: OpenSuSE 10.2 is a paint in the @@@ at the package management.
    I was running from error into another. With Fedora 5 everything in went damn smooth until this error.

  • manu

    Member
    July 3, 2007 at 12:47
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The problem with the perl-Time RPM package in Fedora is that it one which includes Format.pm is perl-TimeDate but it put the Format.pm into Date/ not into Time/ 🙂

    So, what I wrote will solve the problem, it’s not as clean as we’d desired but it does the trick though

    Let me know what happened in the end.

    All the best

  • Chris

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

    It worked! 😀
    Ups, I’ve run in another problem….working on it right now. I’ll let you know how I fixed it etc.
    Thanks for the solution!
    Chris

  • Chris

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

    I’m talking here about getting the server component up&running.
    Next come the console and the agent and I hope to get them running without too much pain.
    So the error I was telling about above is something like:
    “install_driver(mysql) failed: Can’t locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/sit”

    A simple: yum install perl-DBD-MySQL and job done! 😀
    More to come.
    Update: yum install php-snmp to solve a dependency seen only when you try to configure pandora_console.
    U2: There was a slightly thing because I’ve created manually the database and imported the .sql files. At the first configuration from pandora_console it failed to create the database again after it previously deleted it.

  • Chris

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

    When I’m trying to start pandora_server I get the following :
    [code:1]

  • Pandora FMS Server [FedoraC5_Data] is running and operative
  • Cannot start Pandora FMS Data Server. Aborted
    I’ve tried to run under pandora user and under root but no luck,
    /var/log/pandora_server.error is empty
    Here is the last 2 lines in /var/log/pandora_server.log:
    [code:1]2007/07/05 03:49:19 FedoraC5_Data Launching Pandora FMS Data Server 1.3-dev PS070615
    2007/07/05 03:49:19 FedoraC5_Data [V2] Config options: Logfile at /var/log/pandora_server.log, Basepath is /usr/share/pandora_server, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 15 sec, verbosity at 10, Alert Threshold at 45, ServerName is ‘FedoraC5_Data’
    Strange thing is that I could start it at first but now it gives this error.
    Please advise.
    Thanks!

  • manu

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

    When I’m trying to start pandora_server I get the following :
    [code:1]

  • Pandora FMS Server [FedoraC5_Data] is running and operative
  • Cannot start Pandora FMS Data Server. Aborted
    I’ve tried to run under pandora user and under root but no luck,
    /var/log/pandora_server.error is empty
    Here is the last 2 lines in /var/log/pandora_server.log:
    [code:1]2007/07/05 03:49:19 FedoraC5_Data Launching Pandora FMS Data Server 1.3-dev PS070615
    2007/07/05 03:49:19 FedoraC5_Data [V2] Config options: Logfile at /var/log/pandora_server.log, Basepath is /usr/share/pandora_server, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 15 sec, verbosity at 10, Alert Threshold at 45, ServerName is ‘FedoraC5_Data’
    Strange thing is that I could start it at first but now it gives this error.
    Please advise.
    Thanks!

    Try to run the server without the daemon option:

    /usr/share/pandora_server/bin/pandora_server.pl /usr/share/pandora_server

    And see what happen

  • manu

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

    I’m talking here about getting the server component up&running.
    Next come the console and the agent and I hope to get them running without too much pain.
    So the error I was telling about above is something like:
    “install_driver(mysql) failed: Can’t locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/sit”

    A simple: yum install perl-DBD-MySQL and job done! 😀
    More to come.
    Update: yum install php-snmp to solve a dependency seen only when you try to configure pandora_console.
    U2: There was a slightly thing because I’ve created manually the database and imported the .sql files. At the first configuration from pandora_console it failed to create the database again after it previously deleted it.

    Speaking about the console problem

    You firstly created the database manually and then tried with the pandora_console?
    Or you tried with the pandora_console, it failed and you did it manually?
    What did the pandora_console say about the error? Your credentials were right?

  • Chris

    Member
    July 5, 2007 at 21:57
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Try to run the server without the daemon option:

    /usr/share/pandora_server/bin/pandora_server.pl /usr/share/pandora_server

    And see what happen

    Yep, it started without a problem.
    Ouch, I looked into the error log after it started and it was saying that
    [FATAL] Cannot open Incoming data directory at /opt/pandora_server/data_in: No such file or directory at /usr/share/pandora_server/bin/pandora_server.pl line 77.
    I’ve created the folder and restarted everything related to pandora and it appears to be working now as a daemon. 😀
    You are the best!

  • Chris

    Member
    July 5, 2007 at 22:00
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Speaking about the console problem

    You firstly created the database manually and then tried with the pandora_console?
    Or you tried with the pandora_console, it failed and you did it manually?
    What did the pandora_console say about the error? Your credentials were right?

    Well I’ve followed the installation manual for 1.2 version and there it stated to create the db manually and import the 2 .sql files.
    That was exactly what I did but at the first run of pandora console from web interface it tried to delete&create the database again…
    I’ve accepted and it deleted succesfully the db but it failed to create it.
    I’m not proud but I’m using the root account.. I know I know.. it’s not good but I’m a Windows Sys Admin and I’m doing my best at linux. 😀
    I hope you understand my explanation. Feel free to ask for more details if you want.
    Regards,
    Chris

  • Chris

    Member
    July 5, 2007 at 22:08
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Oh almost forgot – please help me to generate the public key required.
    I’ve ran ssh-keygen -t dsa and copied the content of the id_dsa.pub to the authorization file + set permissions on it but it keeps saying that

    The authenticity of host ‘oneanonhost’ can’t be established.
    RSA key fingerprint is 95:37:11:f2:29:4a:91:8d:16:c3:ce:03:74:4d:9f:6a.
    Are you sure you want to continue connecting (yes/no)?

  • manu

    Member
    July 5, 2007 at 22:09
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Try to run the server without the daemon option:

    /usr/share/pandora_server/bin/pandora_server.pl /usr/share/pandora_server

    And see what happen

    Yep, it started without a problem.
    Ouch, I looked into the error log after it started and it was saying that
    [FATAL] Cannot open Incoming data directory at /opt/pandora_server/data_in: No such file or directory at /usr/share/pandora_server/bin/pandora_server.pl line 77.
    I’ve created the folder and restarted everything related to pandora and it appears to be working now as a daemon. 😀
    You are the best!

    Brilliant!
    In fact, it was our bad, cause /opt/pandora_server/data_in was the default dir for the 1.2 version and we forgot to change it by default in the pandora_server.conf file.
    We already solved that “bug”
    I advice you to create /var/spool/pandora/data_in in the server machine cause that’s the default dir for 1.3 version. And obviusly, change that in the pandora_server.conf and agents…
    Because if you’re going to update to Beta2 and Final release you’ll have to face that problem

    Cheers

  • manu

    Member
    July 5, 2007 at 22:10
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Speaking about the console problem

    You firstly created the database manually and then tried with the pandora_console?
    Or you tried with the pandora_console, it failed and you did it manually?
    What did the pandora_console say about the error? Your credentials were right?

    Well I’ve followed the installation manual for 1.2 version and there it stated to create the db manually and import the 2 .sql files.
    That was exactly what I did but at the first run of pandora console from web interface it tried to delete&create the database again…
    I’ve accepted and it deleted succesfully the db but it failed to create it.
    I’m not proud but I’m using the root account.. I know I know.. it’s not good but I’m a Windows Sys Admin and I’m doing my best at linux. 😀
    I hope you understand my explanation. Feel free to ask for more details if you want.
    Regards,
    Chris

    Since 1.3 Web Console beta version you won’t have to create the database manually anymore, as you saw, there’s a wizard to create the database in just a few clicks 🙂

  • manu

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

    Oh almost forgot – please help me to generate the public key required.
    I’ve ran ssh-keygen -t dsa and copied the content of the id_dsa.pub to the authorization file + set permissions on it but it keeps saying that

    The authenticity of host ‘oneanonhost’ can’t be established.
    RSA key fingerprint is 95:37:11:f2:29:4a:91:8d:16:c3:ce:03:74:4d:9f:6a.
    Are you sure you want to continue connecting (yes/no)?

    The ssh-keys are one of the biggest thing pandora users have to deal with, don’t know why, actually 🙂

    Let’s see, sure that your authorized_keys has 600 as perms? What about /home/user/.ssh/
    That dir must have 644.

    Remember that the user who’s gonna connect to the remote server is pandora.

    take a look here
    http://www.openideas.info/wiki/index.php?title=Pandora:FAQ#My_Pandora_FMS_Agents_don.27t_connect_with_Pandora_FMS_server.2C_or_my_Pandora_FMS_Agents_ask_me_for_SSH_password_when_try_to_connect._Implementing_SSH_authentication

  • Chris

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

    The ssh-keys are one of the biggest thing pandora users have to deal with, don’t know why, actually 🙂

    Let’s see, sure that your authorized_keys has 600 as perms? What about /home/user/.ssh/
    That dir must have 644.

    Remember that the user who’s gonna connect to the remote server is pandora.

    take a look here

    Yes, I saw that many users were having problems with this when I was trying ver. 1.2. I guess I was to tired to do some work on how to solve this. 🙂
    I’ve followed the steps you said and follow the indications from that link and it appears to work now… somehow… the thing is that it’s asking for the pandora@server password everytime it tries to connect to the server. The server and the agent are on the same server.
    Can you please advise me with this thing too? 🙂

  • Chris

    Member
    July 5, 2007 at 22:53
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Since 1.3 Web Console beta version you won’t have to create the database manually anymore, as you saw, there’s a wizard to create the database in just a few clicks 🙂

    Yeah, it’s damn cool indeed. 😀
    If you can make a visible link of how to generate and use the key it would be wonderful. 😛 😀

  • manu

    Member
    July 5, 2007 at 22:57
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Which key?
    Am I missing something?

  • Chris

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

    Which key?
    Am I missing something?

    ssh-key. 😀
    How to generate and use it. 😀
    It was a note to the problem that me and lots of other people are having.

  • manu

    Member
    July 5, 2007 at 23:36
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
  • Chris

    Member
    July 5, 2007 at 23:42
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You didn’t see my previus post, did you? 🙂
    Anyways, here it is:
    http://www.openideas.info/wiki/index.php?title=Pandora:FAQ#My_Pandora_FMS_Agents_don.27t_connect_with_Pandora_FMS_server.2C_or_my_Pandora_FMS_Agents_ask_me_for_SSH_password_when_try_to_connect._Implementing_SSH_authentication

    Ahh 🙂 I saw it and followed that steps – I replied to the key issue too saying that now it’s asking for the pandora user password everytime the agent connects to the server.
    ———-
    That was a suggestion to include a visible link at the installation process so that people will know what do to exactly to get the key working. 😉

  • Page 1 of 2