"Fossies" - the Fresh Open Source Software Archive

Member "unix/Darwin/pandora_agent.conf" (15 Sep 2021, 6773 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 #include /etc/pandora/pandora_agent_alt.conf
   15 #broker_agent name_agent
   16 
   17 # Interval in seconds, 300 by default
   18 interval        300
   19 
   20 # Debug mode renames XML in the temp folder and continues running
   21 debug       0   
   22 
   23 # Optional. UDP Server to receive orders from outside
   24 # By default is disabled, set 1 to enable
   25 # Set port (41122 by default) 
   26 # Set address to restrict who can order a agent restart (0.0.0.0 = anybody)
   27 #
   28 udp_server 0
   29 udp_server_port 41122
   30 udp_server_auth_address 0.0.0.0
   31 
   32 # By default, agent takes machine name
   33 #agent_name     adama
   34 
   35 #Parent agent_name
   36 #parent_agent_name caprica
   37 
   38 # Agent description
   39 #description This is a demo agent for Mac OS X.
   40 
   41 # Group assigned for this agent (descriptive, p.e: Servers)
   42 #group Servers
   43 
   44 # Group password (if defined).
   45 #group_password
   46 
   47 # address: Enforce to server a ip address to this agent 
   48 # You can also try to detect the first IP using "auto", for example
   49 #address auto
   50 # or setting a fixed IP address, like for example:
   51 #address 192.168.36.73
   52 
   53 # Autotime: Enforce to server to ignore timestamp coming from this
   54 # agent, used when agents has no timer or it's inestable. 1 to enable
   55 # this feature
   56 #autotime 1
   57 
   58 # Timezone offset: Difference with the server timezone
   59 #timezone_offset 0
   60 
   61 # Agent position paramters
   62 # Those parameters define the geographical position of the agent 
   63 
   64 # gis_exec: Call a script that returns a string with a fixed
   65 # format of latitude,longitude,altitude
   66 # i.e.: 41.377,-5.105,2.365
   67 
   68 #gis_exec /tmp/gis.sh
   69 
   70 # This sets the GIS coordinates as fixed values:
   71 # latitude 
   72 #latitude 0
   73 # longitude
   74 #longitude 0
   75 # altitude
   76 #altitude 0
   77 
   78 #GPS Position description
   79 #position_description Madrid, centro
   80 
   81 # By default agent try to take default encoding defined in host.
   82 #encoding   UTF-8
   83 
   84 # Listening TCP port for remote server. By default is 41121 (for tentacle)
   85 # if you want to use SSH use 22, and FTP uses 21.
   86 server_port 41121
   87 
   88 # Transfer mode: tentacle, ftp, ssh or local 
   89 transfer_mode tentacle
   90 
   91 # Transfer mode user: Owner of files copied on local transfer mode (default apache)
   92 #transfer_mode_user apache
   93 
   94 # Server password (Tentacle or FTP). Leave empty for no password (default).
   95 #server_pwd mypassword
   96 
   97 # Set to yes/no to enable/disable OpenSSL support for Tentacle (disabled by default).
   98 #server_ssl no
   99 
  100 # Extra options for the Tentacle client (for example: server_opts -v -r 5).
  101 #server_opts
  102 
  103 # delayed_startup defines number of seconds before start execution
  104 # for first time when startup Pandora FMS Agent
  105 #delayed_startup 10
  106 
  107 # Pandora nice defines priority of execution. Less priority means more intensive execution
  108 # A recommended value is 10. 0 priority means no Pandora CPU protection enabled (default)
  109 #pandora_nice 0
  110 
  111 # Cron mode replace Pandora FMS own task schedule each XX interval seconds by the use
  112 # of old style cron. You should add to crontab Pandora FMS agent script to use this mode.
  113 # This is disabled by default, and is not recommended.  Use Pandora FMS internal scheduler
  114 # is much more safe
  115 #cron_mode 
  116 
  117 # If set to 1 allows the agent to be configured via the web console (Only Enterprise version) 
  118 #remote_config 1
  119 
  120 # Default 0, set to 1 to avoid module executions and report to server
  121 # standby 1
  122 
  123 # If set to 1 start Drone Agent's Proxy Mode 
  124 # proxy_mode 1
  125 
  126 # Max number of simmultaneus connection for proxy (by default 10)
  127 # proxy_max_connection 10
  128 
  129 # Proxy timeout (by default 1s)
  130 # proxy_timeout 1
  131 
  132 # Address the proxy will listen on.
  133 #proxy_address 0.0.0.0
  134 
  135 # Port the proxy will listen on.
  136 #proxy_port 41121
  137 
  138 # Number of threads to execute modules in parallel
  139 #agent_threads 1
  140 
  141 # User the agent will run as
  142 #pandora_user root
  143 
  144 # Enable or disable XML buffer.
  145 # If you are in a secured environment and want to enable the XML buffer you
  146 # should consider changing the temporal directory, since /tmp is world writable.
  147 #xml_buffer 0
  148 
  149 # Minimum available bytes in the temporal directory to enable the XML buffer
  150 #temporal_min_size 1024
  151 
  152 # Agent mode: Learn (default), No-learn, Autodisable
  153 # agent_mode autodisable
  154 
  155 # Secondary groups. You can select several groups separated by comma.
  156 # secondary_groups Group1,Group2
  157 
  158 # Secondary server configuration
  159 # ==============================
  160 
  161 # If secondary_mode is set to on_error, data files are copied to the secondary
  162 # server only if the primary server fails. If set to always, data files are
  163 # always copied to the secondary server.
  164 #secondary_mode on_error
  165 #secondary_server_ip localhost
  166 #secondary_server_path /var/spool/pandora/data_in
  167 #secondary_server_port 41121
  168 #secondary_transfer_mode tentacle
  169 #secondary_server_pwd mypassword
  170 #secondary_server_ssl no
  171 #secondary_server_opts
  172 
  173 # Module Definition
  174 # =================
  175 
  176 # System information
  177 
  178 # vmstat syntax depends on linux distro and vmstat command version, please check before use it
  179 module_begin 
  180 module_name cpu_user
  181 module_type generic_data
  182 module_interval 1
  183 module_exec sar 1 2 | tail -1 | awk '{ print $2 }'
  184 module_max 100
  185 module_min 0
  186 module_description User CPU Usage (%)
  187 module_min_warning 70
  188 module_max_warning 90
  189 module_min_critical 91
  190 module_max_critical 100
  191 module_end
  192 
  193 #Get load average
  194 module_begin 
  195 module_name Load Average
  196 module_type generic_data
  197 module_exec uptime | sed 's/.*load averages: //'|awk '{print $1}'
  198 module_description Average process in CPU (Last minute) 
  199 module_end
  200 
  201 #Get free memory in MB
  202 module_begin
  203 module_name Cache mem free
  204 module_type generic_data
  205 module_exec vm_stat | grep 'Pages free'| awk '{print $3/256}'
  206 module_description Free cache memory in MB
  207 module_min_warning 500
  208 module_max_warning 600
  209 module_min_critical 100
  210 module_max_critical 499
  211 module_end
  212 
  213 #Count total number of processes
  214 module_begin
  215 module_name proctotal
  216 module_type generic_data
  217 module_exec ps -A | tail -n +2 | wc -l | sed 's/ //g'
  218 module_description Total processes
  219 module_min_warning 150
  220 module_max_warning 249
  221 module_min_critical 250
  222 module_max_critical 300
  223 module_end
  224 
  225 # Async data example
  226  
  227 module_begin
  228 module_name LastLogin
  229 module_type async_string
  230 module_exec last | head -1 | awk '{print $1}'
  231 module_description Monitor last user loggin
  232 module_end 
  233 
  234 # Get disk space free in %
  235 module_begin 
  236 module_name disk_root_free
  237 module_type generic_data
  238 module_exec df -kh / | tail -1 | awk '{ print 100-$5 }'
  239 module_max 100
  240 module_min 0
  241 module_description Free disk Percentage of root partition
  242 module_min_warning 70
  243 module_max_warning 90
  244 module_min_critical 91
  245 module_max_critical 100
  246 module_end