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 module component management

  • module component management

    Posted by dranach on October 26, 2008 at 07:43

    Hi all,

    I’m trying out SNMP with Pandora FMS.

    If I add an existing module to an agent and accordingly modify it, the module works like it should.

    But whenever I create a new module component in ‘Manage Modules > Module components’, I get following message:

    Notice: Undefined variable: plugin_user in /var/www/pandora_console/godmode/modules/manage_network_components.php on line 91
    Notice: Undefined variable: plugin_pass in /var/www/pandora_console/godmode/modules/manage_network_components.php on line 91
    Notice: Undefined variable: max_timeout in /var/www/pandora_console/godmode/modules/manage_network_components.php on line 91

    An example module I tried to create is listed here:
    module name: memTotalSwap
    module type: remote_snmp
    Group: UCD Mibs
    module group: system
    module interval: 900
    SNMP OID: .1.3.6.1.4.1.2021.4.3
    (everything else default)

    I don’t know if I am following the wrong procedure here, or if something went wrong with my Pandora FMS setup..
    (I’m still in testing phase, no production yet..)

    PS: the snmp setup between agent and management station is ok; I tested it with Getif and can get all the according data.

    Thanks for any help
    Toni

    dranach replied 16 years, 4 months ago 3 Members · 13 Replies
  • 13 Replies
  • raul

    Member
    October 26, 2008 at 10:40
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Could you tell us which is your linux distro and Pandora version? Did you get the last SVN snapshot?

    Raul

  • dranach

    Member
    October 26, 2008 at 12:02
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello Raul,

    Thanks for your quick reply.
    I’m using Debian Etch 4.0 r3; I installed Pandora using svn.
    I read at the bottom of the webconsole ‘Pandora FMS 2.1-dev – Build 081016’.
    My Debian-installation is based on a ‘standard system’.
    All the instructions for installing Pandora were based on the documentation.

    Everything else works like it should:
    – monitoring systems in local and remote networks with pandora agents
    – monitoring through snmp with the module components which are already present in Pandora (with some modifications like community string etc.)

    It goes wrong when I try myself making some new module components..
    I add line 90 and the offending line 91:

    90 $sql_insert=”INSERT INTO tnetwork_component (name, description, module_interval, type, max, min, tcp_send, tcp_rcv, tcp_port, snmp_oid, snmp_community, id_module_group, id_group, id_modulo, plugin_user, plugin_pass, plugin_parameter, max_timeout)
    91 VALUES (‘$name’, ‘$description’, ‘$module_interval’, ‘$type’, ‘$modulo_max’, ‘$modulo_min’, ‘$tcp_send’, ‘$tcp_rcv’, ‘$tcp_port’, ‘$snmp_oid’ ,’$snmp_community’, ‘$id_module_group’, ‘$id_group’, ‘$id_modulo’, ‘$plugin_user’, ‘$plugin_pass’, ‘$plugin_parameter’, ‘$max_timeout’)”;

    Toni

  • manu

    Member
    October 26, 2008 at 13:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I will try that tomorrow morning, I have the latest svn code in my laptop, so I’ll get back to you with my tests 🙂

  • manu

    Member
    October 27, 2008 at 03:16
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Umm, it works for me without a problem, with the latest SVN code and the latest svn structure

  • dranach

    Member
    October 27, 2008 at 04:52
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’ll try and install everything again then.. Did you start from a Debian standard install?
    And is there anywhere I can look if perhaps there is any dependency not met?

    Toni

  • manu

    Member
    October 27, 2008 at 04:55
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    All the dependencies are shown in the console and in the server installer.
    I’m using ubuntu 8.04

    Make sure you get the latest svn code from the trunk

  • dranach

    Member
    October 28, 2008 at 09:45
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello manu,

    I tried installing it on ubuntu 8.04 (default LAMP and SSH), with the latest svn code, but still no luck.

    On a side note:
    Pandora FMS has a great potential to be a great product, but at the moment I am experiencing a lot of frustration.
    There is too much guesswork involved.
    I teach network technology with basic knowledge of linux. These past weeks I have developed a lot of knowledge on linux (debian) and mysql, in my search for an opensource NMS.
    But still I lack some clear, one-shot instructions on the basic installation of Pandora FMS.
    I guess it would be much easier for us ‘newbies’ if the instructions would start from a vanilla linux-installation (whichever!), stating all the dependencies, and work the way up to a complete and working installation. The installation instructions seem to be for the moment too much of a patchwork.

    Back on topic:
    I’ll start a new installation, trying out a different approach..

    cheers
    Toni

  • manu

    Member
    October 28, 2008 at 10:14
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi amini,

    Are you still getting that error? That’s weird I can’t see it anywhere in here.

    I agree PandoraFMS is complicated, but I have to tell you though that if you copy&paste these instructions pretty much you’ll have your pandora running:
    http://www.openideas.info/wiki/index.php?title=Pandora_2.0:Documentation_en:Install_Server
    http://www.openideas.info/wiki/index.php?title=Pandora_2.0:Documentation_en:Install_Console

    Even more, the Server Installer even give you all the dependencies you might need, as well as the console.

    Cheers!

  • manu

    Member
    October 28, 2008 at 10:16
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hold on,

    I think I got your bug

  • manu

    Member
    October 28, 2008 at 10:19
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Working on it already, we’ll fix it in a moment 🙂

    At least the module is created correctly, so it’s just an ungly notice 🙂

  • manu

    Member
    October 28, 2008 at 10:29
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Fixed,

    Update your svn or change your /var/www/pandora/godmode/modules/manage_network_components with this one:
    http://pandora.svn.sourceforge.net/viewvc/pandora/trunk/pandora_console/godmode/modules/manage_network_components.php

  • dranach

    Member
    October 28, 2008 at 11:49
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello Manu,

    Indeed, it could be a bug, because apparently the messages I get when creating a new snmp module don’t have any effect on the module itself. It seems everything works ok now.
    I still got nevertheless these annoying messages every time a created a module.

    Anyway, I reverted back to debian 4.0, and everything works till now in a satisfactory way (except for the error messages)..

    I’m going to try the solution right away!

    cheers
    Toni

  • dranach

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

    Problem solved in every respect.
    No more ugly messages!

    Thanks
    Toni