Hello Guest

Author Topic: Importing Module  (Read 117 times)

0 Members and 1 Guest are viewing this topic.

Offline scostopos

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Importing Module
« on: March 14, 2017, 07:58:49 AM »
Dear all

How do we import modules ? i found one nginx module in Pandora FMS library and want to upload it into my Pandora FMS community

Offline antonio.s

  • Administrator
  • Smart member
  • *****
  • Posts: 343
  • Karma: 5
    • View Profile
Re: Importing Module
« Reply #1 on: March 14, 2017, 09:23:13 AM »
Hello scostopos,

It depends on the type of module, there are a lot of ways to monitor a web server with Pandora FMS. I suggest you to give a slow read to our docummentation to get familiar with the basics:

http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en

Kind regards,
Antonio.

Offline scostopos

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Importing Module
« Reply #2 on: March 14, 2017, 09:26:41 AM »
OK yes of course i will but in general how do i import a module from the Library ?
for example the Nginx one ?
http://library.pandorafms.com/index.php?sec=Library&sec2=repository&lng=en&action=view_PUI&id_PUI=582
« Last Edit: March 14, 2017, 09:42:26 AM by scostopos »

Offline antonio.s

  • Administrator
  • Smart member
  • *****
  • Posts: 343
  • Karma: 5
    • View Profile
Re: Importing Module
« Reply #3 on: March 17, 2017, 01:41:19 AM »
Hola scostopos,

En este caso, siendo un plugin de agente, tienes que desplegar los archivos al sistema donde esté tu nginx y un agente software. Una vez desplegados y con los permisos correctos tienes que añadir la línea de ejecución al fichero de configuración del agente, con una entrada similar a esta:

Code: [Select]
module_plugin /usr/sare/pandora_agent/plugins/nginx_monitor.py <my_nginx_server_ip>

Te dejo la documentación sobre plugins de agente aquí:
http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_es:Anexo_Agent_Plugins

Un saludo,
Antonio.