mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Merge branch '1489-4737-agente-windows-difiere-en-instalacion-normal-y-silenciosa' into 'develop'
Modified windows configuration file to fit with nsis See merge request artica/pandorafms!986
This commit is contained in:
commit
17f38dfa2f
@ -1,6 +1,6 @@
|
|||||||
# Base config file for Pandora FMS Windows Agent
|
# Base config file for Pandora FMS Windows Agent
|
||||||
# (c) 2006-2014 Artica Soluciones Tecnologicas
|
# (c) 2006-2017 Artica Soluciones Tecnologicas
|
||||||
# Version 7.0NG.716
|
# Version 7.0NG.716
|
||||||
|
|
||||||
# This program is Free Software, you can redistribute it and/or modify it
|
# This program is Free Software, you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public Licence as published by the Free Software
|
# under the terms of the GNU General Public Licence as published by the Free Software
|
||||||
@ -21,6 +21,13 @@ server_ip $ServerIP$
|
|||||||
server_path /var/spool/pandora/data_in
|
server_path /var/spool/pandora/data_in
|
||||||
temporal "%ProgramFiles%\pandora_agent\temp"
|
temporal "%ProgramFiles%\pandora_agent\temp"
|
||||||
|
|
||||||
|
# Group assigned for this agent (descriptive, p.e: Servers)
|
||||||
|
group $GroupName$
|
||||||
|
|
||||||
|
# If set to 1 allows the agent to be configured via the web console
|
||||||
|
# (only works on enterprise version). Set to 0 to disable it
|
||||||
|
remote_config 0
|
||||||
|
|
||||||
#include "C:\Archivos de programa\pandora_agent\pandora_agent_alt.conf"
|
#include "C:\Archivos de programa\pandora_agent\pandora_agent_alt.conf"
|
||||||
#broker_agent name_agent
|
#broker_agent name_agent
|
||||||
|
|
||||||
@ -43,15 +50,10 @@ agent_name_cmd __rand__
|
|||||||
|
|
||||||
# address: Enforce to server a ip address to this agent
|
# address: Enforce to server a ip address to this agent
|
||||||
# You can also try to detect the first IP using "auto", for example
|
# You can also try to detect the first IP using "auto", for example
|
||||||
|
|
||||||
address auto
|
address auto
|
||||||
|
|
||||||
# or setting a fixed IP address, like for example:
|
# or setting a fixed IP address, like for example:
|
||||||
#address 192.168.36.73
|
#address 192.168.36.73
|
||||||
|
|
||||||
# Group assigned for this agent (descriptive, p.e: Servers)
|
|
||||||
group Servers
|
|
||||||
|
|
||||||
# This limits operation if temporal dir has not enough free disk.
|
# This limits operation if temporal dir has not enough free disk.
|
||||||
#temporal_min_size 1024
|
#temporal_min_size 1024
|
||||||
|
|
||||||
@ -80,10 +82,6 @@ server_port 41121
|
|||||||
# Debug mode renames XML in the temp folder and continues running
|
# Debug mode renames XML in the temp folder and continues running
|
||||||
# debug 1
|
# debug 1
|
||||||
|
|
||||||
# If set to 1 allows the agent to be configured via the web console
|
|
||||||
# (only works on enterprise version). Set to 0 to disable it
|
|
||||||
remote_config 0
|
|
||||||
|
|
||||||
# XML encoding (ISO-8859-1 by default). Most windows servers experience problems when you set to UTF-8. Other special codepages may be specified here.
|
# XML encoding (ISO-8859-1 by default). Most windows servers experience problems when you set to UTF-8. Other special codepages may be specified here.
|
||||||
#encoding ISO-8859-1
|
#encoding ISO-8859-1
|
||||||
|
|
||||||
@ -102,6 +100,10 @@ xml_buffer 1
|
|||||||
# Agent mode: Learn (default), No-learn, Autodisable
|
# Agent mode: Learn (default), No-learn, Autodisable
|
||||||
# agent_mode autodisable
|
# agent_mode autodisable
|
||||||
|
|
||||||
|
# EHorus configuration file default full path.
|
||||||
|
#It try to find the EKID and set it like a custom field.
|
||||||
|
ehorus_conf "C:\Program Files\ehorus_agent\ehorus_agent.conf"
|
||||||
|
|
||||||
# Secondary server configuration
|
# Secondary server configuration
|
||||||
# ==============================
|
# ==============================
|
||||||
|
|
||||||
@ -127,74 +129,166 @@ xml_buffer 1
|
|||||||
#process_firefox_stop killall firefox
|
#process_firefox_stop killall firefox
|
||||||
#service_messenger 1
|
#service_messenger 1
|
||||||
|
|
||||||
|
###############################################
|
||||||
# Module Definition
|
# Module Definition
|
||||||
# Check online documentation and module library at http://pandorafms.org
|
# Check online documentation and module library at http://pandorafms.org
|
||||||
# =================
|
# =================
|
||||||
|
|
||||||
# Get Network information using Agent plugin
|
# CPU Load using WMI
|
||||||
module_plugin cscript //B "%ProgramFiles%\Pandora_Agent\util\nettraffic.vbs"
|
|
||||||
|
|
||||||
# Get disk occupation (percent)
|
|
||||||
module_plugin cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\df_percent.vbs"
|
|
||||||
|
|
||||||
# External inventory plugin
|
|
||||||
module_begin
|
|
||||||
module_plugin cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\software_installed.vbs"
|
|
||||||
module_interval 288
|
|
||||||
# 288 x 5min = 24 hr, one execution per day, using module_interval <factor>
|
|
||||||
module_end
|
|
||||||
|
|
||||||
# CPU Load
|
|
||||||
|
|
||||||
module_begin
|
module_begin
|
||||||
module_name CPU Load
|
module_name CPU Load
|
||||||
module_type generic_data
|
module_type generic_data
|
||||||
#module_wmiquery SELECT LoadPercentage FROM Win32_Processor
|
module_wmiquery SELECT LoadPercentage FROM Win32_Processor
|
||||||
#module_wmicolumn LoadPercentage
|
module_wmicolumn LoadPercentage
|
||||||
module_cpuusage all
|
module_max 100
|
||||||
module_description CPU Load (%)
|
module_min 0
|
||||||
module_unit %
|
module_description User CPU Usage (%)
|
||||||
module_min_warning 80
|
module_min_warning 70
|
||||||
module_max_warning 90
|
module_max_warning 90
|
||||||
module_min_critical 91
|
module_min_critical 91
|
||||||
module_max_critical 100
|
module_max_critical 100
|
||||||
|
module_unit %
|
||||||
|
module_group System
|
||||||
module_end
|
module_end
|
||||||
|
|
||||||
# Number processes
|
# Basic info about TCP Connection
|
||||||
module_begin
|
module_begin
|
||||||
module_name Number processes
|
module_name TCP_Connections
|
||||||
module_type generic_data
|
module_type generic_data
|
||||||
module_exec tasklist | gawk "NR > 3 {print$0}" | wc -l
|
module_exec netstat -an | find /c /v "estab"
|
||||||
module_description Number of processes running
|
module_description Total number of TCP connections active
|
||||||
module_min_warning 175
|
module_group Networking
|
||||||
module_max_warning 249
|
|
||||||
module_min_critical 250
|
|
||||||
module_max_critical 300
|
|
||||||
module_end
|
module_end
|
||||||
|
|
||||||
|
# Example plugin to retrieve drive usage
|
||||||
|
module_plugin cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\df_percent_used.vbs"
|
||||||
|
|
||||||
|
# Example plugin to retrieve memory usage
|
||||||
|
module_plugin cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\mem_percent_used.vbs"
|
||||||
|
|
||||||
|
# Example plugin to retrieve network usage
|
||||||
|
module_plugin cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\network.vbs"
|
||||||
|
|
||||||
|
## Windows inventory module (This information will be displayed only in enterprise version)
|
||||||
|
## Please check the WMI is healthy before activate this functionality
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\cpuinfo.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\moboinfo.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\diskdrives.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\cdromdrives.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\videocardinfo.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\ifaces.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\monitors.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\printers.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\raminfo.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\software_installed.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\userslogged.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\productkey.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\productID.vbs"
|
||||||
|
#module_crontab * 12-15 * * 1
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
#########################################
|
||||||
|
# EXAMPLES #
|
||||||
|
#########################################
|
||||||
|
|
||||||
|
# Example: get Network information using Agent plugin
|
||||||
|
#module_plugin cscript //B "%ProgramFiles%\Pandora_Agent\util\nettraffic.vbs"
|
||||||
|
|
||||||
|
# External inventory plugin
|
||||||
|
#module_begin
|
||||||
|
#module_plugin cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\software_installed.vbs"
|
||||||
|
#module_interval 288
|
||||||
|
## 288 x 5min = 24 hr, one execution per day, using module_interval <factor>
|
||||||
|
#module_end
|
||||||
|
|
||||||
# Free Memory
|
# Free Memory
|
||||||
module_begin
|
#module_begin
|
||||||
module_name FreeMemory
|
#module_name FreeMemory
|
||||||
module_type generic_data
|
#module_type generic_data
|
||||||
module_freepercentmemory
|
#module_freepercentmemory
|
||||||
module_unit %
|
#module_description Free memory (%).
|
||||||
module_description Free memory (%).
|
#module_min_warning 21
|
||||||
module_min_warning 21
|
#module_max_warning 30
|
||||||
module_max_warning 30
|
#module_min_critical 0
|
||||||
module_min_critical 0
|
#module_max_critical 20
|
||||||
module_max_critical 20
|
#module_end
|
||||||
module_end
|
|
||||||
|
|
||||||
# Log events
|
# Log events
|
||||||
|
#module_begin
|
||||||
|
#module_name System Events (TermService)
|
||||||
|
#module_type async_string
|
||||||
|
#module_logevent
|
||||||
|
#module_description Log Events coming from Terminal Service
|
||||||
|
#module_source System
|
||||||
|
#module_application TermService
|
||||||
|
#module_end
|
||||||
|
|
||||||
module_begin
|
#module_begin
|
||||||
module_name Security Events (Invalid Login)
|
#module_name Security Events (Invalid Login)
|
||||||
module_type async_string
|
#module_type async_string
|
||||||
module_description Security log events for invalid login attempt
|
#module_description Security log events for invalid login attempt
|
||||||
module_logevent
|
#module_logevent
|
||||||
module_source Security
|
#module_source Security
|
||||||
module_eventcode 529
|
#module_eventcode 529
|
||||||
module_end
|
#module_end
|
||||||
|
|
||||||
|
# Check if Dhcp service is enabled
|
||||||
|
#module_begin
|
||||||
|
#module_name DHCP Enabled
|
||||||
|
#module_type generic_proc
|
||||||
|
#module_service Dhcp
|
||||||
|
#module_description Check DCHP service enabled
|
||||||
|
#module_end
|
||||||
|
|
||||||
#Antivirus monitoring
|
#Antivirus monitoring
|
||||||
#This modules checks the antivirus is running on your system, if there is and antivirus
|
#This modules checks the antivirus is running on your system, if there is and antivirus
|
||||||
@ -207,72 +301,51 @@ module_end
|
|||||||
#module_description Last update for Antivirus Signature file
|
#module_description Last update for Antivirus Signature file
|
||||||
#module_end
|
#module_end
|
||||||
|
|
||||||
## Windows inventory module (This information will be displayed only in enterprise version)
|
# Number processes
|
||||||
## Please check the WMI is healthy before activate this functionality
|
#module_begin
|
||||||
|
#module_name Number processes
|
||||||
|
#module_type generic_data
|
||||||
|
#module_exec tasklist | gawk "NR > 3 {print$0}" | wc -l
|
||||||
|
#module_description Number of processes running
|
||||||
|
#module_min_warning 175
|
||||||
|
#module_max_warning 249
|
||||||
|
#module_min_critical 250
|
||||||
|
#module_max_critical 300
|
||||||
|
#module_end
|
||||||
|
|
||||||
# module_begin
|
# Example plugin to retrieve drive usage
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\cpuinfo.vbs"
|
#module_plugin cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\df.vbs"
|
||||||
# module_crontab * 12-15 * * 1
|
|
||||||
# module_end
|
|
||||||
|
|
||||||
# module_begin
|
# Free space on disk C: (%)
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\moboinfo.vbs"
|
#module_begin
|
||||||
# module_crontab * 12-15 * * 1
|
#module_name FreeDiskC
|
||||||
# module_end
|
#module_type generic_data
|
||||||
|
#module_freepercentdisk C:
|
||||||
|
#module_description Free space on drive C: (%)
|
||||||
|
#module_min_warning 31
|
||||||
|
#module_max_warning 40
|
||||||
|
#module_min_critical 0
|
||||||
|
#module_max_critical 30
|
||||||
|
#module_end
|
||||||
|
|
||||||
# module_begin
|
# CPU usage percentage
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\diskdrives.vbs"
|
#module_begin
|
||||||
# module_crontab * 12-15 * * 1
|
#module_name CPUUse
|
||||||
# module_end
|
#module_type generic_data
|
||||||
|
#module_cpuusage all
|
||||||
|
#module_description CPU# usage
|
||||||
|
#module_min_warning 70
|
||||||
|
#module_max_warning 90
|
||||||
|
#module_min_critical 91
|
||||||
|
#module_max_critical 100
|
||||||
|
#module_end
|
||||||
|
|
||||||
|
# Free space on disk D: (%)
|
||||||
# module_begin
|
# module_begin
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\cdromdrives.vbs"
|
# module_name FreeDiskD
|
||||||
# module_crontab * 12-15 * * 1
|
# module_type generic_data
|
||||||
# module_end
|
# module_freepercentdisk D:
|
||||||
|
# module_description Free space on drive D: (%)
|
||||||
# module_begin
|
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\videocardinfo.vbs"
|
|
||||||
# module_crontab * 12-15 * * 1
|
|
||||||
# module_end
|
|
||||||
|
|
||||||
# module_begin
|
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\ifaces.vbs"
|
|
||||||
# module_crontab * 12-15 * * 1
|
|
||||||
# module_end
|
|
||||||
|
|
||||||
# module_begin
|
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\monitors.vbs"
|
|
||||||
# module_crontab * 12-15 * * 1
|
|
||||||
# module_end
|
|
||||||
|
|
||||||
# module_begin
|
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\printers.vbs"
|
|
||||||
# module_crontab * 12-15 * * 1
|
|
||||||
# module_end
|
|
||||||
|
|
||||||
# module_begin
|
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\raminfo.vbs"
|
|
||||||
# module_crontab * 12-15 * * 1
|
|
||||||
# module_end
|
|
||||||
|
|
||||||
# module_begin
|
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\software_installed.vbs"
|
|
||||||
# module_crontab * 12-15 * * 1
|
|
||||||
# module_end
|
|
||||||
|
|
||||||
# module_begin
|
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\userslogged.vbs"
|
|
||||||
# module_crontab * 12-15 * * 1
|
|
||||||
# module_end
|
|
||||||
|
|
||||||
# module_begin
|
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\productkey.vbs"
|
|
||||||
# module_crontab * 12-15 * * 1
|
|
||||||
# module_end
|
|
||||||
|
|
||||||
# module_begin
|
|
||||||
# module_plugin cscript.exe //B //t:20 "%PROGRAMFILES%\Pandora_Agent\util\productID.vbs"
|
|
||||||
# module_crontab * 12-15 * * 1
|
|
||||||
# module_end
|
# module_end
|
||||||
|
|
||||||
## Plugin example for custom fields (version, architecture, IP, IPv6, MAC)
|
## Plugin example for custom fields (version, architecture, IP, IPv6, MAC)
|
||||||
@ -281,10 +354,9 @@ module_end
|
|||||||
# module_crontab * 12-15 * * 1
|
# module_crontab * 12-15 * * 1
|
||||||
# module_end
|
# module_end
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------------------------------
|
# Example plugin to retrieve last 5 min events in log4x format
|
||||||
# This samples below need to be reconfigured and uncommented. Please read documentation
|
# module_plugin cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\logevent_log4x.vbs" Aplicacion System 300
|
||||||
# on how to setup pandora fms windows agent at http://wiki.pandorafms.com
|
|
||||||
# ----------------------------------------------------------------------------------------------------
|
|
||||||
# Sample on how to get a value from registry
|
# Sample on how to get a value from registry
|
||||||
# This returns the last time user launch microsoft Windows update
|
# This returns the last time user launch microsoft Windows update
|
||||||
#module_begin
|
#module_begin
|
||||||
@ -391,11 +463,11 @@ module_end
|
|||||||
#module_description Postcondition test module
|
#module_description Postcondition test module
|
||||||
#module_end
|
#module_end
|
||||||
|
|
||||||
#Example of when module_native_encoding is necessary
|
# Example of native encoding.
|
||||||
#Dont uncomment module_native_encoding tag to see the difference
|
|
||||||
#module_begin
|
#module_begin
|
||||||
#module_name Accent_example
|
#module_name Written Accent
|
||||||
#module_type generic_data_string
|
#module_type generic_data_string
|
||||||
#module_exec echo Bordón
|
#module_exec echo Bordón
|
||||||
#module_native_encoding OEM
|
#module_native_encoding OEM
|
||||||
#module_end
|
#module_end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user