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 Confused Where To Add Module Code

  • Confused Where To Add Module Code

    Posted by Tux on February 10, 2011 at 11:03

    Hi all,

    I have setup PandoraFMS and it is running very well for a good week now. I have looked through lots of documentation, but I still cannot understand how to install or setup a new module in the PandoraFMS console. For example, module code between module_begin and module_end

    I want t add a new module for Stock with:
    module_begin
    module_name Google_Stock
    module_type generic_data
    module_description Stock value of Google (GOOG) in Nasdac
    module_exec echo -e “GET http://download.finance.yahoo.com/d/quotes.csv?s=GOOG&f=sl1d1t1c1ohgv&e=.csv HTTP/1.0nn” | nc -w 10 download.finance.yahoo.com 80 | tail -1 | cut -f 2 -d “,”
    module_end

    I am under the impression that we need to make a .pspz out of a new made text file containing the module code and upload it through the console this way, but I am probably mistaken.

    This is pretty much where I am stuck at with PandoraFMS. Everything else is working great and I am monitoring all my servers and workstations. Thanks in advance.

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

    Member
    February 10, 2011 at 14:20
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello Tux,

    Pandora can monitor in two ways:

    – By software agents, that have to be installed in the monitorized machine and it has a configuration file where you can setup all modules (module_begin/module_end)

    – By agents that you create in pandora console. You can do several checks using network server, plugin server or wmi server for example.

    In your case, you have to install a software agent in the machine and setup the configuration file (/etc/pandora/pandora_agent.conf) adding your new module. After this, restart pandora_agent.

    On the other hand, you can make a plugin to do this check, and use it with a agent (remote) with a plugin server module.

    Regards.

  • Tux

    Member
    February 10, 2011 at 16:22
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Luismi,

    Thanks a lot for your explanation. I went ahead and configured my pandora_agent.conf with new modules in it, and then restarted the software agent. From the console, I cannot seem to locate the new module I added. When I go to ‘manage modules’ I cannot find the new modules. I tried to check the list of available modules to add to an available agent with no luck. Am I missing something here?

  • luismi

    Member
    February 10, 2011 at 17:07
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Tux,

    The new module isn’t in manage modules.

    Manage modules is where you have a “library” with yours modules, both local components and network components. It is useful for example when you have a policy with several agents (software agents) and you want to add a new module in all agent configuration files (like you have done with the new module). Then you can to add the module (in local component) to the policy, and automatically it update all agent configuration files (agents must have remote configuration enabled).

    In your case, the new module will have been created in the agent with the same name that the machine where the update agent is running (in View agents -> Agent Detail).

    Cheers.