Skip to main content

Configuration in Pandora

Without remote configuration enabled

We must pass the plugin to the virtual machine, this can be done through pscp. We run pscp and open the windows terminal, inside to pass it to us we will use this code:

pscp -P 22 <path-plugin> root@<ip-machine>:<path-target>

Example:

image-1621353633120.png

The recommendation is to put the agent plugins in the path /etc/pandora/plugins for a more comfortable use.

To use it, we will open pandora_agent.conf

vim /etc/pandora/pandora_agent.conf

And at the bottom of the file, we will load the plugin that we have passed to the machine by adding :

module_plugin <plugin path> <ip to monitor with nginx port> <url for status>.

image-1621353772402.png

With remote configuration enabled

To enable the remote configuration we have to open the pandora_agent.conf file:

vim /etc/pandora/pandora_agent.conf

Inside we look for the remote_config line, to enable it we set it to 1.

image-1621353862091.png

That done, to install the plugin with remote configuration enabled there are two options, the first is :

Perform the process of sending the plugin to the virtual machine as it is defined in the way to install the plugin without remote configuration enabled described above, only instead of entering the line :

module_plugin <plugin path> <ip to monitor with nginx port> <url for status>.

in pandora_agent.conf from the machine, we will do it from the console, in the agents menu, click on remote configuration:

image-1621354017674.png

And enter the line, then click on update:

image-1621354049118.png

 

The second option is through collections.

Go to configuration > collections:

image-1621330391566.png

Click on create :

image-1621330426341.png

Enter name and short name and click on create again:

image-1621330463007.png

When it is created, go to :

image-1621330493998.png

 

Click on "Upload":

image-1621330533196.png

Upload the plugin and click "go":

image-1621330562858.png

Click on "recreate file" :

image-1621330601187.png

Go to the agent plugins menu:

image-1621330637972.png

Enter the path to the plugin with the ip address to monitor, followed by /status:

image-1621330668984.png

You will see below that the plugin has been loaded (in this image you can see how to enter the IP, remember that there is a space between the IP and /status.

image-1621330706289.png

Then, we restart the agent with :

/etc/init.d/pandora_agent_daemon restart

And if everything went well, the modules should appear in the agent.