"Fossies" - the Fresh Open Source Software Archive

Member "unix/AIX/pandora_agent.conf" (11 May 2023, 4656 Bytes) of package /linux/misc/pandorafms_agent_linux-7.0NG.771.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.770_vs_7.0NG.771.

    1 # Base config file for Pandora FMS agents
    2 # Version 7.0NG.771, AIX version
    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 # Interval in seconds, 300 by default
   16 interval        300
   17 
   18 # Debug mode renames XML in the temp folder and continues running
   19 debug       0   
   20 
   21 # By default, agent takes machine name
   22 #agent_name     xxxxxx
   23 
   24 # Agent description
   25 #description Demo agent
   26 
   27 # Group assigned for this agent (descriptive, p.e: Servers)
   28 #group Servers
   29 
   30 # Group password (if defined).
   31 #group_password
   32 
   33 # Autotime: Enforce to server to ignore timestamp coming from this
   34 # agent, used when agents has no timer or it's inestable. 1 to enable
   35 # this feature
   36 # autotime 1
   37 
   38 # Timezone offset: Difference with the server timezone
   39 #timezone_offset 0
   40 
   41 # Agent position paramters
   42 # Those parameters define the geographical position of the agent 
   43 
   44 # latitude 
   45 #latitude 0
   46 # longitude
   47 #longitude 0
   48 # altitude
   49 #altitude 0
   50 
   51 # By default agent try to take default encoding defined in host.
   52 # encoding  UTF-8
   53 
   54 # Listening TCP port for remote server. By default is 41121 (for tentacle)
   55 # if you want to use SSH use 22, and FTP uses 21.
   56 server_port 41121
   57 
   58 # Transfer mode: tentacle, ftp, ssh or local 
   59 transfer_mode tentacle
   60 
   61 # Transfer mode user: Owner of files copied on local transfer mode (default apache)
   62 #transfer_mode_user apache
   63 
   64 # Server password (Tentacle or FTP). Leave empty for no password (default).
   65 # server_pwd mypassword
   66 
   67 # Set to yes/no to enable/disable OpenSSL support for Tentacle (disabled by default).
   68 # server_ssl no
   69 
   70 # Extra options for the Tentacle client (for example: server_opts -v -r 5).
   71 # server_opts
   72 
   73 # delayed_startup defines number of seconds before start execution
   74 # for first time when startup Pandora FMS Agent
   75 # delayed_startup 10
   76 
   77 # Pandora nice defines priority of execution. Less priority means more intensive execution
   78 # A recommended value is 10. 0 priority means no Pandora CPU protection enabled (default)
   79 # pandora_nice 0
   80 
   81 # Cron mode replace Pandora FMS own task schedule each XX interval seconds by the use
   82 # of old style cron. You should add to crontab Pandora FMS agent script to use this mode.
   83 # This is disabled by default, and is not recommended.  Use Pandora FMS internal scheduler
   84 # is much more safe.
   85 # cron_mode 
   86 
   87 # If set to 1 allows the agent to be configured via the web console (Only Enterprise version) 
   88 # remote_config 1
   89 
   90 # Default 0, set to 1 to avoid module executions and report to server
   91 # standby 1
   92 
   93 # If set to 1 start Drone Agent's Proxy Mode 
   94 # proxy_mode 1
   95 
   96 # Max number of simmultaneus connection for proxy (by default 10)
   97 # proxy_max_connection 10
   98 
   99 # Proxy timeout (by default 1s)
  100 # proxy_timeout 1
  101 
  102 # Address the proxy will listen on.
  103 #proxy_address 0.0.0.0
  104 
  105 # Port the proxy will listen on.
  106 #proxy_port 41121
  107 
  108 # User the agent will run as
  109 #pandora_user root
  110 
  111 # Agent mode: Learn (default), No-learn, Autodisable
  112 # agent_mode autodisable
  113 
  114 # Secondary groups. You can select several groups separated by comma.
  115 # secondary_groups Group1,Group2
  116 
  117 # Secondary server configuration
  118 # ==============================
  119 
  120 # If secondary_mode is set to on_error, data files are copied to the secondary
  121 # server only if the primary server fails. If set to always, data files are
  122 # always copied to the secondary server.
  123 # secondary_mode on_error
  124 # secondary_server_ip localhost
  125 # secondary_server_path /var/spool/pandora/data_in
  126 # secondary_server_port 41121
  127 # secondary_transfer_mode tentacle
  128 # secondary_server_pwd mypassword
  129 # secondary_server_ssl no
  130 # secondary_server_opts
  131 
  132 # Module Definition
  133 # =================
  134 
  135 
  136 # System information
  137 
  138 module_begin 
  139 module_name disk_root_free
  140 module_type generic_data
  141 module_exec df -k / | tail -1 | awk '{ print 100-$4 }'
  142 module_max 100
  143 module_min 0
  144 module_description Free disk Percentage of root partition
  145 module_end
  146 
  147 module_begin
  148 module_name proctotal
  149 module_type generic_data
  150 module_exec ps aux | wc -l | awk '{ print $1 }'
  151 module_end
  152 
  153 # Process information
  154 
  155 module_begin
  156 module_name InetdDaemon
  157 module_type generic_proc
  158 module_exec ps -Af | grep inetd | grep -v "grep" | wc -l |  awk '{ print $1 }'
  159 module_end
  160 
  161 # Async data example
  162  
  163 module_begin
  164 module_name LastLogin
  165 module_type async_string
  166 module_exec last | head -1
  167 module_end
  168 
  169 module_begin
  170 module_name Pandora_Agent_RAM
  171 module_type generic_data
  172 module_exec ps axu | grep perl | grep -v grep | awk '{ print $4 }' | tr "," "."
  173 module_end
  174 
  175 module_plugin grep_log /var/adm/syslog Syslog .
  176 
  177 
  178