Skip to main content

12. How to use Pandora FMS plugins

Plugins allow Pandora FMS to retrieveobtain information that requires complex processing or that requires the use of complex systems or APIs. SomeExamples pluginof examplesplugins couldinclude be: MySQLMySQL® database monitoring.monitoring or packet loss between devices.

In thisThis quick guide we will show pluginexamples examplesof plugins that are included by default in Pandora FMS,FMS. but thereThere is also the possibility of beingcreating able to create yourour own server and agentEndPoint plugins.
plugins.

Server Plugins

Pandora FMS includes byseveral default a fewready-to-use plugins readyby todefault. beTo used, to seeview the server plugins registered in Pandora FMSFMS, go to Management -> Servers -> Plugins.Plugins. ThisThese kindtypes of pluginplugins only returnsreturn a single value.

These plugins are stored in the directory /usr/share/pandora_server/util/plugin/ directory and they are executed by the server.PFMS Server.

plugins1-1.pngpfms-first-steps-server_plugins-image-010.png

To make use ofthese this typetypes of plugin,plugins, the plugin server must be enabled in filethe /etc/pandora/pandora_server.conf.conf file under the heavyserver 1 token.

To create a remote plugin remote-type module, access the agent editing,editor atand go to the Modules tab:

plugin2.pngpfms-first-steps-server_plugins-image-020.png

Create a plugin serverPlugin module.:

plugin3-1.pngpfms-first-steps-server_plugins-image-030.png

Generally speaking, itIt is generally configured in the same way as any other type of remote module. In this typemodule oftype, module,we therehave isa the Plugin drop-down,down whichmenu that allows youus to choose the plugin to be used.

In this example, the Packet Loss plugin is used to check the amount of packets lost inover a period of time span between the server and the target.destination.

plugin5-1.pngpfms-first-steps-server_plugins-image-040.png

Fill in the fields with the necessary information,information; infor the case of the Packet Loss plugin,plugin, we define the test time and the target IP.

This is what the configured module looks like:

plugin6.png

Depending on the plugin, you will have to fill in different specific fields, for example, for MySQL plugin define thedestination IP of MySQL server, the user name and password, and the data you wish to retrieve.

plugin7.pngaddress.

A few seconds after creating the module, the module and its obtained value will appear in the agent'sagent view:

plugin8.pngpfms-first-steps-server_plugins-image-060.png

plugin9.pngDepending on the plugin, different specific fields will need to be filled in. For example, for the MySQL plugin, you must define the MySQL server IP address, the username and password, and the data you wish to extract:

pfms-first-steps-server_plugins-image-050.png

Agent Plugins

LinuxGNU/Linux®

ThisThese typetypes of plugins are stored and executed from aan EndPoint and can return more than one value.value.

These plugins are stored in the local agent's /usr/share/pandora_agent/plugins/ directory of the local agent and are defined in the configuration file /etc/pandora/pandora_agent.conf.conf configuration file.

In the configuration file, someSome agent plugins are defined by default,default in the configuration file. In this exampleexample, a plugin called top.sh is used, which shows the processes runrunning inon the agent.

plugin10-1.pngpfms-first-steps-server_plugins-image-070.png

To see the created module and its value (or values, depending on the plugin)plugin), go to the EndPointAgent view (for the EndPoint) in the console.Web Console.

pfms-first-steps-server_plugins-image-080.png

You may seeNotice that an icon with the shapeobtained of a sheet of paperdata is shown as obtaineda data,paper-sheet-shaped clickicon. Click on thisthat icon to seedisplay the list of processes retrievedextracted from the computer throughvia the agent plugin.plugin.

plugin10-2.png

plugin11.pngpfms-first-steps-server_plugins-image-090.png

WindowsMS Windows®

The pluginsPlugins are stored in the %ProgramFiles%\pandora_agent\util\ directory C:\Program Files "pandora_agent" and are defined in the %ProgramFiles%\pandora_agent\pandora_agent.conf configuration file C:\Program Files "pandora_agent" "pandora_agent.conf".file.

AsJust as in Linux,Linux®, there are some pluginexamples examplesof plugins defined in the configuration file.

plugin12.png

DidAre you not getachieving the expectedresults results?explained Goin tothis chapter? Access the help or support sections.section.