Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

  • Adding Remote Modules

    Posted by nshobe on April 14, 2014 at 23:55

    I’ve created a script that checks SSL validity of a host (by URL name) and I intended to use it as a module in pandora. I plan on making a few modules that I can easily add to agents. These agents are all websites my company operates and our servers are remote. I need to be able to check on several aspects WITHOUT installing remote agent software. I’m trying to keep as much as possible completely self-contained on the Pandora Server side.

    Here’s my problem: Where on earth do I install my script and how on earth do I add it into the interface? The idea of creating a script for a agent software seems extremely easy, and damn near impossible for remote agents. Why so? It seems like a module should be a module, and some are simply polled by other machines. Where’s a .conf file that allows me to declare a module when wanting to make a remote agent module?

    If I can get this working I hope to create AT LEAST the following modules, and do so better than the ones I’m finding in the module library that usually have zero error handling:

    SSL: Remaining days before expiration
    SSL: Boolean of existence
    WHOIS: Registration Expiration
    UpCheck: Is the server REALLY up? (pull page info that can’t be DNS cached)

    ivo_yordanov replied 11 years ago 2 Members · 3 Replies
  • 3 Replies
  • ivo_yordanov

    Member
    April 15, 2014 at 11:47
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    To add the script to an agent open the pandora_agent.conf file and add the following line:
    module_plugin /path_to_the_plugin/plugin_name  (execution parameters needed)
    Then restart the agent and the script will be installed in the agent.
    Keep in mind that the result of the script must be in xml format in order that the data server can understand it.

    Regards
    Ivo

  • nshobe

    Member
    April 15, 2014 at 20:26
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    As I thought I made clear, I’m not wanting to add a script to an agent, but the server itself, for doing remote module actions.

    For an example here’s some pre-installed modules that are remote modules:

    remote_icmp
    remote_icmp_proc
    remote_snmp
    remote_snmp_inc
    etc

    I want to add my own modules wherever these are located on the server, to be used by the server for doing remote module data pulls. I wrote a script that works completely remotely and should be able to be used in this fashion.

  • ivo_yordanov

    Member
    April 21, 2014 at 12:20
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    You can add your server script just by clicking on manage servers and then on manage plug-ins. Click on add and then input the name of the script, the command (path to the script/script name), the parameters of the script, and the necessary macros. Keep in mind that every execution of the script would only return a single value (basic functionality of a server plugin) an agent plugin can return more that one value. For more information on server plugins visit the following webpage: http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Anexo_Server_plugins_developement

    Regards
    Ivo