# Informix # Introduction Ver. 09-01-2023 Plugin to remotely pull metrics data from informix. Type: Server plug-in # Compatibility matrix
**Systems where tested**CentOS 7, Fedora, rocky linux
**Systems where it should work**Any linux system
# Pre requisites - Pandora FMS Data Server enabled - Pandora FMS Plugin Server enabled - Have python3 installed - have the ibm\_db library installed # Parameters **Parameters**
--databaseName of the database.
--hostnameIp or host.
--agent\_nameName of agent.
--agent\_aliasAgent's alias
--use\_alias\_as\_nameUse agent alias as name
--module\_prefixIt is used to prefix the modules with
--portDefault 9089
--uidUser name
--passwordPassword
--databaseDatabase name
**Pandora configuration parameters**
--tentacle\_portTentacle port (default 41121) (optional)
--tentacle\_addressIp of the tentacle server to send the data to (optional)
-g,--groupPandora FMS target group (optional)
--data\_dirPandora FMS data directory. By default it is /var/spool/pandora/data\_in/ (optional)
--as\_agent\_pluginIt is optional, if you want the plugin to be an agent plugin and put the modules in the pandora agent, execute this with a 1 (optional)
# Manual execution ``` python3 pandora_informix.py --hostname --port --uid --database --password --conf --as_agent_plugin 1 ``` # Configuration in PandoraFMS As server plugin Manual installation Go to servers > plugins: [![image-1629974405286.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/image-1629974405286.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/image-1629974405286.png) Click on add: [![image-1629974430627.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/image-1629974430627.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/image-1629974430627.png) We put in name and the description that is preferred. We put as command the execution with the path of the plugin:
``` /path_pandora_informix.py ```

Remember that the recommended path for the use of the server plugins is: /usr/share/pandora\_server/util/plugin/

And in plugin parameters we will introduce these followed by the macro "\_field<N>\_", the connection parameters --hostname, --uid, --database and --password are mandatory. The default port is 9089 but it can be changed.

Remember that you can give a custom name to the agents with the --agent\_name parameter

Once this is done, we will click on "create". Once this is done, the only thing left to do is to call it, so we will go to some agent's view and create an add-in module: [![image-1646741530197.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-03/scaled-1680-/image-1646741530197.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-03/image-1646741530197.png) We will give it a name and in the section "plugin" we will put the one we have just configured. Once this is done, click on create. If the module is shown with 1, it means that it is running correctly. # Modules generated by the plugin The plugin will create an agent, with a custom name and the following modules:
**Dbspace I/O**
fname
dreads
dwrites
Dbspace usage
nchunks
total
used
pct\_used
Checking tables I/O
tabnames
diskreads
diskwrites
Session statistics
hostname
logint\_time
s\_state
Session profile
access
locksheld
seqscans
total\_sorts
dsksorts