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 First time install – “A problem occurred when adding the module”

  • First time install – “A problem occurred when adding the module”

    Posted by catdude on December 10, 2014 at 20:49

    Greetings. I have just installed PandoraFMS 5.1 SP1 on a Centos 6.5 machine. I’ve created an agent for my first ffmpeg server following the tutorial at http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Remote_Monitoring. I then click on the Modules tab, “Create a new network server module”, and Create. I then select “Network Management”, “Host Alive”, assign a name of Host Alive, type of “Remote Network Agent, boolean data”, and click Create. I then get “ERROR: A problem occurred when adding the module. Processing error”.

    I don’t see any clues in /var/log/pandora/pandora_server.log, pandora_server.error, or pandora_agent.log. I verified that tentacle server is running.

    Any suggestions?

    smartin replied 10 years, 4 months ago 2 Members · 13 Replies
  • 13 Replies
  • smartin

    Member
    December 10, 2014 at 20:51
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    can you attach a screenshot? Have you written in the “Target IP”?

    Regards

  • catdude

    Member
    December 10, 2014 at 20:58
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Yes, I have entered the target IP. Screenshot attached.

  • smartin

    Member
    December 10, 2014 at 21:13
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Top right, in “Manual Setup”, select “Host Alive”. Therefore the module is created. When you select “Network Management” in the right combo, you have to select the type of network module you want to use.

    Regards

  • catdude

    Member
    December 10, 2014 at 21:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I did so (first screenshot attached), and still get the same error (second screenshot).

    Should there be clues in any log files? It doesn’t look like the files in /var/log/pandora have been updated in over an hour.

  • smartin

    Member
    December 10, 2014 at 21:28
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    It’s rare that you leave not create the module. I am creating like you and works for me.

    Can you tell me step by step how you’ve done?

    regards

  • catdude

    Member
    December 10, 2014 at 21:38
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    From Pandora console, I’m clicking Manage monitoring/Manage agents, selecting agent “ffmpeg1” (screenshot 1).  From “ffmpeg1 – Setup” window am clicking “Modules” tab. Select “Create a new network server module” then “Create”. In “Using module component” dropdown select “Network Management”, then select “Host Alive” from right-hand dropdown. Leave the “Name” field set to “Host Alive”, don’t check “Disabled”, select “Remote ICMP agent, boolean data”, leave “Module Group” set to Networking, leave “Warning status” and “Critical status” fields all untouched (zeros), leave “FF threshold” untouched, select “Historical data”, enter “Target IP” of 10.0.0.2, leave Port at default of 0, and click Create (screenshot 2). Result is shown in screenshot 3.

  • smartin

    Member
    December 10, 2014 at 21:46
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Try to do it in manual mode to see if the module is created. Select “Manual Setup” and type fields manually.

    Regards

  • catdude

    Member
    December 10, 2014 at 22:30
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    No, sorry, same results. Could I have misinstalled PandoraFMS in any way that could cause this?

  • catdude

    Member
    December 10, 2014 at 22:49
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’m not sure whether this is related, but I was clicking through other menu choices, and clicked on System Audit Log/System logfiles. In that window I see:
    /VAR/WWW/HTML/PANDORA_CONSOLE/PANDORA_CONSOLE.LOG (0.2 KB)

    [10-Dec-2014 09:14:29] PHP Warning:  array_fill(): Number of elements must be positive in /var/www/html/pandora_console/include/functions_custom_graphs.php on line 185

    ERROR
    Cannot find file(/var/log/pandora/pandora_server.log)
    ERROR
    Cannot find file(/var/log/pandora/pandora_server.error)

    Those last two puzzle me, as those files do exist:
    [root@wowza godmode]# ls -al /var/log/pandora/
    total 104
    drwxrwx—  2 pandora root  4096 Dec 10 04:11 .
    drwxr-xr-x. 22 root    root  4096 Dec  9 15:10 ..
    -rw-r–r–  1 root    root  986 Dec 10 09:37 pandora_agent.log
    -rw-r–r–  1 root    root 50375 Dec 10 04:11 pandora_agent.log-20141210.gz
    -rw-rw-rw-  1 root    root  164 Dec 10 09:36 pandora_server.error
    -rw-r–r–  1 root    root 28969 Dec 10 09:52 pandora_server.log

    Any idea what that first message (the “number of elements” one) means, and whether it indicates some sort of problem that might be affecting my ability to create modules? I’m running 5.1 SP1 build PC141031, just installed yesterday.

  • catdude

    Member
    December 11, 2014 at 01:30
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Update: I changed the ownership of the /var/log/pandora directory to apache:apache and restarted Pandora, and now the error messages reporting inability to access the log files is gone. The message about “number of elements must be positive” remains.

  • smartin

    Member
    December 11, 2014 at 14:03
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    hello,

    The owner of the logs must be root:root. Can you attach a copy of: pandora_server.log, pandora_server.error and agent log too.

    Regards

  • catdude

    Member
    December 11, 2014 at 19:08
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Attaching the log files.

    I’m thinking that my best approach now might be to uninstall PandoraFMS, remove all files, and reinstall. Since I don’t have agents or modules configured yet, that might be the simplest course.

  • smartin

    Member
    December 11, 2014 at 19:51
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    It’s weird …

    I agree with you. Try reinstalling the server and agents. Keep me posted with any developments.

    Regards

Start of Discussion
1 of 13 replies December 2014
Now