"Fossies" - the Fresh Open Source Software Archive

Member "unix/NT4/pandora_agent.conf" (15 Sep 2021, 4418 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   192.168.50.1
   11 server_path     /var/spool/pandora/data_in
   12 temporal c:\pandora\temp
   13 logfile c:\pandora\log\pandora_agent.log
   14 #include c:\pandora\pandora_agent_alt.conf
   15 #broker_agent name_agent
   16 
   17 # Interval in seconds, 300 by default
   18 interval        30
   19 
   20 # Debug mode only generate XML, and stop after first execution, 
   21 # and does not copy XML to server.
   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 1
   30 udp_server_port 41122
   31 udp_server_auth_address 0.0.0.0
   32 
   33 # By default, agent takes machine name
   34 # agent_name     WinNT4_Test
   35 
   36 #Parent agent_name
   37 #parent_agent_name caprica
   38 
   39 # Agent description
   40 #description This is a demo agent for Linux
   41 
   42 # Group assigned for this agent (descriptive, p.e: Servers)
   43 #group Servers
   44 
   45 # Group password (if defined).
   46 #group_password
   47 
   48 # Autotime: Enforce to server to ignore timestamp coming from this
   49 # agent, used when agents has no timer or it's inestable. 1 to enable
   50 # this feature
   51 #autotime 1
   52 
   53 # Timezone offset: Difference with the server timezone
   54 #timezone_offset 0
   55 
   56 # Agent position paramters
   57 # Those parameters define the geographical position of the agent 
   58 
   59 # latitude 
   60 #latitude 0
   61 # longitude
   62 #longitude 0
   63 # altitude
   64 #altitude 0
   65 
   66 #Position description
   67 #position_description Madrid, centro
   68 
   69 # By default agent try to take default encoding defined in host.
   70 #encoding   UTF-8
   71 
   72 # Listening TCP port for remote server. By default is 41121 (for tentacle)
   73 # if you want to use SSH use 22, and FTP uses 21.
   74 server_port 41121
   75 
   76 # Transfer mode: tentacle, ftp, ssh or local 
   77 transfer_mode tentacle
   78 
   79 # Server password (Tentacle or FTP). Leave empty for no password (default).
   80 #server_pwd mypassword
   81 
   82 # Set to yes/no to enable/disable OpenSSL support for Tentacle (disabled by default).
   83 #server_ssl no
   84 
   85 # Extra options for the Tentacle client (for example, server_opts "-v -r 5").
   86 #server_opts
   87 
   88 # delayed_startup defines number of MINUTES before start execution
   89 # for first time when startup Pandora FMS Agent
   90 #delayed_startup 10
   91 
   92 # Pandora nice defines priority of execution. Less priority means more intensive execution
   93 # A recommended value is 10. 0 priority means no Pandora CPU protection enabled (default)
   94 #pandora_nice 0
   95 
   96 # Cron mode replace Pandora FMS own task schedule each XX interval seconds by the use
   97 # of old style cron. You should add to crontab Pandora FMS agent script to use this mode.
   98 # This is disabled by default, and is not recommended.  Use Pandora FMS internal scheduler
   99 # is much more safe
  100 #cron_mode 
  101 
  102 # If set to 1 allows the agent to be configured via the web console (Only Enterprise version) 
  103 remote_config 0
  104 
  105 # Default 0, set to 1 to avoid module executions and report to server
  106 # standby 1
  107 
  108 # Number of threads to execute modules in parallel
  109 #agent_threads 1
  110 
  111 # User the agent will run as
  112 #pandora_user root
  113 
  114 # Secondary server configuration
  115 # ==============================
  116 
  117 # If secondary_mode is set to on_error, data files are copied to the secondary
  118 # server only if the primary server fails. If set to always, data files are
  119 # always copied to the secondary server.
  120 #secondary_mode on_error
  121 #secondary_server_ip localhost
  122 #secondary_server_path /var/spool/pandora/data_in
  123 #secondary_server_port 41121
  124 #secondary_transfer_mode tentacle
  125 #secondary_server_pwd mypassword
  126 #secondary_server_ssl no
  127 #secondary_server_opts
  128 
  129 # Module Definition
  130 # =================
  131 
  132 # System information
  133 
  134 # vmstat syntax depends on linux distro and vmstat command version, please check before use it
  135 module_begin 
  136 module_name Disk_Free_C
  137 module_type generic_data
  138 module_exec dir c:\ | grep "bytes [a-z]*" | gawk "{ print $1 }" | tr -d ","
  139 module_end
  140 
  141 module_begin 
  142 module_name Service_EventLog
  143 module_type generic_proc
  144 module_exec net start | grep "EventLog" | wc -l | tr -d " "
  145 module_end
  146 
  147 module_begin
  148 module_name Free_RAM
  149 module_type generic_data
  150 module_exec mem | grep "XMS" | gawk "{ print $1 }"
  151 module_end