"Fossies" - the Fresh Open Source Software Archive

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