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 None of the network modules initialize

  • None of the network modules initialize

    Posted by tiainpa on January 17, 2011 at 13:43

    I recently installed Pandora FMS and for the most part it is working quite nicely. The master server is on Ubuntu 10.04.1 and the agents are on Windows XP and Red Hat Enterprise Linux 5.5.

    I have also agent running in the monitoring machine to check if the other agents are alive via ICMP echoing. I set these alive checks via web console already a while back, but they are still in ‘Not init’ state. Same thing with one other Red Hat’s network module, it’s not initializing at all.

    To my knowledge, the master server is running network server as it is shown with green status in the tactical view – however with 0% load.

    What could I try to get the pings & latency checks working?

    Thank you in advance!

    -Pasi

    luismi replied 13 years, 10 months ago 2 Members · 14 Replies
  • 14 Replies
  • luismi

    Member
    January 17, 2011 at 20:09
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi tiainpa,

    Have you tried to reset pandora server? If it not works, then you should try doing it from the server, in the terminal to be sure that the monitorized machine is really accesible from pandora server.

    Be sure too that the machines that doesn’t report, has its firewall disable.

    Cheers.

  • tiainpa

    Member
    January 19, 2011 at 17:11
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Pandora server reset was one of the first things I tried, but it doesn’t help.

    I logged in to the machines which should do the ping testing with network modules in Pandora, and they can send and receive ping packets just fine against the tested machines.

    I cannot disable any firewalls because of the company policy, but I don’t see it would make any difference.

    BTW, this is the only error I see in the pandora_server.error:
    Use of uninitialized value in string ne at /usr/lib/perl5/PandoraFMS/Core.pm line 793.

  • luismi

    Member
    January 27, 2011 at 15:31
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi tiainpa,

    It seems to be an error in the Core.pm file. I’m going to find the what is the problem and I’ll notice you.

    Regards.

  • luismi

    Member
    January 27, 2011 at 17:01
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello,

    Can you try replacing your Core.pm by this one? Before that, search where is this file and then make a backup of your current Core.pm, rename it for example:

    # find / -name Core.pm
    # mv Core.pm Core.pm.bk
    

    Put the file attached in the same path before and test it.

    Cheers.

  • tiainpa

    Member
    January 27, 2011 at 18:01
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks, but the file attached seems to be empty?

    -Pasi

  • luismi

    Member
    January 28, 2011 at 13:05
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Sorry tiainpa,

    I attached the file again.

    Regards.

  • tiainpa

    Member
    January 28, 2011 at 13:39
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Luis,

    Thanks, now there was something in the file 🙂

    However, now the Pandora server doesn’t start at all, here’s the info it prints out:
    Subroutine pandora_ping redefined at /usr/lib/perl5/PandoraFMS/Core.pm line 1355.
    Subroutine pandora_ping_latency redefined at /usr/lib/perl5/PandoraFMS/Core.pm line 1371.
    Not enough arguments for PandoraFMS::Core::pandora_create_agent at /usr/lib/perl5/PandoraFMS/ReconServer.pm line 225, near “$dbh)”
    Not enough arguments for PandoraFMS::Core::pandora_create_agent at /usr/lib/perl5/PandoraFMS/ReconServer.pm line 234, near “$dbh)”
    Compilation failed in require at /usr/bin/pandora_server line 35.
    BEGIN failed–compilation aborted at /usr/bin/pandora_server line 35.
    Cannot start Pandora FMS Server. Aborted.
    Check Pandora FMS log files at ‘/var/log/pandora/pandora_server.error & pandora_server.log’

    There’s nothing in the server.log and server.error files.

    -Pasi

  • luismi

    Member
    January 28, 2011 at 14:06
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ok tiainpa,

    Then, restore your backup Core.pm and attached it here to test it, please.

    Thanks.

  • tiainpa

    Member
    January 28, 2011 at 15:01
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Here you go, my original Core.pm file attached.

  • luismi

    Member
    January 28, 2011 at 16:12
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Modify Core.pm adding this line:

    $XML::Simple::PREFERRED_PARSER=’XML::Parser’;

    In this context:

    use DBI;
    use XML::Simple;
    use HTML::Entities;
    use Time::Local;
    use POSIX qw(strftime);
    
    $XML::Simple::PREFERRED_PARSER='XML::Parser';
    

    Reboot Pandora server and test it.

    Cheers.

  • tiainpa

    Member
    January 28, 2011 at 16:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I think there is already that line in the original Core.pm file:

    use DBI;
    use XML::Simple;
    use HTML::Entities;
    use Time::Local;
    use POSIX qw(strftime);
    
    # Force XML::Simple to use XML::Parser instead SAX to manage XML
    # due a bug processing some XML with blank spaces.
    # See http://www.perlmonks.org/?node_id=706838
    
    $XML::Simple::PREFERRED_PARSER='XML::Parser';

    .. Or am I missing something here?

  • luismi

    Member
    January 31, 2011 at 19:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi tiainpa,

    Sorry for the delay.

    I dont know what is happening right now, but I’ll see it to find the problem.

    Bye.

  • tiainpa

    Member
    February 8, 2011 at 13:36
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Luis (and others),

    Anybody have an idea of the solution yet?

    We’re missing quite essential function in our Pandora system 🙁

    Cheers,
    -Pasi

  • luismi

    Member
    February 9, 2011 at 21:11
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Sorry tiainpa,

    I’m searching for a solution.

    Regards.