Configuration
Conection:
# ELK Plugin conf file
# Defines ip server and port of ELK server.
elastic_server=127.0.0.1
elastic_port=9200
elastic_server
IP address or FQDN of the ELK server.
elastic_port
Port where the ELK server listens (9200 by default).
The configuration file of Pandora FMS plugin for ELK allows to execute it in two ways:
Agent:
# ELK Plugin conf file
# Defines if should be executed as agent or as server plugin, set 0 to execute as server plugin or set 1 to execute as agent plugin.
as_agent_plugin=1
Remote:
# ELK Plugin conf file
# Defines if should be executed as agent or as server plugin, set 0 to execute as server plugin or set 1 to execute as agent plugin.
as_agent_plugin=0
as_agent_plugin
1 to execute as agent plugin.
0 to execute as remote plugin.
If the plugin is to be executed remotely, it is necessary to configure the following parameters:
# If as_agent_plugin is 0, please set the agent configuration:
agent_name=adama
agent_interval=300
agent_group=Servers
# And the transf. options
## Pandora Server configuration
mode=tentacle
tentacle_ip=127.0.0.1
tentacle_port=41121
tentacle_opts
tentacle_client="tentacle_client"
local_folder=/var/spool/pandora/data_in
temporal=/tmp
agent_name
NombreName delof agentethe dondeagent sewhere entregaráthe lainformation información.will be delivered.
agent_interval
IntervaloInterval enin seg.seconds debetween ejecuciónagent del agente.executions.
agent_group
GrupoGroup alto quewhich vathe aagent pertenecerwill elbelong agente enin Pandora FMS.
mode
ModoXML defile transferenciatransfer demode, ficheroscan XML, puede ser:be:
local: copiacopies losthe ficherosfiles ato local_folder.
tentacle: transfieretransfers losthe ficherosfiles ato tentacle_ip porfor tentacle_port.
tentacle_ip
Dirección IP oaddress or FQDN dondewhere Pandora FMS estáis trabajando.running.
tentacle_port
PuertoPort dondewhere el serviciothe Tentacle asociadoservice aassociated suwith servidoryour Pandora FMS estáserver escuchando.is listening.
tentacle_opts
OpcionesExtra extraoptions parafor elTentacle cliente Tentacle.customers.
tentacle_client
Path dondewhere encontrarthe eltentacle binarioclient delbinary clientecan tentacle.be found.
local_folder
UbicaciónLocation dondewhere moverfiles losare archivosmoved enin ellocal modo local.mode.
temp
UbicaciónTemporary temporallocation dondewhere almacenarfiles losare archivosstored antesbefore debeing enviarlos.sent.
Módulos:Modules:
## EstablezcaSet 1 siif deseayou supervisarwant elto númeromonitor denumber índices.of index.
total_index=1
red_index=1
yellow_index=1
## EstablezcaSet 1 siif deseayou supervisarwant elto tamañomonitor delindex índice.size.
total_index_size=1
red_index_size=1
yellow_index_size=1
## EstablezcaSet 1 siif deseayou supervisarwant lasto instantáneas.monitor snapshots.
snapshots=1
## EstablezcaSet 1 siif deseayou supervisarwant lasto conexionesmonitor dePort puerto.connections.
elastic_conections=1
kibana_conections=1
## EstablezcaSet 1 siif deseayou supervisarwant elto usomonitor dememory memoriausage deof ELK.
memory_usage=1
## EstablezcaSet 1 siif deseayou supervisarwant elto usomonitor decpu lausage CPU deof ELK.
cpu_usage=1
## EstablezcaSet 1 siif deseayou supervisarwant lasto métricasmonitor deldisk discometrics deof ELK.
disk_indices=1
disk_used=1
## EstablezcaSet 1 siif deseayou supervisarwant elto recuentomonitor dedocuments documentoscount deof ELK.
document_count=1
## Check ELK services, 1 enabled 0 disabled.
nginx_status=1
elastic_status=1
logstash_status=1
kibana_status=1
0 → DeshabilitaDisables la monitorización.monitoring.
1 → HabilitaEnables la monitorización.monitoring.
total_index
CantidadNumber deof índicesgenerated generados.indexes.
red_index
CantidadNumber deof índicesindexes enin estadored rojo.status.
yellow_index
CantidadNumber deof índicesindexes enin estadoyellow amarillo.status.
total_index_size
TamañoTotal totalindex desize índices enin mb.
red_index_size
TamañoSize deof índicesindexes enin estadored rojostatus enin mb.
yellow_index_size
TamañoSize deof índicesindexes enin estadored amarillostatus enin mb.
snapshots
CantidadTotal degenerated capturatssnapshots. generadas.
elastic_connections
NúmeroNumber deof conexionesconnections alto puertothe dondeport escuchawhere elastic listens (puertoport 9200).
EsteThis módulomodule SOLOIS ESTÁAVAILABLE DISPONIBLEONLY enin lathe ejecuciónexecution comoas pluginagent de agente.plugin.
kibana_connections
NúmeroNumber deof conexionesconnections alto puertothe dondeport escuchawhere kibana listens (puerto 5601).
EsteThis módulomodule SOLOIS ESTÁAVAILABLE DISPONIBLEONLY enin lathe ejecuciónexecution comoas pluginagent deplugin. agente.
memory_usage
UsoMemory deusage memoriaof delthe servidorELK ELK.server.
EsteThis módulomodule SOLOIS ESTÁAVAILABLE DISPONIBLEONLY enin lathe ejecuciónexecution comoas pluginagent deplugin. agente.
cpu_usage
UsoCPU deusage cpuof delthe servidorELK ELK.server.
EsteThis módulomodule SOLOIS ESTÁAVAILABLE DISPONIBLEONLY enin lathe ejecuciónexecution comoas pluginagent de agente.plugin.
disk_used
UsoDisk deusage discopercentage enof porcentajethe delELK servidor ELK.server.
disk_indices
TamañoDisk desize discoused usadoby porELK losserver índices del servidor ELK.indexes.
document_count
CuentaCounts elthe númeronumber deof documentosdocuments usadoused porby elthe servidorELK ELK.server.
nginx_status
Estado del servicio nginx, 0 down, 1 up.
Este módulo SOLO ESTÁ DISPONIBLE en la ejecución como plugin de agente.
elastic_status
Estado del servicio elastic, 0 down, 1 up.
Este módulo SOLO ESTÁ DISPONIBLE en la ejecución como plugin de agente.
logstash_status
Estado del servicio logstash, 0 down, 1 up.
Este módulo SOLO ESTÁ DISPONIBLE en la ejecución como plugin de agente.
kibana_status
Estado del servicio kibana, 0 down, 1 up.
Este módulo SOLO ESTÁ DISPONIBLE en la ejecución como plugin de agente.