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 After migration 1.3.1 to 2.0, problems DB.pm/network modules – SOLVED

  • After migration 1.3.1 to 2.0, problems DB.pm/network modules – SOLVED

    Posted by daniels on December 11, 2008 at 06:06

    Hi Everybody.

    I migrate from 1.3.1 to 2.0 and everything seems to be ok. After changed all my agents to point to the new 2.0 Pandora FMS Server, I realized problems with the network modules and the follow strange message in the pandora_server error logs:
    “Use of uninitialized value in numeric lt (<) at /usr/lib/perl5/site_perl/5.8.8/PandoraFMS/DB.pm line 2255." The pratical result is no data from the defaults network modules (attached an example). During the migration I had to manualy enter 2 commands to make the migration works. The upgrade.php complained abount no collum named "disabled" at tagent_modulo table. I looked at the creation script and entered the alter table command below: ALTER TABLE tagente_modulo ADD disabled tinyint(1) unsigned default '0'; The command below was necessary too, and I found it in the docs. about migration to new 2.0 version: INSERT INTO `ttipo_modulo` VALUES (100,'keep_alive',-1,'KeepAlive','mod_keepalive.png'); Any tip about the problem or how to debug it? obs: I migrated from the vmware Ubuntu server 1.3 beta 2 to my CentOS production server. obs2: sorry about the big post...

    daniels replied 16 years, 2 months ago 4 Members · 9 Replies
  • 9 Replies
  • manu

    Member
    December 11, 2008 at 06:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Is the network server running (ps aux | grep -i pandora_network) ? Did you restart it after migrating?

  • daniels

    Member
    December 11, 2008 at 07:37
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Yes. I restarted it and restarted the pandora server itself. The network server is running (pid: 8650). By the way, the message “Use of uninitialized value in numeric lt (<) at /usr/lib/perl5/site_perl/5.8.8/PandoraFMS/DB.pm line 2255." appeared a lot of times in the error log…

  • daniels

    Member
    December 12, 2008 at 09:01
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Seems that the problem rises when the network modules are processed inside the function “sub export_module_data” (DB.pm). I suppose that the SQL query is not working when processing this modules. I’m having a hard time trying to debug this sub-function..

    Any tip about what could be wrong in the database upgrade process that booked this specific function? Any thing that point me to the right direction will be appreciated… I don’t wanna to throw away all the data that I have until now because of this problem only in the network modules….

  • Sancho

    Administrator
    December 14, 2008 at 19:18
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’ll forward to one of the developers of Export server functions to check that.

  • rnovoa

    Member
    December 15, 2008 at 05:09
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Daniels,

    I’ve just updated the SVN, update and restart the server. The ‘export_module_data’ code was not up to date in the 2.0 branch. If there are still any problems please let us know and we will try to fix them.

  • daniels

    Member
    December 16, 2008 at 08:05
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi rnovoa,

    Thank you. After the download of the new version from SVN, the message in the log error was vanished 😉

    Unfortunately, my problems with the database and/or network modules still remains… I have no idea why this is happenning… Any tips about what could be wrong will be appreciated.

    If I’m no be able to solve this problem, I will start from scratch with version 2.0 and keep an old version to query the old data… 🙁

  • daniels

    Member
    December 16, 2008 at 08:17
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi everybody,

    After I cleared my head about the doubts in the process of upgrade the database I could see what seems to be the problem. Reading again all post, I follow the tip gave by Manu (at the first post) about the Network Server. Digging it, i discovered a dependecy error (that i missed during the upgrade process) in the perl-Net-Ping module… Seems like this is the source of the problem.

    I will try to solve this and post here the results. Thanks a lot for your time and help.

  • daniels

    Member
    December 16, 2008 at 09:06
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    No dependency problems… The Net::Ping module is working… But a new message in the pandora_server.error should point-me to the right direction:

    DBD::mysql::st execute failed: MySQL server has gone away at /usr/local/bin/pandora_network line 549.

    The message appears lots of times…

  • daniels

    Member
    December 17, 2008 at 05:48
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    At last, problem solved!

    For some unknown reason, the Network-Server configured in the agents were not working. I just have to enter in each agent configuration module and hit “Update” to make the Network-Server start working.

    I suspect from the fact that the hostname of the pandora server was missing a middle part of the domainname. I corrected that yesterday, but the changed only reflected after the update in the agents that I did today.

    Thank you all for the help.