"Fossies" - the Fresh Open Source Software Archive

Member "unix/NetBSD/pandora_agent.conf" (15 Sep 2021, 6196 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, NetBSD 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 #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 # By default, agent takes machine name
   24 #agent_name     adama
   25 
   26 #Parent agent_name
   27 #parent_agent_name parent_name
   28 
   29 # Agent description
   30 #description Demo agent
   31 
   32 # Group assigned for this agent (descriptive, p.e: Servers)
   33 group Servers
   34 
   35 # Group password (if defined).
   36 #group_password
   37 
   38 # Autotime: Enforce to server to ignore timestamp coming from this
   39 # agent, used when agents has no timer or it's inestable. 1 to enable
   40 # this feature
   41 # autotime 1
   42 
   43 # Timezone offset: Difference with the server timezone
   44 #timezone_offset 0
   45 
   46 # Agent position paramters
   47 # Those parameters define the geographical position of the agent 
   48 
   49 # latitude 
   50 #latitude 0
   51 # longitude
   52 #longitude 0
   53 # altitude
   54 #altitude 0
   55 
   56 #Position description
   57 #position_description Madrid, centro
   58 
   59 # By default agent try to take default encoding defined in host.
   60 # encoding  UTF-8
   61 
   62 # Listening TCP port for remote server. By default is 41121 (for tentacle)
   63 # if you want to use SSH use 22, and FTP uses 21.
   64 server_port 41121
   65 
   66 # Transfer mode: tentacle, ftp, ssh or local 
   67 transfer_mode tentacle
   68 
   69 # Transfer mode user: Owner of files copied on local transfer mode (default apache)
   70 #transfer_mode_user apache
   71 
   72 # timeout in seconds for file transfer programs execution (30 by default)
   73 #transfer_timeout 30
   74 
   75 # Server password (Tentacle or FTP). Leave empty for no password (default).
   76 #server_pwd mypassword
   77 
   78 # Set to yes/no to enable/disable OpenSSL support for Tentacle (disabled by default).
   79 #server_ssl no
   80 
   81 # Extra options for the Tentacle client (for example: server_opts -v -r 5).
   82 #server_opts
   83 
   84 # delayed_startup defines number of seconds before start execution
   85 # for first time when startup Pandora FMS Agent
   86 #delayed_startup 10
   87 
   88 # Pandora nice defines priority of execution. Less priority means more intensive execution
   89 # A recommended value is 10. 0 priority means no Pandora CPU protection enabled (default)
   90 #pandora_nice 0
   91 
   92 # Cron mode replace Pandora FMS own task schedule each XX interval seconds by the use
   93 # of old style cron. You should add to crontab Pandora FMS agent script to use this mode.
   94 # This is disabled by default, and is not recommended.  Use Pandora FMS internal scheduler
   95 # is much more safe.
   96 #cron_mode 
   97 
   98 # If set to 1 allows the agent to be configured via the web console (Only Enterprise version) 
   99 #remote_config 1
  100 
  101 # Default 0, set to 1 to avoid module executions and report to server
  102 # standby 1
  103 
  104 # If set to 1 start Drone Agent's Proxy Mode
  105 #proxy_mode 1
  106 
  107 # Max number of simmultaneus connection for proxy (by default 10)
  108 #proxy_max_connection 10
  109 
  110 # Proxy timeout (by default 1s)
  111 #proxy_timeout 1
  112 
  113 # Address the proxy will listen on.
  114 #proxy_address 0.0.0.0
  115 
  116 # Port the proxy will listen on.
  117 #proxy_port 41121
  118 
  119 # Number of threads to execute modules in parallel
  120 #agent_threads 1
  121 
  122 # User the agent will run as
  123 #pandora_user root
  124 
  125 # Agent mode: Learn (default), No-learn, Autodisable
  126 # agent_mode autodisable
  127 
  128 # Secondary groups. You can select several groups separated by comma.
  129 # secondary_groups Group1,Group2
  130 
  131 # Secondary server configuration
  132 # ==============================
  133 
  134 # If secondary_mode is set to on_error, data files are copied to the secondary
  135 # server only if the primary server fails. If set to always, data files are
  136 # always copied to the secondary server.
  137 #secondary_mode on_error
  138 #secondary_server_ip localhost
  139 #secondary_server_path /var/spool/pandora/data_in
  140 #secondary_server_port 41121
  141 #secondary_transfer_mode tentacle
  142 #secondary_transfer_timeout 30
  143 #secondary_server_pwd mypassword
  144 #secondary_server_ssl no
  145 #secondary_server_opts
  146 
  147 # Module Definition
  148 # =================
  149 
  150 # System information
  151 
  152 # vmstat syntax depends on system configuration, please check before use it
  153 module_begin 
  154 module_name cpu_user
  155 module_type generic_data
  156 module_interval 1
  157 module_exec vmstat 1 2 | tail -1 | awk '{ print $16 }'
  158 module_max 100
  159 module_min 0
  160 module_description User CPU Usage (%)
  161 module_end
  162 
  163 module_begin
  164 module_name cpu_system
  165 module_type generic_data
  166 module_interval 1   
  167 module_exec vmstat 1 2 | tail -1 | awk '{ print $17 }'
  168 module_max 100
  169 module_min 0
  170 module_description System CPU Usage (%)
  171 module_end
  172 
  173 module_begin
  174 module_name cpu_idle
  175 module_type generic_data
  176 module_interval 1
  177 module_exec vmstat 1 2 | tail -1 | awk '{ print $18 }'
  178 module_max 100
  179 module_min 0
  180 module_description CPU Idle (%)
  181 module_end
  182 
  183 module_begin 
  184 module_name Load Average
  185 module_type generic_data
  186 module_exec uptime | cut -d "," -f 4 | cut -d ":" -f 2 | sed "s/ //g" 
  187 module_description Average process in CPU (Last minute) 
  188 module_end
  189 
  190 module_begin 
  191 module_name disk_root_free
  192 module_type generic_data
  193 module_exec df -kh / | tail -1 | awk '{ print 100-$5 }'
  194 module_max 100
  195 module_min 0
  196 module_description Free disk Percentage of root partition
  197 module_end
  198 
  199 module_begin
  200 module_name memfree
  201 module_type generic_data
  202 module_exec vmstat -t 1 2 | tail -1 | awk '{print $12}'
  203 module_description Unused RAM memory
  204 module_end
  205 
  206 module_begin
  207 module_name proctotal
  208 module_type generic_data
  209 module_exec ps -A | wc -l | sed "s/ //g"
  210 module_end
  211 
  212 # Process information
  213 
  214 module_begin
  215 module_name sshDaemon
  216 module_type generic_proc
  217 module_exec ps -A | grep sshd | grep -v "grep" | wc -l | sed "s/ //g"
  218 module_end
  219 
  220 # Async data example
  221  
  222 module_begin
  223 module_name LastLogin
  224 module_type async_string
  225 module_exec last | head -1
  226 module_end
  227 
  228 # Plugin example
  229 
  230 # This parses /var/log/auth.log file, under the module name "syslog"
  231 # And search for "sshd" string into it, sending only that information.
  232 
  233 module_plugin grep_log /var/log/auth.log Syslog sshd
  234 
  235 # Plugin for inventory on the agent (Only Enterprise)
  236 
  237 # module_plugin inventory 1 cpu ram video nic hd cdrom software