Welcome to Pandora FMS Community › Forums › Community support › module component management
-
module component management
Posted by dranach on October 26, 2008 at 07:43Hi 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 91An 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
Tonidranach replied 16 years, 4 months ago 3 Members · 13 Replies -
13 Replies
-
-
::
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
-
-
-
-
-
::
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 -
::
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_ConsoleEven more, the Server Installer even give you all the dependencies you might need, as well as the console.
Cheers!
-
-
-
::
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 -
::
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 -