Skip to main content

Configuration in PandoraFMS

Example running the plugin as an agent plugin


https://pandorafms.com/guides/public/link/816#bkmrk-para-usar-este-plugi

To use this plugin in agent mode, you should call the plugin with a command with the parameters that you are using, this can be done from the pandora_agent.conf file located in "/etc/pandora". Although if the remote configuration is enabled, it can be done from the console.

 

image-1647356034558.png


To call the plugin use the module_plugin parameter followed by the command at the end of the file:


Example:

module_plugin /pandora_ux.64 -exe pwr -script wux2.side -pwr_port 4444 -pwr_host 172.42.42.1

In the next interval that the agent is updated, the modules inside the software agent in which we are calling it will appear.

image-1647356184261.png

Example running the plugin as a server plugin

Go to servers > plugins:

image-1647441477355.png

Click on add:

image-1647441559604.png

The name and description of your choice is given:

image-1647441618522.png

Below in "plugin command" you must enter the path where we have the UX plugin. In plugin parameters we will enter all the parameters we want to use to customize the plugin execution followed by the _field_ macro that will allow us to store the values of these parameters below.

* If you are going to use the plugin as a server plugin, you must use the agent parameter, since this makes the plugin execution show a basic value with which we can see the status of the execution instead of an xml that is what we would use if we want to use the plugin in agent mode.



image-1647441704136.png

A description can be added to each macro to identify it followed by a value.

Macro _field1_

image-1647349972507.png

Macro _field2_

image-1647350000362.png

Macro _field3_

image-1647350034720.png

Macro _field4_

image-1647350051952.png

Macro _field5_

image-1647350070959.png

Once this is done, you can see in the command preview this command, and by executing it via terminal you can see if the data entered are correct.

image-1647441728812.png

If it is introduced by terminal it should show a 1 if everything has gone correctly with the transaction.

Once these steps are done and the plugin is configured to the user's whim, a module must be created, which will show the status of the plugin execution, for this it is required to go to an agent and create a new plugin server module.



image-1647441796782.png

The module will be given the name of your choice.

image-1647441874389.png

And in the plugin label the plugin that has just been created will be selected, you can see how the parameters that we have entered by the macros appear below.

image-1647350221240.png

Once this is done the module must be created and it will appear in the modules view with 1 if the plugin execution is not having problems.

image-1647350259697.png

You can see that an agent has been created with the name given by parameter.

image-1647350286122.png

And within this you can see the modules with the status of the transaction.

image-1647350330558.png