"Fossies" - the Fresh Open Source Software Archive

Member "unix/Linux/pandora_agent.conf" (15 Sep 2021, 8469 Bytes) of package /linux/misc/pandorafms_agent_unix-7.0NG.757.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Generic config files source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "pandora_agent.conf": 7.0NG.756_vs_7.0NG.757.

    1 # Base config file for Pandora FMS agents
    2 # Version 7.0NG.757, GNU/Linux
    3 # Licensed under GPL license v2,
    4 # Copyright (c) 2003-2021 Artica Soluciones Tecnologicas
    5 # http://www.pandorafms.com
    6 
    7 # General Parameters
    8 # ==================
    9 
   10 server_ip   localhost
   11 server_path     /var/spool/pandora/data_in
   12 temporal /tmp
   13 logfile /var/log/pandora/pandora_agent.log
   14 
   15 #include /etc/pandora/pandora_agent_alt.conf
   16 #broker_agent name_agent
   17 
   18 # Interval in seconds, 300 by default
   19 interval        300
   20 
   21 # Debug mode renames XML in the temp folder and continues running
   22 debug       0   
   23 
   24 # Optional. UDP Server to receive orders from outside
   25 # By default is disabled, set 1 to enable
   26 # Set port (41122 by default) 
   27 # Set address to restrict who can order a agent restart (0.0.0.0 = anybody)
   28 #
   29 udp_server 0
   30 udp_server_port 41122
   31 udp_server_auth_address 0.0.0.0
   32 
   33 #process_xeyes_start xeyes
   34 #process_xeyes_stop killall xeyes
   35 
   36 # By default, agent takes machine name
   37 #agent_name     adama
   38 
   39 # To define agent name by specific command, define 'agent_name_cmd'.
   40 # (In the following example, agent name is 'hostname_IP')
   41 # If set to __rand__ the agent will generate a random name.
   42 #agent_name_cmd  LANG=C; /bin/echo -n `hostname`; /bin/echo -n "_"; /bin/echo `/sbin/ifconfig eth0 | /bin/grep 'inet addr' | /usr/bin/awk '{print $2;}' | /usr/bin/cut -d: -f2`
   43 agent_name_cmd __rand__
   44 
   45 #Parent agent_name
   46 #parent_agent_name caprica
   47 
   48 # By default, agent takes machine alias
   49 #agent_alias
   50 
   51 # To define agent alias by specific command, define 'agent_alias_cmd'.
   52 #agent_alias_cmd
   53 
   54 # Agent description
   55 #description This is a demo agent for Linux
   56 
   57 # Group assigned for this agent (descriptive, p.e: Servers)
   58 group Servers
   59 
   60 # Group password (if defined).
   61 #group_password
   62 
   63 # address: Enforce to server a ip address to this agent 
   64 # You can also try to detect the first IP using "auto", for example
   65 address auto
   66 # or setting a fixed IP address, like for example:
   67 #address 192.168.36.73
   68 
   69 # Autotime: Enforce to server to ignore timestamp coming from this
   70 # agent, used when agents has no timer or it's inestable. 1 to enable
   71 # this feature
   72 #autotime 1
   73 
   74 # Timezone offset: Difference with the server timezone
   75 #timezone_offset 0
   76 
   77 # Agent position paramters
   78 # Those parameters define the geographical position of the agent 
   79 
   80 # gis_exec: Call a script that returns a string with a fixed
   81 # format of latitude,longitude,altitude
   82 # i.e.: 41.377,-5.105,2.365
   83 
   84 #gis_exec /tmp/gis.sh
   85 
   86 # This sets the GIS coordinates as fixed values:
   87 # latitude 
   88 #latitude 0
   89 # longitude
   90 #longitude 0
   91 # altitude
   92 #altitude 0
   93 
   94 #GPS Position description
   95 #position_description Madrid, centro
   96 
   97 # By default agent try to take default encoding defined in host.
   98 #encoding   UTF-8
   99 
  100 # Listening TCP port for remote server. By default is 41121 (for tentacle)
  101 # if you want to use SSH use 22, and FTP uses 21.
  102 server_port 41121
  103 
  104 # Transfer mode: tentacle, ftp, ssh or local 
  105 transfer_mode tentacle
  106 
  107 # Transfer mode user: Owner of files copied on local transfer mode (default apache)
  108 #transfer_mode_user apache
  109 
  110 # timeout in seconds for file transfer programs execution (30 by default) 
  111 #transfer_timeout 30
  112 
  113 # Server password (Tentacle or FTP). Leave empty for no password (default).
  114 #server_pwd mypassword
  115 
  116 # Set to yes/no to enable/disable OpenSSL support for Tentacle (disabled by default).
  117 #server_ssl no
  118 
  119 # Extra options for the Tentacle client (for example: server_opts -v -r 5).
  120 #server_opts
  121 
  122 # delayed_startup defines number of seconds before start execution
  123 # for first time when startup Pandora FMS Agent
  124 #delayed_startup 10
  125 
  126 # Pandora nice defines priority of execution. Less priority means more intensive execution
  127 # A recommended value is 10. 0 priority means no Pandora CPU protection enabled (default)
  128 #pandora_nice 0
  129 
  130 # Cron mode replace Pandora FMS own task schedule each XX interval seconds by the use
  131 # of old style cron. You should add to crontab Pandora FMS agent script to use this mode.
  132 # This is disabled by default, and is not recommended.  Use Pandora FMS internal scheduler
  133 # is much more safe
  134 #cron_mode 
  135 
  136 # If set to 1 allows the agent to be configured via the web console (Only Enterprise version) 
  137 remote_config 0
  138 
  139 # Default 0, set to 1 to avoid module executions and report to server
  140 # standby 1
  141 
  142 # If set to 1 start Drone Agent's Proxy Mode 
  143 # proxy_mode 1
  144 
  145 # Max number of simmultaneus connection for proxy (by default 10)
  146 # proxy_max_connection 10
  147 
  148 # Proxy timeout (by default 1s)
  149 # proxy_timeout 1
  150 
  151 # Address the proxy will listen on.
  152 #proxy_address 0.0.0.0
  153 
  154 # Port the proxy will listen on.
  155 #proxy_port 41121
  156 
  157 # Number of threads to execute modules in parallel
  158 #agent_threads 1
  159 
  160 # User the agent will run as
  161 #pandora_user pandora
  162 
  163 # Enable or disable XML buffer.
  164 # If you are in a secured environment and want to enable the XML buffer you
  165 # should consider changing the temporal directory, since /tmp is world writable.
  166 xml_buffer 1
  167 
  168 # Minimum available bytes in the temporal directory to enable the XML buffer
  169 temporal_min_size 1024
  170 
  171 # Agent mode: Learn (default), No-learn, Autodisable
  172 # agent_mode autodisable
  173 
  174 # eHorus agent configuration file path:
  175 # The agent will create a custom field named eHorusID that contains
  176 # the eHorus agent's identifying key
  177 ehorus_conf /etc/ehorus/ehorus_agent.conf
  178 
  179 # Secondary groups. You can select several groups separated by comma.
  180 # secondary_groups Group1,Group2
  181 
  182 # Secondary server configuration
  183 # ==============================
  184 
  185 # If secondary_mode is set to on_error, data files are copied to the secondary
  186 # server only if the primary server fails. If set to always, data files are
  187 # always copied to the secondary server.
  188 #secondary_mode on_error
  189 #secondary_server_ip localhost
  190 #secondary_server_path /var/spool/pandora/data_in
  191 #secondary_server_port 41121
  192 #secondary_transfer_mode tentacle
  193 #secondary_transfer_timeout 30
  194 #secondary_server_pwd mypassword
  195 #secondary_server_ssl no
  196 #secondary_server_opts
  197 
  198 # Module Definition
  199 # =================
  200 
  201 # System information
  202 
  203 # Could change depending on linux distro and vmstat command version
  204 module_begin
  205 module_name CPU Load
  206 module_type generic_data
  207 module_interval 1
  208 module_exec vmstat 1 2 | tail -1 | awk '{ print $13 }'
  209 module_max 100
  210 module_min 0
  211 module_description User CPU Usage (%)
  212 module_min_warning 70
  213 module_max_warning 90
  214 module_min_critical 91
  215 module_max_critical 100
  216 module_unit %
  217 module_group System
  218 module_end
  219 
  220 # Could change depending on linux distro and vmstat command version
  221 module_begin
  222 module_name CPU IOWait
  223 module_type generic_data
  224 module_interval 1
  225 module_exec vmstat 1 2 | tail -1 | awk '{ print $16 }'
  226 module_min_warning 10
  227 module_min_critical 16
  228 module_unit %
  229 module_description Too much IOwait means IO bottleneck and performance problems. Check also LoadAVG.
  230 module_group System
  231 module_end
  232 
  233 # Get load average
  234 module_begin
  235 module_name Load Average
  236 module_type generic_data
  237 module_exec cat /proc/loadavg | cut -d' ' -f1
  238 module_description Average process in CPU (Last minute)
  239 module_group System
  240 module_end
  241 
  242 # Basic info about TCP Connection
  243 module_begin
  244 module_name TCP_Connections
  245 module_type generic_data 
  246 module_exec netstat -an | grep tcp | grep -v LIST | wc -l
  247 module_description Total number of TCP connections active
  248 module_group Networking
  249 module_end
  250 
  251 # This plugin detects all disk and report used space (%)
  252 
  253 module_plugin pandora_df_used
  254 
  255 # This plugin detects system free memory and used swap (in %)
  256 
  257 module_plugin pandora_mem_used
  258 
  259 # This plugin will get the network usage (bytes/sec)
  260 
  261 module_plugin pandora_netusage
  262 
  263 # Service autodiscovery plugin
  264 module_plugin autodiscover --default
  265 
  266 # Plugin for inventory on the agent (Only Enterprise)
  267 #module_plugin inventory 1 cpu ram video nic hd cdrom software init_services filesystem users route
  268 
  269 # Log collection modules. Only for enterprise version, this will collect log files for forensic analysis.
  270 # This is for LOG monitoring, only on enterprise version
  271 #module_plugin grep_log_module /var/log/messages Syslog \.\*
  272 
  273 #module_begin
  274 #module_name HTTPD_Status
  275 #module_type generic_proc
  276 #module_exec ps aux | grep httpd | grep -v grep | wc -l
  277 #module_group Application
  278 #module_end
  279 
  280 #module_begin
  281 #module_name MySQL_Status
  282 #module_type generic_proc
  283 #module_exec ps aux | grep -v grep | grep mysqld_safe | wc -l
  284 #module_group Database
  285 #module_end
  286 
  287 #module_begin
  288 #module_name Zombies
  289 #module_type generic_data
  290 #module_exec ps aux | grep "<defunct>" | grep -v grep | wc -l
  291 #module_description Zombies process on system
  292 #module_group System
  293 #module_end